MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::Heap_float_MR_GraphVertId_std_greater_float Struct 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

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

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>>.

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>.

Member Function Documentation

◆ assign_from_another()

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.

◆ construct_1()

auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::construct_1 ( ) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float >
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.

◆ construct_2()

auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::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

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.

◆ construct_3()

auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::construct_3 ( size:usize ,
def:Option< f32 >  ) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float >
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().

◆ construct_from_another()

auto meshlib::Heap_float_MR_GraphVertId_std_greater_float::construct_from_another ( _other:&meshlib::Heap_float_MR_GraphVertId_std_greater_float ) -> meshlib::Owned< meshlib::Heap_float_MR_GraphVertId_std_greater_float >
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.

◆ contains()

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().

◆ erase()

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().

◆ 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 ( 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.

◆ resize()

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().

◆ set_larger_value()

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.

◆ set_smaller_value()

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.

◆ set_top_value()

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.

◆ set_value()

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.

◆ size()

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().

◆ top()

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.

◆ 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.


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