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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstMapOrHashMap_VertId_VertId arg0)
None __init__ (self, Const_std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag var)
MapOrHashMap_VertId_VertId assign (self, ConstMapOrHashMap_VertId_VertId other)
None clear (self)
phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag getHashMap (self)
Const_phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag getHashMap (ConstMapOrHashMap_VertId_VertId self)
VertMap getMap (self)
ConstVertMap getMap (ConstMapOrHashMap_VertId_VertId self)
None pushBack (self, ConstVertId key, ConstVertId val)
None resizeReserve (self, int denseTotalSize, int hashAdditionalCapacity)
None setHashMap (self, phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag m)
None setMap (self, VertMap m)
std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag var (self)
None var (self, Const_std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag arg1)
Public Member Functions inherited from mrmeshpy.ConstMapOrHashMap_VertId_VertId
 __init__ (self, *args, **kwargs)

Static Public Member Functions

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

Additional Inherited Members

Static Public Attributes inherited from mrmeshpy.ConstMapOrHashMap_VertId_VertId
 ConstDense = ConstVertMap
 ConstHash = Const_phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag
 Dense = VertMap
 Hash = phmap_flat_hash_map_Id_VertTag_Id_VertTag_phmap_Hash_Id_VertTag_phmap_EqualTo_Id_VertTag_Allocator_std_pair_Id_VertTag_const_Id_VertTag
Static Protected Attributes inherited from mrmeshpy.ConstMapOrHashMap_VertId_VertId
typing _offsetof_var = 0

Detailed Description

Generated from:  MR::MapOrHashMap<MR::VertId, MR::VertId>
Aliases:  VertMapOrHashMap

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_VertId_VertId.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.MapOrHashMap_VertId_VertId.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.MapOrHashMap_VertId_VertId.__init__ ( self,
ConstMapOrHashMap_VertId_VertId arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

Member Function Documentation

◆ assign()

MapOrHashMap_VertId_VertId mrmeshpy.MapOrHashMap_VertId_VertId.assign ( self,
ConstMapOrHashMap_VertId_VertId other )

◆ clear()

None mrmeshpy.MapOrHashMap_VertId_VertId.clear ( self)

◆ getHashMap() [1/2]

◆ getHashMap() [2/2]

◆ getMap() [1/2]

ConstVertMap mrmeshpy.MapOrHashMap_VertId_VertId.getMap ( ConstMapOrHashMap_VertId_VertId self)

◆ getMap() [2/2]

VertMap mrmeshpy.MapOrHashMap_VertId_VertId.getMap ( self)

◆ pushBack()

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

◆ resizeReserve()

None mrmeshpy.MapOrHashMap_VertId_VertId.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_VertId_VertId.setMap ( self,
VertMap m )

◆ var() [1/2]

◆ var() [2/2]


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