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.
 
typedef char MR_FilterType
 
typedef char MR_WrapType
 
typedef char MR_Reorder
 determines how points to be ordered
 

Enumerations

enum  { MR_FilterType_Linear = 0 , MR_FilterType_Discrete = 1 }
 
enum  { MR_WrapType_Repeat = 0 , MR_WrapType_Mirror = 1 , MR_WrapType_Clamp = 2 }
 
enum  { MR_Reorder_None = 0 , MR_Reorder_Lexicographically = 1 , MR_Reorder_AABBTree = 2 }
 

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_FilterType

typedef char MR_FilterType

◆ MR_NoInit

typedef struct MR_NoInit MR_NoInit

Generated from class MR::NoInit.

◆ MR_Reorder

typedef char MR_Reorder

determines how points to be ordered

◆ MR_WrapType

typedef char MR_WrapType

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MR_FilterType_Linear 
MR_FilterType_Discrete 

◆ anonymous enum

anonymous enum
Enumerator
MR_WrapType_Repeat 
MR_WrapType_Mirror 
MR_WrapType_Clamp 

◆ anonymous enum

anonymous enum
Enumerator
MR_Reorder_None 

the order is not changed

the order is determined by lexicographical sorting by coordinates (optimal for uniform sampling)

MR_Reorder_Lexicographically 

the order is determined so to put close in space points in close indices (optimal for compression)

MR_Reorder_AABBTree 

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.