Main Page   Class Hierarchy   Compound List   File List   Compound Members  

RTTIMethodDescriptor Class Reference

#include <method.h>

List of all members.

Public Methods

char const * getName ()
RTTIMethodTypegetType ()
int getFlags ()
void getMethodDeclaration (char *buf)
void invoke (void *result, void *obj, void *parameters[])
RTTIClassDescriptorgetDeclaringClass ()
 RTTIMethodDescriptor (char const *name, int flags, RTTIMethodType *type)
RTTIMethodDescriptor & operator, (RTTIMethodDescriptor &method)
 ~RTTIMethodDescriptor ()
int getIndex ()

Protected Attributes

int flags
int index
RTTIMethodTypetype
char const * name
RTTIMethodDescriptor * next
RTTIMethodDescriptor ** chain

Friends

class RTTIType
class RTTIClassDescriptor
class RTTIBfdRepository


Detailed Description

Method descriptor


Constructor & Destructor Documentation

RTTIMethodDescriptor::RTTIMethodDescriptor char const *    name,
int    flags,
RTTIMethodType   type
[inline]
 

Method descriptor constructor

Parameters:
name  name of the method
flags  method qualifiers
type  method type

RTTIMethodDescriptor::~RTTIMethodDescriptor   [inline]
 

Destructor of method descriptor


Member Function Documentation

RTTIClassDescriptor* RTTIMethodDescriptor::getDeclaringClass   [inline]
 

Get class to which the method belongs

Returns:
descriptor of the class containing this method

int RTTIMethodDescriptor::getFlags   [inline]
 

Get flags associated with the method

Returns:
combination of RTTIMethodFlags>/code> flags

int RTTIMethodDescriptor::getIndex   [inline]
 

Get index of the metod in the array returned by RTTIClassDescriptor::getMethods() method

Parameters:
index  of method descriptor in the array sorted by method name

void RTTIMethodDescriptor::getMethodDeclaration char *    buf [inline]
 

Print to the buffer forward declaration of the method, ifor example:

      void SomeClass::foo(char* name);
 
Parameters:
buf  buffer to which method declaration will be printed

char const* RTTIMethodDescriptor::getName   [inline]
 

Get method's name

RTTIMethodType* RTTIMethodDescriptor::getType   [inline]
 

Gte type of the method

Returns:
method type

void RTTIMethodDescriptor::invoke void *    result,
void *    obj,
void *    parameters[]
[inline]
 

Invoke method

Parameters:
result  pointer to the location where method result will be stored.
obj  target object (ignired for static methods)
parameters  array of pointer to the parameter values

RTTIMethodDescriptor& RTTIMethodDescriptor::operator, RTTIMethodDescriptor &    method [inline]
 

Comma operator used to concatenate metod descriptors in the list

Parameters:
method  descriptor tail conctateneted with this head method descriptor, chain component of which contains address of next field of last element of the list
Returns:
head of the list


The documentation for this class was generated from the following file:
Generated on Fri Apr 26 17:39:24 2002 for CppReflection by doxygen1.2.15