MeshLib C Docs
Loading...
Searching...
No Matches
MRObjectFactory.h File Reference
#include <MRCMisc/exports.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_ObjectFactoryBase MR_ObjectFactoryBase
 Generated from class MR::ObjectFactoryBase.

Functions

MRC_API MR_std_shared_ptr_MR_ObjectMR_createObject (const char *className, const char *className_end)
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_ObjectFactoryBaseMR_ObjectFactoryBase_OffsetPtr (const MR_ObjectFactoryBase *ptr, ptrdiff_t i)
MRC_API MR_ObjectFactoryBaseMR_ObjectFactoryBase_OffsetMutablePtr (MR_ObjectFactoryBase *ptr, ptrdiff_t i)

Typedef Documentation

◆ MR_ObjectFactoryBase

Generated from class MR::ObjectFactoryBase.

Function Documentation

◆ MR_createObject()

MRC_API MR_std_shared_ptr_MR_Object * MR_createObject ( const char * className,
const char * className_end )

the function to create new object instance by registered class name Generated from function MR::createObject. Parameter className can not be null. If className_end is null, then className is assumed to be null-terminated. 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.

◆ MR_ObjectFactoryBase_Destroy()

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.

◆ MR_ObjectFactoryBase_DestroyArray()

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.

◆ MR_ObjectFactoryBase_OffsetMutablePtr()

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. The reference to the parameter ptr might be preserved in the return value.

◆ MR_ObjectFactoryBase_OffsetPtr()

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. The reference to the parameter ptr might be preserved in the return value.