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

Go to the source code of this file.

Typedefs

typedef struct MR_MapOrHashMap_MR_FaceId_MR_FaceId MR_MapOrHashMap_MR_FaceId_MR_FaceId
 
typedef struct MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId
 
typedef struct MR_MapOrHashMap_MR_VertId_MR_VertId MR_MapOrHashMap_MR_VertId_MR_VertId
 
typedef struct MR_PartMapping MR_PartMapping
 

Functions

MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId *const * MR_PartMapping_Get_src2tgtFaces (const MR_PartMapping *_this)
 
MRC_API void MR_PartMapping_Set_src2tgtFaces (MR_PartMapping *_this, MR_MapOrHashMap_MR_FaceId_MR_FaceId *value)
 
MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId ** MR_PartMapping_GetMutable_src2tgtFaces (MR_PartMapping *_this)
 
MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId *const * MR_PartMapping_Get_src2tgtVerts (const MR_PartMapping *_this)
 
MRC_API void MR_PartMapping_Set_src2tgtVerts (MR_PartMapping *_this, MR_MapOrHashMap_MR_VertId_MR_VertId *value)
 
MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId ** MR_PartMapping_GetMutable_src2tgtVerts (MR_PartMapping *_this)
 
MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *const * MR_PartMapping_Get_src2tgtEdges (const MR_PartMapping *_this)
 
MRC_API void MR_PartMapping_Set_src2tgtEdges (MR_PartMapping *_this, MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *value)
 
MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId ** MR_PartMapping_GetMutable_src2tgtEdges (MR_PartMapping *_this)
 
MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId *const * MR_PartMapping_Get_tgt2srcFaces (const MR_PartMapping *_this)
 
MRC_API void MR_PartMapping_Set_tgt2srcFaces (MR_PartMapping *_this, MR_MapOrHashMap_MR_FaceId_MR_FaceId *value)
 
MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId ** MR_PartMapping_GetMutable_tgt2srcFaces (MR_PartMapping *_this)
 
MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId *const * MR_PartMapping_Get_tgt2srcVerts (const MR_PartMapping *_this)
 
MRC_API void MR_PartMapping_Set_tgt2srcVerts (MR_PartMapping *_this, MR_MapOrHashMap_MR_VertId_MR_VertId *value)
 
MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId ** MR_PartMapping_GetMutable_tgt2srcVerts (MR_PartMapping *_this)
 
MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *const * MR_PartMapping_Get_tgt2srcEdges (const MR_PartMapping *_this)
 
MRC_API void MR_PartMapping_Set_tgt2srcEdges (MR_PartMapping *_this, MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *value)
 
MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId ** MR_PartMapping_GetMutable_tgt2srcEdges (MR_PartMapping *_this)
 
MRC_API MR_PartMappingMR_PartMapping_DefaultConstruct (void)
 
MRC_API MR_PartMappingMR_PartMapping_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_PartMappingMR_PartMapping_ConstructFrom (MR_MapOrHashMap_MR_FaceId_MR_FaceId *src2tgtFaces, MR_MapOrHashMap_MR_VertId_MR_VertId *src2tgtVerts, MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *src2tgtEdges, MR_MapOrHashMap_MR_FaceId_MR_FaceId *tgt2srcFaces, MR_MapOrHashMap_MR_VertId_MR_VertId *tgt2srcVerts, MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *tgt2srcEdges)
 
