|
#define | CLASS_ID(class_name) static_cast<const mrpt::utils::TRuntimeClassId*>(&class_name::class##class_name) |
| Access to runtime class ID for a defined class name.
|
|
#define | CLASS_ID_NAMESPACE(class_name, namespaceName) static_cast<const mrpt::utils::TRuntimeClassId*>(&namespaceName::class_name::class##class_name) |
| Access to runtime class ID for a defined class name.
|
|
#define | CLASS_ID_TEMPLATE(class_name, T) static_cast<const mrpt::utils::TRuntimeClassId*>(& template <class T> class_name<T>::class##class_name) |
| Access to runtime class ID for a defined template class name.
|
|
#define | IS_CLASS(ptrObj, class_name) ((ptrObj)->GetRuntimeClass()==CLASS_ID(class_name)) |
| Evaluates to true if the given pointer to an object (derived from mrpt::utils::CSerializable) is of the given class.
|
|
#define | IS_DERIVED(ptrObj, class_name) ((ptrObj)->GetRuntimeClass()->derivedFrom(CLASS_ID(class_name))) |
| Evaluates to true if the given pointer to an object (derived from mrpt::utils::CSerializable) is an instance of the given class or any of its derived classes.
|
|
#define | DEFINE_MRPT_OBJECT_CUSTOM_LINKAGE(class_name, _STATIC_LINKAGE_, _VIRTUAL_LINKAGE_) |
| Just like DEFINE_MRPT_OBJECT but with DLL export/import linkage keywords.
|
|
#define | DEFINE_MRPT_OBJECT(class_name) DEFINE_MRPT_OBJECT_CUSTOM_LINKAGE(class_name, static /*none*/, virtual /*none*/) |
| This declaration must be inserted in all CObject classes definition, within the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_) DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE_LINKAGE2(class_name, base_name, _LINKAGE_ class_name) |
|
#define | DEFINE_MRPT_OBJECT_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_) DEFINE_MRPT_OBJECT_POST_CUSTOM_BASE_LINKAGE2(class_name, base_name, _LINKAGE_ class_name) |
|
#define | DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE_NO_LINKAGE(class_name, base_name) DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE_LINKAGE2(class_name, base_name, class_name) |
|
#define | DEFINE_MRPT_OBJECT_POST_CUSTOM_BASE_NO_LINKAGE(class_name, base_name) DEFINE_MRPT_OBJECT_POST_CUSTOM_BASE_LINKAGE2(class_name, base_name, class_name) |
|
#define | DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE_LINKAGE2(class_name, base_name, class_name_LINKAGE_) |
| This declaration must be inserted in all CObject classes definition, before the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_POST_CUSTOM_BASE_LINKAGE2(class_name, base_name, class_name_LINKAGE_) |
| This declaration must be inserted in all CObject classes definition, after the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_PRE_CUSTOM_LINKAGE(class_name, _LINKAGE_) DEFINE_MRPT_OBJECT_PRE_CUSTOM_LINKAGE2(class_name, _LINKAGE_ class_name) |
|
#define | DEFINE_MRPT_OBJECT_POST_CUSTOM_LINKAGE(class_name, _LINKAGE_) DEFINE_MRPT_OBJECT_POST_CUSTOM_LINKAGE2(class_name, _LINKAGE_ class_name) |
|
#define | DEFINE_MRPT_OBJECT_PRE_NO_LINKAGE(class_name) DEFINE_MRPT_OBJECT_PRE_CUSTOM_LINKAGE2(class_name, class_name) |
|
#define | DEFINE_MRPT_OBJECT_POST_NO_LINKAGE(class_name) DEFINE_MRPT_OBJECT_POST_CUSTOM_LINKAGE2(class_name, class_name) |
|
#define | DEFINE_MRPT_OBJECT_PRE_CUSTOM_LINKAGE2(class_name, class_name_LINKAGE_) struct class_name_LINKAGE_##Ptr; |
| This declaration must be inserted in all CObject classes definition, before the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_POST_CUSTOM_LINKAGE2(class_name, class_name_LINKAGE_) |
| This declaration must be inserted in all CObject classes definition, after the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE(class_name, base_name) DEFINE_MRPT_OBJECT_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, BASE_IMPEXP ) |
| This declaration must be inserted in all CObject classes definition, before the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_PRE(class_name) DEFINE_MRPT_OBJECT_PRE_CUSTOM_LINKAGE(class_name, BASE_IMPEXP ) |
| This declaration must be inserted in all CObject classes definition, before the class declaration.
|
|
#define | DEFINE_MRPT_OBJECT_POST(class_name) DEFINE_MRPT_OBJECT_POST_CUSTOM_LINKAGE(class_name, BASE_IMPEXP ) |
|
#define | IMPLEMENTS_MRPT_OBJECT(class_name, base, NameSpace) |
| This must be inserted in all CObject classes implementation files.
|
|
#define | DEFINE_VIRTUAL_MRPT_OBJECT(class_name) |
| This declaration must be inserted in virtual CSerializable classes definition:
|
|
#define | IMPLEMENTS_VIRTUAL_MRPT_OBJECT(class_name, base_class_name, NameSpace) |
| This must be inserted as implementation of some required members for virtual CSerializable classes:
|
|
typedef safe_ptr< TRuntimeClassId > | mrpt::utils::TRuntimeClassIdPtr |
| A wrapper class for a "TRuntimeClassId *", well-defined with respect to copy operators and constructors.
|
|
class BASE_IMPEXP | mrpt::utils::CObject |
|
void BASE_IMPEXP | mrpt::utils::registerClass (const mrpt::utils::TRuntimeClassId *pNewClass) |
| Register a class into the MRPT internal list of "CSerializable" descendents.
|
|
void BASE_IMPEXP | mrpt::utils::registerClassCustomName (const char *customName, const TRuntimeClassId *pNewClass) |
| Mostly for internal use within mrpt sources, to handle exceptional cases with multiple serialization names for backward compatibility (CMultiMetricMaps, CImage,...)
|
|
std::vector< const mrpt::utils::TRuntimeClassId * > BASE_IMPEXP | mrpt::utils::getAllRegisteredClasses () |
| Returns a list with all the classes registered in the system through mrpt::utils::registerClass.
|
|
const TRuntimeClassId BASE_IMPEXP * | mrpt::utils::findRegisteredClass (const std::string &className) |
| Return info about a given class by its name, or NULL if the class is not registered.
|
|