stores map from element id in[0, size) to T; More...
Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::Heap_float_MR_GraphVertId_std_greater_float) -> &mut meshlib::Heap_float_MR_GraphVertId_std_greater_float |
| auto | size () const -> usize |
| void | resize (size:usize, def:Option< f32 >) |
| auto | contains (elemId:meshlib::GraphVertId) const -> bool |
| void | push (elemId:meshlib::GraphVertId, val:&f32) |
| void | erase (elemId:meshlib::GraphVertId) |
| void | pop () |
| auto | value (elemId:meshlib::GraphVertId) const -> &f32 |
| auto | top () const -> &meshlib::Heap_float_MR_GraphVertId_std_greater_float_Element |
| void | set_value (elemId:meshlib::GraphVertId, newVal:&f32) |
| void | set_larger_value (elemId:meshlib::GraphVertId, newVal:&f32) |
| void | set_smaller_value (elemId:meshlib::GraphVertId, newVal:&f32) |
| auto | set_top_value (newVal:&f32) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float_Element > |
Static Public Member Functions | |
| static auto | construct_1 () -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float > |
| static auto | construct_from_another (_other:&meshlib::Heap_float_MR_GraphVertId_std_greater_float) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float > |
| static auto | construct_3 (size:usize, def:Option< f32 >) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float > |
| static auto | construct_2 (elms:&meshlib::std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float > |
| 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 |
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>>.
Generated from class MR::Heap<float, MR::GraphVertId, std::greater<float>>. Heap-allocated instances are held in Owned<Heap_float_MR_GraphVertId_std_greater_float>.
| auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::assign_from_another | ( | _other:&meshlib::Heap_float_MR_GraphVertId_std_greater_float | ) | -> &mut meshlib::Heap_float_MR_GraphVertId_std_greater_float |
Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::operator=.
Calls MR_Heap_float_MR_GraphVertId_std_greater_float_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
constructs an empty heap Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Heap.
Calls MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_1(). The reference to the parameter pred might be preserved in the constructed object.
|
static |
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.
Calls MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_2(). The reference to things referred to by the parameter elms (if any) might be preserved in the constructed object.
|
static |
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().
|
static |
Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Heap.
Calls MR_Heap_float_MR_GraphVertId_std_greater_float_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::contains | ( | elemId:meshlib::GraphVertId | ) | const -> bool |
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 | ( | elemId:meshlib::GraphVertId | ) |
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 | ( | elemId:meshlib::GraphVertId | , |
| val:& | f32 ) |
adds given element, which is not present in the heap yet Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::push.
Calls 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.
| void meshlib::Heap_float_MR_GraphVertId_std_greater_float::resize | ( | size:usize | , |
| def:Option< f32 > | ) |
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::set_larger_value | ( | elemId:meshlib::GraphVertId | , |
| newVal:& | f32 ) |
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.
Calls 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.
| void meshlib::Heap_float_MR_GraphVertId_std_greater_float::set_smaller_value | ( | elemId:meshlib::GraphVertId | , |
| newVal:& | f32 ) |
Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setSmallerValue.
Calls 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.
| auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::set_top_value | ( | newVal:& | f32 | ) | -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float_Element > |
sets new value to the current top element, returning its previous value Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setTopValue.
Calls 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.
| void meshlib::Heap_float_MR_GraphVertId_std_greater_float::set_value | ( | elemId:meshlib::GraphVertId | , |
| newVal:& | f32 ) |
sets new value to given element Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setValue.
Calls 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.
| auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::size | ( | ) | const -> usize |
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().
| auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::top | ( | ) | const -> &meshlib::Heap_float_MR_GraphVertId_std_greater_float_Element |
returns the element with the largest value Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::top.
Calls MR_Heap_float_MR_GraphVertId_std_greater_float_top(). The reference to this object might be preserved in the return value.
| auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::value | ( | elemId:meshlib::GraphVertId | ) | const -> &f32 |
returns the value associated with given element Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::value.
Calls MR_Heap_float_MR_GraphVertId_std_greater_float_value(). The reference to this object might be preserved in the return value.