#include <TypeInfoID.h>
Generates unique id for types. More...
Generates unique id for types.
Compared to type_info.hash_code() this version is guaranteed to be in constant time
The common use case is get the type id to access a full AbstractTypeInfo from the TypeInfoRegistry. Example: TypeInfoId& shortinfo = TypeInfoId::getTypeId<double>(); AbstractTypeInfo* info = TypeInfoRegistry::Get(shortinfo.id); info->getName()
Public Attributes | |
int | id |
const std::type_info & | nfo |
Static Public Member Functions | |
template<class T > | |
static const TypeInfoId & | GetTypeId () |
int sofa::defaulttype::TypeInfoId::id |
const std::type_info& sofa::defaulttype::TypeInfoId::nfo |
|
inlinestatic |