MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId Struct Reference
Inheritance diagram for meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId:

Public Member Functions

auto assign_from_another (_other:&meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId) -> &mut meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId
void set_map (m:&mut meshlib::WholeEdgeMap)
void set_hash_map (m:&mut meshlib::phmap::phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId)
void resize_reserve (denseTotalSize:usize, hashAdditionalCapacity:usize)
void push_back (key:meshlib::UndirectedEdgeId, val:meshlib::EdgeId)
auto get_map_mut () -> Option<&mut meshlib::WholeEdgeMap >
auto get_map () const -> Option<&meshlib::WholeEdgeMap >
auto get_hash_map_mut () -> Option<&mut meshlib::phmap::phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId >
auto get_hash_map () const -> Option<&meshlib::phmap::phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId >
void clear ()
auto var () const -> &meshlib::std_variant_MR_WholeEdgeMap_phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId
auto var_mut () -> &mut meshlib::std_variant_MR_WholeEdgeMap_phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId
void set_var (value:&meshlib::std_variant_MR_WholeEdgeMap_phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static auto construct_from (var:&meshlib::std_variant_MR_WholeEdgeMap_phmap_flat_hash_map_MR_UndirectedEdgeId_MR_EdgeId_phmap_Hash_MR_UndirectedEdgeId_phmap_EqualTo_MR_UndirectedEdgeId_MR_Allocator_std_pair_const_MR_UndirectedEdgeId_MR_EdgeId) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static auto construct_from_another (_other:&meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static auto create_map (size:Option< usize >) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static auto create_hash_map (capacity:Option< usize >) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

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 Generated from class MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>.

Generated from class MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>. Heap-allocated instances are held in Owned<MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::assign_from_another ( _other:&meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId ) -> &mut meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::operator=.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ clear()

void meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::clear ( )

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::clear.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_clear().

◆ construct_from()

Constructs MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId> elementwise.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_ConstructFrom(). The reference to the parameter var might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::construct_from_another ( _other:&meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId ) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static

Generated from constructor MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::MapOrHashMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ create_hash_map()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::create_hash_map ( capacity:Option< usize > ) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::createHashMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_createHashMap().

◆ create_map()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::create_map ( size:Option< usize > ) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::createMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_createMap().

◆ get_hash_map()

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::getHashMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_getHashMap(). The reference to this object might be preserved in the return value.

◆ get_hash_map_mut()

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::getHashMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_getHashMap_mut(). The reference to this object might be preserved in the return value.

◆ get_map()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::get_map ( ) const -> Option<&meshlib::WholeEdgeMap >

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::getMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_getMap(). The reference to this object might be preserved in the return value.

◆ get_map_mut()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::get_map_mut ( ) -> Option<&mut meshlib::WholeEdgeMap >

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::getMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_getMap_mut(). The reference to this object might be preserved in the return value.

◆ new()

auto meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::new ( ) -> meshlib::Owned< meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId >
static

Constructs an empty (default-constructed) instance.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_DefaultConstruct().

◆ push_back()

void meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::push_back ( key:meshlib::UndirectedEdgeId ,
val:meshlib::EdgeId  )

appends one element in the map, in case of dense map, key must be equal to vector.endId() Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::pushBack.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_pushBack(). The reference to things referred to by the parameter key (if any) might be preserved in this object. The reference to things referred to by the parameter val (if any) might be preserved in this object.

◆ resize_reserve()

void meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::resize_reserve ( denseTotalSize:usize ,
hashAdditionalCapacity:usize  )

if this stores dense map then resizes it to denseTotalSize; if this stores hash map then sets its capacity to size()+hashAdditionalCapacity Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::resizeReserve.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_resizeReserve().

◆ set_hash_map()

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::setHashMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_setHashMap(). The reference to things referred to by the parameter m (if any) might be preserved in this object.

◆ set_map()

void meshlib::MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId::set_map ( m:&mut meshlib::WholeEdgeMap )

Generated from method MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId>::setMap.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_setMap(). The reference to things referred to by the parameter m (if any) might be preserved in this object.

◆ set_var()

default construction will select dense map Modifies a member variable of class MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId> named var.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_Set_var(). The reference to the parameter value might be preserved in this object in element var.

◆ var()

default construction will select dense map Returns a pointer to a member variable of class MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId> named var.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_Get_var(). The reference to this object might be preserved as the return value.

◆ var_mut()

default construction will select dense map Returns a mutable pointer to a member variable of class MR::MapOrHashMap<MR::UndirectedEdgeId, MR::EdgeId> named var.

Calls MR_MapOrHashMap_MR_UndirectedEdgeId_MR_EdgeId_GetMutable_var(). The reference to this object might be preserved as the return value.


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