MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.MapOrHashMap_MR_FaceId_MR_FaceId Class Reference
Inheritance diagram for meshlib.MapOrHashMap_MR_FaceId_MR_FaceId:

Public Member Functions

 MapOrHashMap_MR_FaceId_MR_FaceId (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MapOrHashMap_MR_FaceId_MR_FaceId ()
 MapOrHashMap_MR_FaceId_MR_FaceId (meshlib.std_variant_MR_FaceMap_phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR__d0a9240 var_)
 MapOrHashMap_MR_FaceId_MR_FaceId (meshlib.MapOrHashMap_MR_FaceId_MR_FaceId _other)
meshlib.MapOrHashMap_MR_FaceId_MR_FaceId assignFromAnother (meshlib.MapOrHashMap_MR_FaceId_MR_FaceId _other)
void setMap (meshlib.FaceMap m)
void setHashMap (meshlib.phmap.phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR_FaceId_MR_Allocator_st__dda91c58 m)
void resizeReserve (long denseTotalSize, long hashAdditionalCapacity)
void pushBack (meshlib.FaceId key, meshlib.FaceId val)
meshlib.FaceMap getMap_mut ()
meshlib.FaceMap getMap ()
meshlib.phmap.phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR_FaceId_MR_Allocator_st__dda91c58 getHashMap_mut ()
meshlib.phmap.phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR_FaceId_MR_Allocator_st__dda91c58 getHashMap ()
void clear ()
meshlib.std_variant_MR_FaceMap_phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR__d0a9240 var_ ()
void setVar (meshlib.std_variant_MR_FaceMap_phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR__d0a9240 value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static meshlib.MapOrHashMap_MR_FaceId_MR_FaceId createMap (java.lang.Long size)
static meshlib.MapOrHashMap_MR_FaceId_MR_FaceId createHashMap (java.lang.Long capacity)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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::FaceId, MR::FaceId>.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ MapOrHashMap_MR_FaceId_MR_FaceId() [1/4]

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.MapOrHashMap_MR_FaceId_MR_FaceId ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ MapOrHashMap_MR_FaceId_MR_FaceId() [2/4]

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.MapOrHashMap_MR_FaceId_MR_FaceId ( )

Constructs an empty (default-constructed) instance.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_DefaultConstruct().

◆ MapOrHashMap_MR_FaceId_MR_FaceId() [3/4]

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.MapOrHashMap_MR_FaceId_MR_FaceId ( meshlib.std_variant_MR_FaceMap_phmap_flat_hash_map_MR_FaceId_MR_FaceId_phmap_Hash_MR_FaceId_phmap_EqualTo_MR__d0a9240 var_)

Constructs MR::MapOrHashMap<MR::FaceId, MR::FaceId> elementwise. The reference to the parameter var might be preserved in the constructed object.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_ConstructFrom().

◆ MapOrHashMap_MR_FaceId_MR_FaceId() [4/4]

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.MapOrHashMap_MR_FaceId_MR_FaceId ( meshlib.MapOrHashMap_MR_FaceId_MR_FaceId _other)

Generated from constructor MR::MapOrHashMap<MR::FaceId, MR::FaceId>::MapOrHashMap. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.assignFromAnother ( meshlib.MapOrHashMap_MR_FaceId_MR_FaceId _other)

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_AssignFromAnother().

◆ clear()

void meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.clear ( )

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::clear.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_clear().

◆ createHashMap()

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.createHashMap ( java.lang.Long capacity)
static

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::createHashMap.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_createHashMap().

◆ createMap()

meshlib.MapOrHashMap_MR_FaceId_MR_FaceId meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.createMap ( java.lang.Long size)
static

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::createMap.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_createMap().

◆ getHashMap()

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::getHashMap. The reference to this object might be preserved in the return value.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_getHashMap().

◆ getHashMap_mut()

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::getHashMap. The reference to this object might be preserved in the return value.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_getHashMap_mut().

◆ getMap()

meshlib.FaceMap meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.getMap ( )

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::getMap. The reference to this object might be preserved in the return value.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_getMap().

◆ getMap_mut()

meshlib.FaceMap meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.getMap_mut ( )

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::getMap. The reference to this object might be preserved in the return value.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_getMap_mut().

◆ pushBack()

void meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.pushBack ( meshlib.FaceId key,
meshlib.FaceId val )

appends one element in the map, in case of dense map, key must be equal to vector.endId() Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::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.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_pushBack().

◆ resizeReserve()

void meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.resizeReserve ( long denseTotalSize,
long hashAdditionalCapacity )

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::FaceId, MR::FaceId>::resizeReserve.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_resizeReserve().

◆ setHashMap()

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::setHashMap. The reference to things referred to by the parameter m (if any) might be preserved in this object.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_setHashMap().

◆ setMap()

void meshlib.MapOrHashMap_MR_FaceId_MR_FaceId.setMap ( meshlib.FaceMap m)

Generated from method MR::MapOrHashMap<MR::FaceId, MR::FaceId>::setMap. The reference to things referred to by the parameter m (if any) might be preserved in this object.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_setMap().

◆ setVar()

default construction will select dense map Modifies a member variable of class MR::MapOrHashMap<MR::FaceId, MR::FaceId> named var. The reference to the parameter value might be preserved in this object in element var.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_Set_var().

◆ var_()

default construction will select dense map Returns a pointer to a member variable of class MR::MapOrHashMap<MR::FaceId, MR::FaceId> named var. The reference to this object might be preserved as the return value.

Calls MR_MapOrHashMap_MR_FaceId_MR_FaceId_Get_var().


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