11 #include <gtest/gtest.h> 30 TEST(rtti, CObject_CLASSID)
37 TEST(rtti, MyDerived1_CLASSID)
44 EXPECT_TRUE(cid_myd1->getBaseClass() == cid_cobj);
IMPLEMENTS_MRPT_OBJECT(CMultiObjMotionOpt_Scalarization, CMultiObjectiveMotionOptimizerBase, mrpt::nav) CMultiObjMotionOpt_Scalarization
The virtual base class of all MRPT classes with a unified RTTI system.
TEST(rtti, CObject_CLASSID)
#define IS_DERIVED(ptrObj, class_name)
Evaluates to true if a pointer to an object (derived from mrpt::rtti::CObject) is an instance of the ...
#define CLASS_ID(T)
Access to runtime class ID for a defined class name.
#define DEFINE_MRPT_OBJECT(class_name)
This declaration must be inserted in all CObject classes definition, within the class declaration...
GLsizei const GLchar ** string
#define CLASS_ID_NAMESPACE(class_name, namespaceName)
static const mrpt::rtti::TRuntimeClassId & GetRuntimeClassIdStatic()
void registerClass(const mrpt::rtti::TRuntimeClassId *pNewClass)
Register a class into the MRPT internal list of "CObject" descendents.
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
mrpt::rtti::CObject::Ptr classFactoryPtr(const std::string &className)
Like classFactory() but returns a smart pointer.
std::shared_ptr< CObject > Ptr