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 |
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
|
static |
None mrmeshpy.MapOrHashMap_FaceId_FaceId.__init__ | ( | self | ) |
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.
None mrmeshpy.MapOrHashMap_FaceId_FaceId.clear | ( | self | ) |
|
static |
|
static |
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag mrmeshpy.MapOrHashMap_FaceId_FaceId.getHashMap | ( | self | ) |
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag mrmeshpy.MapOrHashMap_FaceId_FaceId.getHashMap | ( | self | ) |
FaceMap mrmeshpy.MapOrHashMap_FaceId_FaceId.getMap | ( | self | ) |
FaceMap mrmeshpy.MapOrHashMap_FaceId_FaceId.getMap | ( | self | ) |
|
static |
|
static |
appends one element in the map, in case of dense map, key must be equal to vector.endId()
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
None mrmeshpy.MapOrHashMap_FaceId_FaceId.setHashMap | ( | self, | |
phmap_flat_hash_map_Id_FaceTag_Id_FaceTag | m ) |
None mrmeshpy.MapOrHashMap_FaceId_FaceId.setMap | ( | self, | |
FaceMap | m ) |
std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag mrmeshpy.MapOrHashMap_FaceId_FaceId.var | ( | self | ) |
default construction will select dense map
None mrmeshpy.MapOrHashMap_FaceId_FaceId.var | ( | self, | |
std_variant_Vector_Id_FaceTag_Id_FaceTag_phmap_flat_hash_map_Id_FaceTag_Id_FaceTag | arg1 ) |
|
staticprotected |
|
static |
|
static |