#include <Xrtti.h>
Inheritance diagram for Xrtti::Context:
Public Types | |
enum | Type { Type_Class = 0, Type_Namespace = 1, Type_Struct = 2, Type_Union = 3 } |
Public Member Functions | |
virtual | ~Context () |
bool | operator== (const Context &other) const |
bool | operator!= (const Context &other) const |
virtual Type | GetType () const =0 |
virtual const char * | GetName () const =0 |
virtual const char * | GetFullName () const =0 |
virtual const Context * | GetContext () const =0 |
|
********************************************************************** This enumerates the valid Context types |
|
|
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.
Reimplemented in Xrtti::Union, Xrtti::Struct, and Xrtti::Class. |
|
Inequality operator - returns false when the == operator would return true, and vice versa.
Reimplemented in Xrtti::Union, Xrtti::Struct, and Xrtti::Class. |
|
Returns the type of this context. The most derived class of this object is determined by the value returned here:
Type_Class: most derived type is Class
Implemented in Xrtti::Namespace, Xrtti::Union, Xrtti::Struct, and Xrtti::Class. |
|
Returns the name of this context.
|
|
Returns the full name of this context. This includes the entire namespace leading up to this context. It is the name of the parent Context prepended to the name of this Context, with a double-colon separator.
|
|
This is the parent context of this context. If this is NULL, then this Context is the root Context and has no parent. |