#include <Xrtti.h>
Inheritance diagram for Xrtti::Field:
Public Member Functions | |
virtual | ~Field () |
bool | operator== (const Field &other) const |
bool | operator!= (const Field &other) const |
virtual const Type & | GetType () const =0 |
virtual U32 | GetBitfieldBitCount () const =0 |
virtual bool | HasOffsetof () const =0 |
virtual U32 | GetOffset () const =0 |
virtual bool | IsAccessible () const =0 |
virtual void * | Get (void *pInstance) const =0 |
|
|
Equality operator - returns true if this object is "functionally equivalent" to [other]. The two objects don't have to be exactly identical, but do have to be identical in every meaningful way. Note also that this doesn't test for equality of any base class members; it is a test only at this level of the inheritence hierarcy. To test if an object is completely equals, including for all of its subclasses defined in the Xrtti hierarchy, you must cast this class to its most derived class and call that method.
|
|
Inequality operator - returns false when the == operator would return true, and vice versa.
|
|
Returns the type of the Field.
|
|
If the field was declared as a bitfield, then this will return the number of bits in the bitfield.
|
|
Returns true if the offset of this field within its containing structure is available, and can be obtained by calling GetOffsetof().
|
|
Returns the offset in bytes from the beginning of the containing Structure to this Field. This field's value is undefined for all static Fields, and for all bitfield Fields. NOTE that this method returns 0 for Fields of anonymous Structures.
|
|
Returns true if this Field is "accessible", meaning that the Get and Set methods of this class may be called. If this method returns false, then the Get and Set methods must NOT be called.
|
|
Returns a pointer to the Field within the given instance object. Returns NULL if the containing object is anonymous.
|