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