#include <Xrtti.h>
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 | HasOffset () const =0 |
virtual u32 | GetOffset () const =0 |
virtual bool | IsAccessible () const =0 |
virtual void * | Get (void *pInstance) const =0 |
virtual Xrtti::Field::~Field | ( | ) | [inline, virtual] |
bool Xrtti::Field::operator== | ( | const Field & | other | ) | const |
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.
other | is the other object to compare against |
bool Xrtti::Field::operator!= | ( | const Field & | other | ) | const [inline] |
Inequality operator - returns false when the == operator would return true, and vice versa.
other | is the other object to compare against |
virtual const Type& Xrtti::Field::GetType | ( | ) | const [pure virtual] |
virtual u32 Xrtti::Field::GetBitfieldBitCount | ( | ) | const [pure virtual] |
If the field was declared as a bitfield, then this will return the number of bits in the bitfield.
virtual bool Xrtti::Field::HasOffset | ( | ) | const [pure virtual] |
Returns true if the offset of this field within its containing structure is available, and can be obtained by calling GetOffset().
virtual u32 Xrtti::Field::GetOffset | ( | ) | const [pure virtual] |
virtual bool Xrtti::Field::IsAccessible | ( | ) | const [pure virtual] |
virtual void* Xrtti::Field::Get | ( | void * | pInstance | ) | const [pure virtual] |
Returns a pointer to the Field within the given instance object. Returns NULL if the containing object is anonymous. The value of the field can then be obtained by casting this pointer to the appropriate C++ type and dereferencing the pointer. The value of the field can also be changed in this way.
pInstance | is an object of the type of the context containing this field. NULL may be passed in if the field is static. |