MRC_API const MR_PartMappingMR_PartMapping_OffsetPtr (const MR_PartMapping *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_PartMappingMR_PartMapping_OffsetMutablePtr (MR_PartMapping *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_PartMappingMR_PartMapping_ConstructFromAnother (const MR_PartMapping *_other)
 
MRC_API void MR_PartMapping_Destroy (const MR_PartMapping *_this)
 Destroys a heap-allocated instance of MR_PartMapping. Does nothing if the pointer is null.
 
MRC_API void MR_PartMapping_DestroyArray (const MR_PartMapping *_this)
 Destroys a heap-allocated array of MR_PartMapping. Does nothing if the pointer is null.
 
MRC_API MR_PartMappingMR_PartMapping_AssignFromAnother (MR_PartMapping *_this, const MR_PartMapping *_other)
 
MRC_API void MR_PartMapping_clear (MR_PartMapping *_this)
 

Typedef Documentation

◆ MR_MapOrHashMap_MR_FaceId_MR_FaceId

◆ MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId

◆ MR_MapOrHashMap_MR_VertId_MR_VertId

◆ MR_PartMapping

mapping among elements of source mesh, from which a part is taken, and target mesh Generated from class MR::PartMapping.

Function Documentation

◆ MR_PartMapping_AssignFromAnother()

MRC_API MR_PartMapping * MR_PartMapping_AssignFromAnother ( MR_PartMapping * _this,
const MR_PartMapping * _other )

Generated from a method of class MR::PartMapping 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_PartMapping_clear()

MRC_API void MR_PartMapping_clear ( MR_PartMapping * _this)

clears all member maps Generated from a method of class MR::PartMapping named clear. Parameter _this can not be null. It is a single object.

◆ MR_PartMapping_ConstructFrom()

Constructs MR::PartMapping elementwise. Never returns null. Returns an instance allocated on the heap! Must call MR_PartMapping_Destroy() to free it when you're done using it.

◆ MR_PartMapping_ConstructFromAnother()

MRC_API MR_PartMapping * MR_PartMapping_ConstructFromAnother ( const MR_PartMapping * _other)

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

◆ MR_PartMapping_DefaultConstruct()

MRC_API MR_PartMapping * MR_PartMapping_DefaultConstruct ( void )

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

◆ MR_PartMapping_DefaultConstructArray()

MRC_API MR_PartMapping * MR_PartMapping_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_PartMapping_DestroyArray(). Use MR_PartMapping_OffsetMutablePtr() and MR_PartMapping_OffsetPtr() to access the array elements.

◆ MR_PartMapping_Destroy()

MRC_API void MR_PartMapping_Destroy ( const MR_PartMapping * _this)

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

◆ MR_PartMapping_DestroyArray()

MRC_API void MR_PartMapping_DestroyArray ( const MR_PartMapping * _this)

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

◆ MR_PartMapping_Get_src2tgtEdges()

MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *const * MR_PartMapping_Get_src2tgtEdges ( const MR_PartMapping * _this)

Returns a pointer to a member variable of class MR::PartMapping named src2tgtEdges. Parameter _this 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_PartMapping_Get_src2tgtFaces()

MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId *const * MR_PartMapping_Get_src2tgtFaces ( const MR_PartMapping * _this)

Returns a pointer to a member variable of class MR::PartMapping named src2tgtFaces. Parameter _this 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_PartMapping_Get_src2tgtVerts()

MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId *const * MR_PartMapping_Get_src2tgtVerts ( const MR_PartMapping * _this)

Returns a pointer to a member variable of class MR::PartMapping named src2tgtVerts. Parameter _this 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_PartMapping_Get_tgt2srcEdges()

MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId *const * MR_PartMapping_Get_tgt2srcEdges ( const MR_PartMapping * _this)

Returns a pointer to a member variable of class MR::PartMapping named tgt2srcEdges. Parameter _this 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_PartMapping_Get_tgt2srcFaces()

MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId *const * MR_PartMapping_Get_tgt2srcFaces ( const MR_PartMapping * _this)

Returns a pointer to a member variable of class MR::PartMapping named tgt2srcFaces. Parameter _this 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_PartMapping_Get_tgt2srcVerts()

MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId *const * MR_PartMapping_Get_tgt2srcVerts ( const MR_PartMapping * _this)

Returns a pointer to a member variable of class MR::PartMapping named tgt2srcVerts. Parameter _this 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_PartMapping_GetMutable_src2tgtEdges()

MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId ** MR_PartMapping_GetMutable_src2tgtEdges ( MR_PartMapping * _this)

Returns a mutable pointer to a member variable of class MR::PartMapping named src2tgtEdges. Parameter _this 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_PartMapping_GetMutable_src2tgtFaces()

MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId ** MR_PartMapping_GetMutable_src2tgtFaces ( MR_PartMapping * _this)

Returns a mutable pointer to a member variable of class MR::PartMapping named src2tgtFaces. Parameter _this 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_PartMapping_GetMutable_src2tgtVerts()

MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId ** MR_PartMapping_GetMutable_src2tgtVerts ( MR_PartMapping * _this)

Returns a mutable pointer to a member variable of class MR::PartMapping named src2tgtVerts. Parameter _this 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_PartMapping_GetMutable_tgt2srcEdges()

MRC_API MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId ** MR_PartMapping_GetMutable_tgt2srcEdges ( MR_PartMapping * _this)

Returns a mutable pointer to a member variable of class MR::PartMapping named tgt2srcEdges. Parameter _this 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_PartMapping_GetMutable_tgt2srcFaces()

MRC_API MR_MapOrHashMap_MR_FaceId_MR_FaceId ** MR_PartMapping_GetMutable_tgt2srcFaces ( MR_PartMapping * _this)

Returns a mutable pointer to a member variable of class MR::PartMapping named tgt2srcFaces. Parameter _this 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_PartMapping_GetMutable_tgt2srcVerts()

MRC_API MR_MapOrHashMap_MR_VertId_MR_VertId ** MR_PartMapping_GetMutable_tgt2srcVerts ( MR_PartMapping * _this)

Returns a mutable pointer to a member variable of class MR::PartMapping named tgt2srcVerts. Parameter _this 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_PartMapping_OffsetMutablePtr()

MRC_API MR_PartMapping * MR_PartMapping_OffsetMutablePtr ( MR_PartMapping * 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_PartMapping_OffsetPtr()

MRC_API const MR_PartMapping * MR_PartMapping_OffsetPtr ( const MR_PartMapping * 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_PartMapping_Set_src2tgtEdges()

MRC_API void MR_PartMapping_Set_src2tgtEdges ( MR_PartMapping * _this,
MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId * value )

Modifies a member variable of class MR::PartMapping named src2tgtEdges. Parameter _this can not be null. It is a single object.

◆ MR_PartMapping_Set_src2tgtFaces()

MRC_API void MR_PartMapping_Set_src2tgtFaces ( MR_PartMapping * _this,
MR_MapOrHashMap_MR_FaceId_MR_FaceId * value )

Modifies a member variable of class MR::PartMapping named src2tgtFaces. Parameter _this can not be null. It is a single object.

◆ MR_PartMapping_Set_src2tgtVerts()

MRC_API void MR_PartMapping_Set_src2tgtVerts ( MR_PartMapping * _this,
MR_MapOrHashMap_MR_VertId_MR_VertId * value )

Modifies a member variable of class MR::PartMapping named src2tgtVerts. Parameter _this can not be null. It is a single object.

◆ MR_PartMapping_Set_tgt2srcEdges()

MRC_API void MR_PartMapping_Set_tgt2srcEdges ( MR_PartMapping * _this,
MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId * value )

Modifies a member variable of class MR::PartMapping named tgt2srcEdges. Parameter _this can not be null. It is a single object.

◆ MR_PartMapping_Set_tgt2srcFaces()

MRC_API void MR_PartMapping_Set_tgt2srcFaces ( MR_PartMapping * _this,
MR_MapOrHashMap_MR_FaceId_MR_FaceId * value )

Modifies a member variable of class MR::PartMapping named tgt2srcFaces. Parameter _this can not be null. It is a single object.

◆ MR_PartMapping_Set_tgt2srcVerts()

MRC_API void MR_PartMapping_Set_tgt2srcVerts ( MR_PartMapping * _this,
MR_MapOrHashMap_MR_VertId_MR_VertId * value )

Modifies a member variable of class MR::PartMapping named tgt2srcVerts. Parameter _this can not be null. It is a single object.