MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.MapOrHashMap_VertId_VertId Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag var)
 
None clear (self)
 
phmap_flat_hash_map_Id_VertTag_Id_VertTag getHashMap (self)
 
phmap_flat_hash_map_Id_VertTag_Id_VertTag getHashMap (self)
 
VertMap getMap (self)
 
VertMap getMap (self)
 
None pushBack (self, VertId key, VertId val)
 
None resizeReserve (self, int denseTotalSize, int hashAdditionalCapacity)
 
None setHashMap (self, phmap_flat_hash_map_Id_VertTag_Id_VertTag m)
 
None setMap (self, VertMap m)
 
std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag var (self)
 
None var (self, std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
MapOrHashMap_VertId_VertId createHashMap (int capacity=0)
 
MapOrHashMap_VertId_VertId createMap (int size=0)
 
MapOrHashMap_VertId_VertId operator (*args, **kwargs)
 
MapOrHashMap_VertId_VertId operator (*args, **kwargs)
 

Static Public Attributes

 Dense = VertMap
 
 Hash = phmap_flat_hash_map_Id_VertTag_Id_VertTag
 

Static Protected Attributes

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/3]

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

◆ __init__() [2/3]

None mrmeshpy.MapOrHashMap_VertId_VertId.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.MapOrHashMap_VertId_VertId.__init__ ( self,
std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag var )
Implicit aggregate constructor.

Member Function Documentation

◆ clear()

None mrmeshpy.MapOrHashMap_VertId_VertId.clear ( self)

◆ createHashMap()

MapOrHashMap_VertId_VertId mrmeshpy.MapOrHashMap_VertId_VertId.createHashMap ( int capacity = 0)
static

◆ createMap()

MapOrHashMap_VertId_VertId mrmeshpy.MapOrHashMap_VertId_VertId.createMap ( int size = 0)
static

◆ getHashMap() [1/2]

phmap_flat_hash_map_Id_VertTag_Id_VertTag mrmeshpy.MapOrHashMap_VertId_VertId.getHashMap ( self)

◆ getHashMap() [2/2]

phmap_flat_hash_map_Id_VertTag_Id_VertTag mrmeshpy.MapOrHashMap_VertId_VertId.getHashMap ( self)

◆ getMap() [1/2]

VertMap mrmeshpy.MapOrHashMap_VertId_VertId.getMap ( self)

◆ getMap() [2/2]

VertMap mrmeshpy.MapOrHashMap_VertId_VertId.getMap ( self)

◆ operator() [1/2]

MapOrHashMap_VertId_VertId mrmeshpy.MapOrHashMap_VertId_VertId.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

MapOrHashMap_VertId_VertId mrmeshpy.MapOrHashMap_VertId_VertId.operator ( * args,
** kwargs )
static

◆ pushBack()

None mrmeshpy.MapOrHashMap_VertId_VertId.pushBack ( self,
VertId key,
VertId 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()

None mrmeshpy.MapOrHashMap_VertId_VertId.setHashMap ( self,
phmap_flat_hash_map_Id_VertTag_Id_VertTag m )

◆ setMap()

None mrmeshpy.MapOrHashMap_VertId_VertId.setMap ( self,
VertMap m )

◆ var() [1/2]

default construction will select dense map

◆ var() [2/2]

None mrmeshpy.MapOrHashMap_VertId_VertId.var ( self,
std_variant_Vector_Id_VertTag_Id_VertTag_phmap_flat_hash_map_Id_VertTag_Id_VertTag arg1 )

Member Data Documentation

◆ _offsetof_var

typing mrmeshpy.MapOrHashMap_VertId_VertId._offsetof_var = 0
staticprotected

◆ Dense

mrmeshpy.MapOrHashMap_VertId_VertId.Dense = VertMap
static

◆ Hash

mrmeshpy.MapOrHashMap_VertId_VertId.Hash = phmap_flat_hash_map_Id_VertTag_Id_VertTag
static

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