MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.Heap_float_MR_GraphVertId_std_greater_float Class Reference

stores map from element id in[0, size) to T; More...

Inheritance diagram for meshlib.Heap_float_MR_GraphVertId_std_greater_float:

Public Member Functions

 Heap_float_MR_GraphVertId_std_greater_float (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 Heap_float_MR_GraphVertId_std_greater_float ()
 Heap_float_MR_GraphVertId_std_greater_float (meshlib.Heap_float_MR_GraphVertId_std_greater_float _other)
 Heap_float_MR_GraphVertId_std_greater_float (long size, java.lang.Float def)
 Heap_float_MR_GraphVertId_std_greater_float (meshlib.std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element elms)
meshlib.Heap_float_MR_GraphVertId_std_greater_float assignFromAnother (meshlib.Heap_float_MR_GraphVertId_std_greater_float _other)
long size ()
void resize (long size, java.lang.Float def)
boolean contains (meshlib.GraphVertId elemId)
void push (meshlib.GraphVertId elemId, float val)
void erase (meshlib.GraphVertId elemId)
void pop ()
float value (meshlib.GraphVertId elemId)
meshlib.Heap_float_MR_GraphVertId_std_greater_float_Element top ()
void setValue (meshlib.GraphVertId elemId, float newVal)
void setLargerValue (meshlib.GraphVertId elemId, float newVal)
void setSmallerValue (meshlib.GraphVertId elemId, float newVal)
meshlib.Heap_float_MR_GraphVertId_std_greater_float_Element setTopValue (float newVal)
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 ()

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 map from element id in[0, size) to T;

provides two operations: 1) change the value of any element; 2) find the element with the largest value

Generated from class MR::Heap<float, MR::GraphVertId, std::greater<float>>.

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

Constructor & Destructor Documentation

◆ Heap_float_MR_GraphVertId_std_greater_float() [1/5]

meshlib.Heap_float_MR_GraphVertId_std_greater_float.Heap_float_MR_GraphVertId_std_greater_float ( 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.

◆ Heap_float_MR_GraphVertId_std_greater_float() [2/5]

meshlib.Heap_float_MR_GraphVertId_std_greater_float.Heap_float_MR_GraphVertId_std_greater_float ( )

constructs an empty heap Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Heap. The reference to the parameter pred might be preserved in the constructed object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_1().

◆ Heap_float_MR_GraphVertId_std_greater_float() [3/5]

meshlib.Heap_float_MR_GraphVertId_std_greater_float.Heap_float_MR_GraphVertId_std_greater_float ( meshlib.Heap_float_MR_GraphVertId_std_greater_float _other)

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

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_ConstructFromAnother().

◆ Heap_float_MR_GraphVertId_std_greater_float() [4/5]

meshlib.Heap_float_MR_GraphVertId_std_greater_float.Heap_float_MR_GraphVertId_std_greater_float ( long size,
java.lang.Float def )

constructs heap for given number of elements, assigning given default value to each element Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Heap.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_3().

◆ Heap_float_MR_GraphVertId_std_greater_float() [5/5]

meshlib.Heap_float_MR_GraphVertId_std_greater_float.Heap_float_MR_GraphVertId_std_greater_float ( meshlib.std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element elms)

constructs heap from given elements (id's shall not repeat, but can have spaces and be arbitrary shuffled) Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Heap. The reference to things referred to by the parameter elms (if any) might be preserved in the constructed object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_2().

Member Function Documentation

◆ assignFromAnother()

meshlib.Heap_float_MR_GraphVertId_std_greater_float meshlib.Heap_float_MR_GraphVertId_std_greater_float.assignFromAnother ( meshlib.Heap_float_MR_GraphVertId_std_greater_float _other)

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

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_AssignFromAnother().

◆ contains()

boolean meshlib.Heap_float_MR_GraphVertId_std_greater_float.contains ( meshlib.GraphVertId elemId)

returns true if given element is present in the heap Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::contains.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_contains().

◆ erase()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.erase ( meshlib.GraphVertId elemId)

removes given element from the heap Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::erase.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_erase().

◆ pop()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.pop ( )

removes the element with the largest value from the heap Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::pop.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_pop().

◆ push()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.push ( meshlib.GraphVertId elemId,
float val )

adds given element, which is not present in the heap yet Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::push. The reference to things referred to by the parameter val (if any) might be preserved in this object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_push().

◆ resize()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.resize ( long size,
java.lang.Float def )

increases the size of the heap by adding elements at the end Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::resize.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_resize().

◆ setLargerValue()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.setLargerValue ( meshlib.GraphVertId elemId,
float newVal )

sets new value to given element, which shall be larger/smaller than the current value Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setLargerValue. The reference to things referred to by the parameter newVal (if any) might be preserved in this object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_setLargerValue().

◆ setSmallerValue()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.setSmallerValue ( meshlib.GraphVertId elemId,
float newVal )

Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setSmallerValue. The reference to things referred to by the parameter newVal (if any) might be preserved in this object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_setSmallerValue().

◆ setTopValue()

meshlib.Heap_float_MR_GraphVertId_std_greater_float_Element meshlib.Heap_float_MR_GraphVertId_std_greater_float.setTopValue ( float newVal)

sets new value to the current top element, returning its previous value Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setTopValue. The reference to things referred to by the parameter newVal (if any) might be preserved in this object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_setTopValue().

◆ setValue()

void meshlib.Heap_float_MR_GraphVertId_std_greater_float.setValue ( meshlib.GraphVertId elemId,
float newVal )

sets new value to given element Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setValue. The reference to things referred to by the parameter newVal (if any) might be preserved in this object.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_setValue().

◆ size()

long meshlib.Heap_float_MR_GraphVertId_std_greater_float.size ( )

returns the size of the heap Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::size.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_size().

◆ top()

meshlib.Heap_float_MR_GraphVertId_std_greater_float_Element meshlib.Heap_float_MR_GraphVertId_std_greater_float.top ( )

returns the element with the largest value Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::top. The reference to this object might be preserved in the return value.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_top().

◆ value()

float meshlib.Heap_float_MR_GraphVertId_std_greater_float.value ( meshlib.GraphVertId elemId)

returns the value associated with given element Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::value. The reference to this object might be preserved in the return value.

Calls MR_Heap_float_MR_GraphVertId_std_greater_float_value().


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