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_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_ObjectMR_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_ObjectFactoryBaseMR_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_ObjectFactoryBaseMR_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 Documentation

◆ MR_ObjectFactoryBase

Generated from class MR::ObjectFactoryBase.

◆ MR_std_shared_ptr_MR_Object

◆ MR_std_string

typedef struct MR_std_string MR_std_string

Function Documentation

◆ MR_createObject()

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.

◆ 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.

◆ 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.