#include <Xrtti.h>
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 |
enum Xrtti::Context::Type |
********************************************************************** This enumerates the valid Context types
virtual Xrtti::Context::~Context | ( | ) | [inline, virtual] |
bool Xrtti::Context::operator== | ( | const Context & | 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 |
Reimplemented in Xrtti::Union, Xrtti::Struct, and Xrtti::Class.
bool Xrtti::Context::operator!= | ( | const Context & | other | ) | const [inline] |
Inequality operator - returns false when the == operator would return true, and vice versa.
other | is the other object to compare against |
Reimplemented in Xrtti::Union, Xrtti::Struct, and Xrtti::Class.
virtual Type Xrtti::Context::GetType | ( | ) | const [pure virtual] |
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
Type_Namespace: most derived type is Namespace
Type_Struct: most derived type is Struct
Type_Union: most derived type is Union
Implemented in Xrtti::Namespace, Xrtti::Union, Xrtti::Struct, and Xrtti::Class.
Referenced by Xrtti::Class::operator==(), Xrtti::Struct::operator==(), and Xrtti::Union::operator==().
virtual const char* Xrtti::Context::GetName | ( | ) | const [pure virtual] |
Returns the name of this context.
virtual const char* Xrtti::Context::GetFullName | ( | ) | const [pure virtual] |
virtual const Context* Xrtti::Context::GetContext | ( | ) | const [pure virtual] |