OpenSceneGraph 2.8.4
Classes | Static Public Member Functions | Friends
osgIntrospection::Reflection Class Reference

This class provides basic reflection services such as registration of new types and queries on the global type map. More...

List of all members.

Classes

struct  StaticData

Static Public Member Functions

static const TypegetType (const ExtendedTypeInfo &ti)
 Returns the Type object associated to the given ExtendedTypeInfo structure.
static const TypegetType (const std::string &qname)
 Finds a Type object given its qualified name, which must be identical to the qualified name returned by that Type's getQualifiedName() method.
static const TypeMapgetTypes ()
 Returns the global map of types.
static const Typetype_void ()
 Return the Type object associated to the C++ type 'void'.
static const ConvertergetConverter (const Type &source, const Type &dest)
static bool getConversionPath (const Type &source, const Type &dest, ConverterList &conv)
static void uninitialize ()

Friends

class Reflector
struct TypeNameAliasProxy
struct ConverterProxy

Detailed Description

This class provides basic reflection services such as registration of new types and queries on the global type map.


Member Function Documentation

static bool osgIntrospection::Reflection::getConversionPath ( const Type source,
const Type dest,
ConverterList conv 
) [static]
static const Converter* osgIntrospection::Reflection::getConverter ( const Type source,
const Type dest 
) [static]
static const Type& osgIntrospection::Reflection::getType ( const ExtendedTypeInfo ti) [static]

Returns the Type object associated to the given ExtendedTypeInfo structure.

If the type hasn't been created yet it is automatically created and added to the global type map. Please note that such type will have the status of "declared", you still need to give details about it through a Reflector class before you can query it.

static const Type& osgIntrospection::Reflection::getType ( const std::string &  qname) [static]

Finds a Type object given its qualified name, which must be identical to the qualified name returned by that Type's getQualifiedName() method.

If the type hasn't been created yet, an exception is thrown.

static const TypeMap& osgIntrospection::Reflection::getTypes ( ) [static]

Returns the global map of types.

static const Type& osgIntrospection::Reflection::type_void ( ) [static]

Return the Type object associated to the C++ type 'void'.

This is a shortcut for typeof(void), which may be slow if the type map is large.

Referenced by osgIntrospection::Type::getPointedType(), and osgIntrospection::Type::getReferencedType().

static void osgIntrospection::Reflection::uninitialize ( ) [static]

Friends And Related Function Documentation

friend struct ConverterProxy [friend]
friend class Reflector [friend]
friend struct TypeNameAliasProxy [friend]

The documentation for this class was generated from the following file:

osg logo
Generated at Sun Jan 8 2012 13:16:37 for the OpenSceneGraph by doxygen 1.7.4.