Main Page   Class Hierarchy   Compound List   File List   Compound Members  

RTTIFieldDescriptor Class Reference

#include <field.h>

List of all members.

Public Methods

char const * getName ()
void setValue (void *obj, void *buf)
void getValue (void *obj, void *buf)
RTTIClassDescriptorgetDelcaringClass ()
int getOffset ()
int getSize ()
RTTITypegetType ()
int getFlags ()
 RTTIFieldDescriptor (char const *name, int offs, int size, int flags, RTTIType *type)
RTTIFieldDescriptor & operator, (RTTIFieldDescriptor &field)
int getIndex ()
 ~RTTIFieldDescriptor ()

Protected Attributes

int flags
int index
RTTITypetype
int offs
int size
char const * name
RTTIClassDescriptordeclaringClass
RTTIFieldDescriptor * next
RTTIFieldDescriptor ** chain

Friends

class RTTIType
class RTTIClassDescriptor
class RTTIBfdRepository


Detailed Description

Field descriptor


Constructor & Destructor Documentation

RTTIFieldDescriptor::RTTIFieldDescriptor char const *    name,
int    offs,
int    size,
int    flags,
RTTIType   type
[inline]
 

Constructor of the field descriptor

Parameters:
name  name of the field
offs  offset within class
size  size of the field
flags  flags associated with the field
type  type of the field

RTTIFieldDescriptor::~RTTIFieldDescriptor   [inline]
 

Destructor of field descriptor


Member Function Documentation

RTTIClassDescriptor* RTTIFieldDescriptor::getDelcaringClass   [inline]
 

Get class to which the field belongs

Returns:
descriptor of the class containing this field

int RTTIFieldDescriptor::getFlags   [inline]
 

Get flags associated with the field

Returns:
combination of RTTIFieldFlags>/code> flags

int RTTIFieldDescriptor::getIndex   [inline]
 

Get index of the field in the array returned by RTTIClassDescriptor::getFields() method

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

char const* RTTIFieldDescriptor::getName   [inline]
 

Get field's name

Returns:
name of the field

int RTTIFieldDescriptor::getOffset   [inline]
 

Get offset of the field in the class

Returns:
offset of the field in bytes within the class

int RTTIFieldDescriptor::getSize   [inline]
 

Get field size

Returns:
size of the field in bytes

RTTIType* RTTIFieldDescriptor::getType   [inline]
 

Get field type

Returns:
descriptor of the field's type

void RTTIFieldDescriptor::getValue void *    obj,
void *    buf
[inline]
 

Get field value

Parameters:
obj  pointer to the object to which field belongs. If there are several nested structures, address of the most enclosed structure should be used. This paramter is agnredfor static fields.
buf  buffer to receive field value.

RTTIFieldDescriptor& RTTIFieldDescriptor::operator, RTTIFieldDescriptor &    field [inline]
 

Comma operator used to concatenate field descriptors in the list

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

void RTTIFieldDescriptor::setValue void *    obj,
void *    buf
[inline]
 

Set field value

Parameters:
obj  pointer to the object to which field belongs. If there are several nested structures, address of the most enclosed structure should be used. This paramter is agnredfor static fields.
buf  buffer with stored value


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