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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstMapOrHashMap_EdgeId_EdgeId arg0)
None __init__ (self, Const_std_variant_Vector_Id_EdgeTag_Id_EdgeTag_phmap_flat_hash_map_Id_EdgeTag_Id_EdgeTag_phmap_Hash_Id_EdgeTag_phmap_EqualTo_Id_EdgeTag_Allocator_std_pair_Id_EdgeTag_const_Id_EdgeTag var)
MapOrHashMap_EdgeId_EdgeId assign (self, ConstMapOrHashMap_EdgeId_EdgeId other)
None clear (self)
phmap_flat_hash_map_Id_EdgeTag_Id_EdgeTag_phmap_Hash_Id_EdgeTag_phmap_EqualTo_Id_EdgeTag_Allocator_std_pair_Id_EdgeTag_const_Id_EdgeTag getHashMap (self)
Const_phmap_flat_hash_map_Id_EdgeTag_Id_EdgeTag_phmap_Hash_Id_EdgeTag_phmap_EqualTo_Id_EdgeTag_Allocator_std_pair_Id_EdgeTag_const_Id_EdgeTag getHashMap (ConstMapOrHashMap_EdgeId_EdgeId self)
EdgeMap getMap (self)
ConstEdgeMap getMap (ConstMapOrHashMap_EdgeId_EdgeId self)
None pushBack (self, ConstEdgeId key, ConstEdgeId val)
None resizeReserve (self, int denseTotalSize, int hashAdditionalCapacity)
None setHashMap (self, phmap_flat_hash_map_Id_EdgeTag_Id_EdgeTag_phmap_Hash_Id_EdgeTag_phmap_EqualTo_Id_EdgeTag_Allocator_std_pair_Id_EdgeTag_const_Id_EdgeTag m)
None setMap (self, EdgeMap m)
std_variant_Vector_Id_EdgeTag_Id_EdgeTag_phmap_flat_hash_map_Id_EdgeTag_Id_EdgeTag_phmap_Hash_Id_EdgeTag_phmap_EqualTo_Id_EdgeTag_Allocator_std_pair_Id_EdgeTag_const_Id_EdgeTag var (self)
None var (self, Const_std_variant_Vector_Id_EdgeTag_Id_EdgeTag_phmap_flat_hash_map_Id_EdgeTag_Id_EdgeTag_phmap_Hash_Id_EdgeTag_phmap_EqualTo_Id_EdgeTag_Allocator_std_pair_Id_EdgeTag_const_Id_EdgeTag arg1)
Public Member Functions inherited from mrmeshpy.ConstMapOrHashMap_EdgeId_EdgeId
 __init__ (self, *args, **kwargs)

Static Public Member Functions

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

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstMapOrHashMap_EdgeId_EdgeId
typing _offsetof_var = 0

Detailed Description

Generated from:  MR::MapOrHashMap<MR::EdgeId, MR::EdgeId>
Aliases:  EdgeMapOrHashMap, MapOrHashMap_Id_EdgeTag_Id_EdgeTag, MapOrHashMap_Id_EdgeTag_Id_EdgeTag, MapOrHashMap_Id_EdgeTag_Id_EdgeTag

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

◆ __init__() [2/4]

None mrmeshpy.MapOrHashMap_EdgeId_EdgeId.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.MapOrHashMap_EdgeId_EdgeId.__init__ ( self,
ConstMapOrHashMap_EdgeId_EdgeId arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

Member Function Documentation

◆ assign()

MapOrHashMap_EdgeId_EdgeId mrmeshpy.MapOrHashMap_EdgeId_EdgeId.assign ( self,
ConstMapOrHashMap_EdgeId_EdgeId other )

◆ clear()

None mrmeshpy.MapOrHashMap_EdgeId_EdgeId.clear ( self)

◆ getHashMap() [1/2]

◆ getHashMap() [2/2]

◆ getMap() [1/2]

ConstEdgeMap mrmeshpy.MapOrHashMap_EdgeId_EdgeId.getMap ( ConstMapOrHashMap_EdgeId_EdgeId self)

◆ getMap() [2/2]

EdgeMap mrmeshpy.MapOrHashMap_EdgeId_EdgeId.getMap ( self)

◆ pushBack()

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

◆ resizeReserve()

None mrmeshpy.MapOrHashMap_EdgeId_EdgeId.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_EdgeId_EdgeId.setMap ( self,
EdgeMap m )

◆ var() [1/2]

◆ var() [2/2]


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