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

Public Member Functions

None __init__ (self)
 
None __init__ (self, std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag var)
 
None clear (self)
 
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag getHashMap (self)
 
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag getHashMap (self)
 
FaceMap getMap (self)
 
FaceMap getMap (self)
 
None pushBack (self, FaceId key, FaceId val)
 
None resizeReserve (self, int denseTotalSize, int hashAdditionalCapacity)
 
None setHashMap (self, phmap_flat_hash_map_Id_FaceTag_Id_FaceTag m)
 
None setMap (self, FaceMap m)
 
std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag var (self)
 
None var (self, std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag arg1)
 

Static Public Member Functions

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

Static Public Attributes

 Dense = FaceMap
 
 Hash = phmap_flat_hash_map_Id_FaceTag_Id_FaceTag
 

Static Protected Attributes

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

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

◆ __init__() [2/3]

None mrmeshpy.MapOrHashMap_FaceId_FaceId.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.MapOrHashMap_FaceId_FaceId.__init__ ( self,
std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag var )
Implicit aggregate constructor.

Member Function Documentation

◆ clear()

None mrmeshpy.MapOrHashMap_FaceId_FaceId.clear ( self)

◆ createHashMap()

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

◆ createMap()

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

◆ getHashMap() [1/2]

phmap_flat_hash_map_Id_FaceTag_Id_FaceTag mrmeshpy.MapOrHashMap_FaceId_FaceId.getHashMap ( self)

◆ getHashMap() [2/2]

phmap_flat_hash_map_Id_FaceTag_Id_FaceTag mrmeshpy.MapOrHashMap_FaceId_FaceId.getHashMap ( self)

◆ getMap() [1/2]

FaceMap mrmeshpy.MapOrHashMap_FaceId_FaceId.getMap ( self)

◆ getMap() [2/2]

FaceMap mrmeshpy.MapOrHashMap_FaceId_FaceId.getMap ( self)

◆ operator() [1/2]

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

◆ operator() [2/2]

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

◆ pushBack()

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

None mrmeshpy.MapOrHashMap_FaceId_FaceId.setHashMap ( self,
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag m )

◆ setMap()

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

◆ var() [1/2]

default construction will select dense map

◆ var() [2/2]

None mrmeshpy.MapOrHashMap_FaceId_FaceId.var ( self,
std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag arg1 )

Member Data Documentation

◆ _offsetof_var

typing mrmeshpy.MapOrHashMap_FaceId_FaceId._offsetof_var = 0
staticprotected

◆ Dense

mrmeshpy.MapOrHashMap_FaceId_FaceId.Dense = FaceMap
static

◆ Hash

mrmeshpy.MapOrHashMap_FaceId_FaceId.Hash = phmap_flat_hash_map_Id_FaceTag_Id_FaceTag
static

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