Go to the source code of this file.
Typedefs | |
typedef struct MR_std_shared_ptr_MR_Object | MR_std_shared_ptr_MR_Object |
typedef struct MR_std_string | MR_std_string |
typedef struct MR_ObjectFactoryBase | MR_ObjectFactoryBase |
Generated from class MR::ObjectFactoryBase . | |
Functions | |
MRC_API MR_std_shared_ptr_MR_Object * | MR_createObject (const MR_std_string *className) |
MRC_API void | MR_ObjectFactoryBase_Destroy (const MR_ObjectFactoryBase *_this) |
Destroys a heap-allocated instance of MR_ObjectFactoryBase . Does nothing if the pointer is null. | |
MRC_API void | MR_ObjectFactoryBase_DestroyArray (const MR_ObjectFactoryBase *_this) |
Destroys a heap-allocated array of MR_ObjectFactoryBase . Does nothing if the pointer is null. | |
MRC_API const MR_ObjectFactoryBase * | MR_ObjectFactoryBase_OffsetPtr (const MR_ObjectFactoryBase *ptr, ptrdiff_t i) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. | |
MRC_API MR_ObjectFactoryBase * | MR_ObjectFactoryBase_OffsetMutablePtr (MR_ObjectFactoryBase *ptr, ptrdiff_t i) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. | |
typedef struct MR_ObjectFactoryBase MR_ObjectFactoryBase |
Generated from class MR::ObjectFactoryBase
.
typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object |
typedef struct MR_std_string MR_std_string |
MRC_API MR_std_shared_ptr_MR_Object * MR_createObject | ( | const MR_std_string * | className | ) |
the function to create new object instance by registered class name Generated from function MR::createObject
. Parameter className
can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_Object_Destroy()
to free it when you're done using it.
MRC_API void MR_ObjectFactoryBase_Destroy | ( | const MR_ObjectFactoryBase * | _this | ) |
Destroys a heap-allocated instance of MR_ObjectFactoryBase
. Does nothing if the pointer is null.
MRC_API void MR_ObjectFactoryBase_DestroyArray | ( | const MR_ObjectFactoryBase * | _this | ) |
Destroys a heap-allocated array of MR_ObjectFactoryBase
. Does nothing if the pointer is null.
MRC_API MR_ObjectFactoryBase * MR_ObjectFactoryBase_OffsetMutablePtr | ( | MR_ObjectFactoryBase * | ptr, |
ptrdiff_t | i ) |
Offsets a pointer to an array element by i
positions (not bytes). Use only if you're certain that the pointer points to an array element.
MRC_API const MR_ObjectFactoryBase * MR_ObjectFactoryBase_OffsetPtr | ( | const MR_ObjectFactoryBase * | ptr, |
ptrdiff_t | i ) |
Offsets a pointer to an array element by i
positions (not bytes). Use only if you're certain that the pointer points to an array element.