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

Go to the source code of this file.

Typedefs

typedef struct MR_AffineXf3f MR_AffineXf3f
 
typedef struct MR_std_optional_MR_Box3f MR_std_optional_MR_Box3f
 
typedef struct MR_XfBasedCache_MR_Box3f MR_XfBasedCache_MR_Box3f
 

Functions

MRC_API MR_XfBasedCache_MR_Box3fMR_XfBasedCache_MR_Box3f_DefaultConstruct (void)
 
MRC_API MR_XfBasedCache_MR_Box3fMR_XfBasedCache_MR_Box3f_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_XfBasedCache_MR_Box3fMR_XfBasedCache_MR_Box3f_OffsetPtr (const MR_XfBasedCache_MR_Box3f *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_XfBasedCache_MR_Box3fMR_XfBasedCache_MR_Box3f_OffsetMutablePtr (MR_XfBasedCache_MR_Box3f *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_XfBasedCache_MR_Box3fMR_XfBasedCache_MR_Box3f_ConstructFromAnother (const MR_XfBasedCache_MR_Box3f *_other)
 
MRC_API void MR_XfBasedCache_MR_Box3f_Destroy (const MR_XfBasedCache_MR_Box3f *_this)
 Destroys a heap-allocated instance of MR_XfBasedCache_MR_Box3f. Does nothing if the pointer is null.
 
MRC_API void MR_XfBasedCache_MR_Box3f_DestroyArray (const MR_XfBasedCache_MR_Box3f *_this)
 Destroys a heap-allocated array of MR_XfBasedCache_MR_Box3f. Does nothing if the pointer is null.
 
MRC_API MR_XfBasedCache_MR_Box3fMR_XfBasedCache_MR_Box3f_AssignFromAnother (MR_XfBasedCache_MR_Box3f *_this, const MR_XfBasedCache_MR_Box3f *_other)
 
MRC_API const MR_std_optional_MR_Box3fMR_XfBasedCache_MR_Box3f_get (const MR_XfBasedCache_MR_Box3f *_this, const MR_AffineXf3f *xf)
 
MRC_API void MR_XfBasedCache_MR_Box3f_set (MR_XfBasedCache_MR_Box3f *_this, const MR_AffineXf3f *xf, MR_Box3f t)
 
MRC_API void MR_XfBasedCache_MR_Box3f_reset (MR_XfBasedCache_MR_Box3f *_this)
 

Typedef Documentation

◆ MR_AffineXf3f

typedef struct MR_AffineXf3f MR_AffineXf3f

◆ MR_std_optional_MR_Box3f

◆ MR_XfBasedCache_MR_Box3f

optional T-object container, which stores a transformation as well for which the object is valid Generated from class MR::XfBasedCache<MR::Box3f>.

Function Documentation

◆ MR_XfBasedCache_MR_Box3f_AssignFromAnother()

MRC_API MR_XfBasedCache_MR_Box3f * MR_XfBasedCache_MR_Box3f_AssignFromAnother ( MR_XfBasedCache_MR_Box3f * _this,
const MR_XfBasedCache_MR_Box3f * _other )

Generated from a method of class MR::XfBasedCache<MR::Box3f> 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_XfBasedCache_MR_Box3f_ConstructFromAnother()

MRC_API MR_XfBasedCache_MR_Box3f * MR_XfBasedCache_MR_Box3f_ConstructFromAnother ( const MR_XfBasedCache_MR_Box3f * _other)

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

◆ MR_XfBasedCache_MR_Box3f_DefaultConstruct()

MRC_API MR_XfBasedCache_MR_Box3f * MR_XfBasedCache_MR_Box3f_DefaultConstruct ( void )

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

◆ MR_XfBasedCache_MR_Box3f_DefaultConstructArray()

MRC_API MR_XfBasedCache_MR_Box3f * MR_XfBasedCache_MR_Box3f_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_XfBasedCache_MR_Box3f_DestroyArray(). Use MR_XfBasedCache_MR_Box3f_OffsetMutablePtr() and MR_XfBasedCache_MR_Box3f_OffsetPtr() to access the array elements.

◆ MR_XfBasedCache_MR_Box3f_Destroy()

MRC_API void MR_XfBasedCache_MR_Box3f_Destroy ( const MR_XfBasedCache_MR_Box3f * _this)

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

◆ MR_XfBasedCache_MR_Box3f_DestroyArray()

MRC_API void MR_XfBasedCache_MR_Box3f_DestroyArray ( const MR_XfBasedCache_MR_Box3f * _this)

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

◆ MR_XfBasedCache_MR_Box3f_get()

MRC_API const MR_std_optional_MR_Box3f * MR_XfBasedCache_MR_Box3f_get ( const MR_XfBasedCache_MR_Box3f * _this,
const MR_AffineXf3f * xf )

returns stored object only if requested transformation is the same as stored one Generated from a method of class MR::XfBasedCache<MR::Box3f> named get. Parameter _this can not be null. It is a single object. Parameter xf 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_XfBasedCache_MR_Box3f_OffsetMutablePtr()

MRC_API MR_XfBasedCache_MR_Box3f * MR_XfBasedCache_MR_Box3f_OffsetMutablePtr ( MR_XfBasedCache_MR_Box3f * 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_XfBasedCache_MR_Box3f_OffsetPtr()

MRC_API const MR_XfBasedCache_MR_Box3f * MR_XfBasedCache_MR_Box3f_OffsetPtr ( const MR_XfBasedCache_MR_Box3f * 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_XfBasedCache_MR_Box3f_reset()

MRC_API void MR_XfBasedCache_MR_Box3f_reset ( MR_XfBasedCache_MR_Box3f * _this)

clears stored object Generated from a method of class MR::XfBasedCache<MR::Box3f> named reset. Parameter _this can not be null. It is a single object.

◆ MR_XfBasedCache_MR_Box3f_set()

MRC_API void MR_XfBasedCache_MR_Box3f_set ( MR_XfBasedCache_MR_Box3f * _this,
const MR_AffineXf3f * xf,
MR_Box3f t )

sets new transformation and the object Generated from a method of class MR::XfBasedCache<MR::Box3f> named set. Parameter _this can not be null. It is a single object. Parameter xf can not be null. It is a single object.