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)
 
MRC_API MR_PartMappingMR_PartMapping_OffsetMutablePtr (MR_PartMapping *ptr, ptrdiff_t i)
 
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. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_PartMapping_AssignFromAnother()

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

Generated from method MR::PartMapping::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.

◆ MR_PartMapping_clear()

MRC_API void MR_PartMapping_clear ( MR_PartMapping * _this)

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

◆ MR_PartMapping_ConstructFrom()

Constructs MR::PartMapping elementwise. The reference to the parameter src2tgtFaces might be preserved in the constructed object. The reference to the parameter src2tgtVerts might be preserved in the constructed object. The reference to the parameter src2tgtEdges might be preserved in the constructed object. The reference to the parameter tgt2srcFaces might be preserved in the constructed object. The reference to the parameter tgt2srcVerts might be preserved in the constructed object. The reference to the parameter tgt2srcEdges might be preserved in the constructed 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. When this function is called, this object will drop any object references it had previously.

◆ MR_PartMapping_ConstructFromAnother()

MRC_API MR_PartMapping * MR_PartMapping_ConstructFromAnother ( const MR_PartMapping * _other)

Generated from constructor MR::PartMapping::PartMapping. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed 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. The reference to the parameter ptr might be preserved in the return value.

◆ 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. The reference to the parameter ptr might be preserved in the return value.

◆ 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. The reference to the parameter value might be preserved in this object in element src2tgtEdges. When this function is called, this object will drop object references it had previously in src2tgtEdges.

◆ 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. The reference to the parameter value might be preserved in this object in element src2tgtFaces. When this function is called, this object will drop object references it had previously in src2tgtFaces.

◆ 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. The reference to the parameter value might be preserved in this object in element src2tgtVerts. When this function is called, this object will drop object references it had previously in src2tgtVerts.

◆ 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. The reference to the parameter value might be preserved in this object in element tgt2srcEdges. When this function is called, this object will drop object references it had previously in tgt2srcEdges.

◆ 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. The reference to the parameter value might be preserved in this object in element tgt2srcFaces. When this function is called, this object will drop object references it had previously in tgt2srcFaces.

◆ 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. The reference to the parameter value might be preserved in this object in element tgt2srcVerts. When this function is called, this object will drop object references it had previously in tgt2srcVerts.