MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.MapOrHashMap_FaceId_FaceId Class Reference
Inheritance diagram for mrmeshpy.MapOrHashMap_FaceId_FaceId:

Public Member Functions

None __init__ (self)
None __init__ (self, ConstMapOrHashMap_FaceId_FaceId arg0)
None __init__ (self, Const_std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag var)
MapOrHashMap_FaceId_FaceId assign (self, ConstMapOrHashMap_FaceId_FaceId other)
None clear (self)
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag getHashMap (self)
Const_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag getHashMap (ConstMapOrHashMap_FaceId_FaceId self)
FaceMap getMap (self)
ConstFaceMap getMap (ConstMapOrHashMap_FaceId_FaceId self)
None pushBack (self, ConstFaceId key, ConstFaceId val)
None resizeReserve (self, int denseTotalSize, int hashAdditionalCapacity)
None setHashMap (self, phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag m)
None setMap (self, FaceMap m)
std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag var (self)
None var (self, Const_std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag arg1)
Public Member Functions inherited from mrmeshpy.ConstMapOrHashMap_FaceId_FaceId
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstMapOrHashMap_FaceId_FaceId
MapOrHashMap_FaceId_FaceId createHashMap (int capacity=0)
MapOrHashMap_FaceId_FaceId createMap (int size=0)

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstMapOrHashMap_FaceId_FaceId
 ConstDense = ConstFaceMap
 ConstHash = Const_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag
 Dense = FaceMap
 Hash = phmap_flat_hash_map_Id_FaceTag_Id_FaceTag_phmap_Hash_Id_FaceTag_phmap_EqualTo_Id_FaceTag_Allocator_std_pair_Id_FaceTag_const_Id_FaceTag
Static Protected Attributes inherited from mrmeshpy.ConstMapOrHashMap_FaceId_FaceId
typing _offsetof_var = 0

Detailed Description

Generated from:  MR::MapOrHashMap<MR::FaceId, MR::FaceId>
Aliases:  FaceMapOrHashMap

stores a mapping from keys K to values V in one of two forms:
1) as dense map (vector) preferable when there are few missing keys in a range [0, endKey)
2) as hash map preferable when valid keys are a small subset of the range

Constructor & Destructor Documentation

◆ __init__() [1/4]

None mrmeshpy.MapOrHashMap_FaceId_FaceId.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.MapOrHashMap_FaceId_FaceId.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.MapOrHashMap_FaceId_FaceId.__init__ ( self,
ConstMapOrHashMap_FaceId_FaceId arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

Member Function Documentation

◆ assign()

MapOrHashMap_FaceId_FaceId mrmeshpy.MapOrHashMap_FaceId_FaceId.assign ( self,
ConstMapOrHashMap_FaceId_FaceId other )

◆ clear()

None mrmeshpy.MapOrHashMap_FaceId_FaceId.clear ( self)

◆ getHashMap() [1/2]

◆ getHashMap() [2/2]

◆ getMap() [1/2]

ConstFaceMap mrmeshpy.MapOrHashMap_FaceId_FaceId.getMap ( ConstMapOrHashMap_FaceId_FaceId self)

◆ getMap() [2/2]

FaceMap mrmeshpy.MapOrHashMap_FaceId_FaceId.getMap ( self)

◆ pushBack()

None mrmeshpy.MapOrHashMap_FaceId_FaceId.pushBack ( self,
ConstFaceId key,
ConstFaceId val )
appends one element in the map,
in case of dense map, key must be equal to vector.endId()

◆ resizeReserve()

None mrmeshpy.MapOrHashMap_FaceId_FaceId.resizeReserve ( self,
int denseTotalSize,
int hashAdditionalCapacity )
if this stores dense map then resizes it to denseTotalSize;
if this stores hash map then sets its capacity to size()+hashAdditionalCapacity

◆ setHashMap()

◆ setMap()

None mrmeshpy.MapOrHashMap_FaceId_FaceId.setMap ( self,
FaceMap m )

◆ var() [1/2]

◆ var() [2/2]


The documentation for this class was generated from the following file: