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

Go to the source code of this file.

Typedefs

typedef struct MR_NoInit MR_NoInit
 Generated from class MR::NoInit.
 

Functions

MRC_API MR_NoInitMR_NoInit_DefaultConstruct (void)
 
MRC_API MR_NoInitMR_NoInit_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_NoInitMR_NoInit_OffsetPtr (const MR_NoInit *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_NoInitMR_NoInit_OffsetMutablePtr (MR_NoInit *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_NoInitMR_NoInit_ConstructFromAnother (const MR_NoInit *_other)
 
MRC_API void MR_NoInit_Destroy (const MR_NoInit *_this)
 Destroys a heap-allocated instance of MR_NoInit. Does nothing if the pointer is null.
 
MRC_API void MR_NoInit_DestroyArray (const MR_NoInit *_this)
 Destroys a heap-allocated array of MR_NoInit. Does nothing if the pointer is null.
 
MRC_API MR_NoInitMR_NoInit_AssignFromAnother (MR_NoInit *_this, const MR_NoInit *_other)
 

Typedef Documentation

◆ MR_NoInit

typedef struct MR_NoInit MR_NoInit

Generated from class MR::NoInit.

Function Documentation

◆ MR_NoInit_AssignFromAnother()

MRC_API MR_NoInit * MR_NoInit_AssignFromAnother ( MR_NoInit * _this,
const MR_NoInit * _other )

Generated from a method of class MR::NoInit named operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_NoInit_ConstructFromAnother()

MRC_API MR_NoInit * MR_NoInit_ConstructFromAnother ( const MR_NoInit * _other)

Generated from a constructor of class MR::NoInit. Parameter _other can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_NoInit_Destroy() to free it when you're done using it.

◆ MR_NoInit_DefaultConstruct()

MRC_API MR_NoInit * MR_NoInit_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_NoInit_Destroy() to free it when you're done using it.

◆ MR_NoInit_DefaultConstructArray()

MRC_API MR_NoInit * MR_NoInit_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_NoInit_DestroyArray(). Use MR_NoInit_OffsetMutablePtr() and MR_NoInit_OffsetPtr() to access the array elements.

◆ MR_NoInit_Destroy()

MRC_API void MR_NoInit_Destroy ( const MR_NoInit * _this)

Destroys a heap-allocated instance of MR_NoInit. Does nothing if the pointer is null.

◆ MR_NoInit_DestroyArray()

MRC_API void MR_NoInit_DestroyArray ( const MR_NoInit * _this)

Destroys a heap-allocated array of MR_NoInit. Does nothing if the pointer is null.

◆ MR_NoInit_OffsetMutablePtr()

MRC_API MR_NoInit * MR_NoInit_OffsetMutablePtr ( MR_NoInit * 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_NoInit_OffsetPtr()

MRC_API const MR_NoInit * MR_NoInit_OffsetPtr ( const MR_NoInit * 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.