![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
Inheritance diagram for TypeManager::Type< ClassType >:Public Member Functions | |
| virtual IReflect * | createInstance () |
| virtual size_t | getSize () |
| virtual const char * | getTypeId () |
| Type () | |
Protected Attributes | |
| const char * | _typeName |
Implementation of IType using a template class to provide sizing & instantiation
Definition at line 70 of file Reflection.h.
| TypeManager::Type< ClassType >::Type | ( | ) | [inline] |
Constructor Sets the typename for this class
Definition at line 80 of file Reflection.h.
References TypeManager::Type< ClassType >::_typeName.
{
//the typeid mechanism maintains type_info instances
//in at least VS2005, it is safe to hold onto just the name reference
//this may not be safe in all compilers
//ClassType type;
const std::type_info & typeInfo = typeid(ClassType);
_typeName = typeInfo.name();
}
| virtual IReflect* TypeManager::Type< ClassType >::createInstance | ( | ) | [inline, virtual] |
| virtual size_t TypeManager::Type< ClassType >::getSize | ( | ) | [inline, virtual] |
Gets the memory size of this type in bytes
Implements IType.
Definition at line 102 of file Reflection.h.
{
return sizeof(ClassType);
}
| virtual const char* TypeManager::Type< ClassType >::getTypeId | ( | ) | [inline, virtual] |
Gets the unique string which identifies this type
Implements IType.
Definition at line 94 of file Reflection.h.
References TypeManager::Type< ClassType >::_typeName.
Referenced by TypeManager::ContainsType(), and TypeManager::GetType().
{
return _typeName;
};
const char* TypeManager::Type< ClassType >::_typeName [protected] |
Definition at line 73 of file Reflection.h.
Referenced by TypeManager::Type< ClassType >::getTypeId(), and TypeManager::Type< ClassType >::Type().
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.