Inheritance diagram for osgIntrospection::Reflector< T >:
Public Types | |
typedef T | reflected_type |
typedef Reflector< T > | inherited |
Public Member Functions | |
virtual | ~Reflector () |
Virtual destructor. | |
Protected Member Functions | |
Reflector (const std::string &name, const std::string &ns, bool abstract=false) | |
Reflector (const std::string &qname, bool abstract=false) | |
Type * | getType () |
Returns the Type object being described. | |
void | addBaseType (const Type &type) |
Declares a new base type for the current type. | |
void | setComparator (const Comparator *cmp) |
Sets the comparator object for the current type. | |
PropertyInfo * | addProperty (PropertyInfo *pi) |
Adds a property description to the current type. | |
MethodInfo * | addMethod (MethodInfo *mi) |
Adds a method description to the current type. | |
void | addEnumLabel (int v, const std::string &label, bool strip_namespace=true) |
Adds an enumeration label to the current type. | |
ConstructorInfo * | addConstructor (ConstructorInfo *ci) |
std::string | qualifyName (const std::string &name) const |
Returns a string containing the qualified version of 'name'. | |
CustomAttributeProvider * | addAttribute (const CustomAttribute *attrib) |
Adds a custom attribute to the type being described. | |
void | setReaderWriter (const ReaderWriter *rw) |
Sets the current type's ReaderWriter object. | |
Classes | |
struct | ConstPtrConstructor |
struct | PtrConstructor |
NOTE: when you create a Reflector for type T, it will automatically create descriptions for types T* and const T*. You should NEVER create reflectors for pointer types explicitely.
typedef Reflector<T> osgIntrospection::Reflector< T >::inherited |
typedef T osgIntrospection::Reflector< T >::reflected_type |
virtual osgIntrospection::Reflector< T >::~Reflector | ( | ) | [inline, virtual] |
Virtual destructor.
osgIntrospection::Reflector< T >::Reflector | ( | const std::string & | name, | |
const std::string & | ns, | |||
bool | abstract = false | |||
) | [protected] |
Direct initialization constructor. Parameter 'name' is the name of the type being reflected and 'ns' is its namespace.
osgIntrospection::Reflector< T >::Reflector | ( | const std::string & | qname, | |
bool | abstract = false | |||
) | [protected] |
Direct initialization constructor. Parameter 'qname' is the fully-qualified name of the type being reflected, i.e. containing both the namespace and the name (separated by "::").
CustomAttributeProvider * osgIntrospection::Reflector< T >::addAttribute | ( | const CustomAttribute * | attrib | ) | [protected] |
Adds a custom attribute to the type being described.
void osgIntrospection::Reflector< T >::addBaseType | ( | const Type & | type | ) | [protected] |
Declares a new base type for the current type.
ConstructorInfo * osgIntrospection::Reflector< T >::addConstructor | ( | ConstructorInfo * | ci | ) | [protected] |
Adds a constructor description to the current type. As soon as a constructor is added through this method, the automatically-generated default constructor is removed.
void osgIntrospection::Reflector< T >::addEnumLabel | ( | int | v, | |
const std::string & | label, | |||
bool | strip_namespace = true | |||
) | [protected] |
Adds an enumeration label to the current type.
MethodInfo * osgIntrospection::Reflector< T >::addMethod | ( | MethodInfo * | mi | ) | [protected] |
Adds a method description to the current type.
PropertyInfo * osgIntrospection::Reflector< T >::addProperty | ( | PropertyInfo * | pi | ) | [protected] |
Adds a property description to the current type.
Type* osgIntrospection::Reflector< T >::getType | ( | ) | [inline, protected] |
Returns the Type object being described.
std::string osgIntrospection::Reflector< T >::qualifyName | ( | const std::string & | name | ) | const [protected] |
Returns a string containing the qualified version of 'name'.
void osgIntrospection::Reflector< T >::setComparator | ( | const Comparator * | cmp | ) | [protected] |
Sets the comparator object for the current type.
void osgIntrospection::Reflector< T >::setReaderWriter | ( | const ReaderWriter * | rw | ) | [protected] |
Sets the current type's ReaderWriter object.