MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.Heap_float_GraphVertId_std_greater_float Class Reference
Inheritance diagram for mrmeshpy.Heap_float_GraphVertId_std_greater_float:

Classes

class  ConstElement
class  Element

Public Member Functions

None __init__ (self, std_greater_float pred=...)
None __init__ (self, int size, float def_=0.0, std_greater_float pred=...)
None __init__ (self, Const_std_vector_Heap_float_Id_GraphVertTag_std_greater_float_Element elms, std_greater_float pred=...)
None __init__ (self, ConstHeap_float_GraphVertId_std_greater_float arg0)
Heap_float_GraphVertId_std_greater_float assign (self, ConstHeap_float_GraphVertId_std_greater_float other)
None erase (self, ConstGraphVertId elemId)
None pop (self)
None push (self, ConstGraphVertId elemId, float val)
None resize (self, int size, float def_=0.0)
None setLargerValue (self, ConstGraphVertId elemId, float newVal)
None setSmallerValue (self, ConstGraphVertId elemId, float newVal)
Heap_float_GraphVertId_std_greater_float.Element setTopValue (self, float newVal)
None setValue (self, ConstGraphVertId elemId, float newVal)
Public Member Functions inherited from mrmeshpy.ConstHeap_float_GraphVertId_std_greater_float
 __init__ (self, *args, **kwargs)
bool contains (self, ConstGraphVertId elemId)
int size (self)
Heap_float_GraphVertId_std_greater_float.ConstElement top (self)
float value (self, ConstGraphVertId elemId)

Static Public Member Functions

None __init__ (*args, **kwargs)

Detailed Description

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

\\brief stores map from element id in[0, size) to T;
\\details provides two operations:
1) change the value of any element;
2) find the element with the largest value

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/5]

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.__init__ ( self,
std_greater_float pred = ... )
constructs an empty heap

◆ __init__() [3/5]

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.__init__ ( self,
int size,
float def_ = 0.0,
std_greater_float pred = ... )
constructs heap for given number of elements, assigning given default value to each element

◆ __init__() [4/5]

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.__init__ ( self,
Const_std_vector_Heap_float_Id_GraphVertTag_std_greater_float_Element elms,
std_greater_float pred = ... )
constructs heap from given elements (id's shall not repeat, but can have spaces and be arbitrary shuffled)

◆ __init__() [5/5]

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.__init__ ( self,
ConstHeap_float_GraphVertId_std_greater_float arg0 )
Implicit copy constructor.

Member Function Documentation

◆ assign()

Heap_float_GraphVertId_std_greater_float mrmeshpy.Heap_float_GraphVertId_std_greater_float.assign ( self,
ConstHeap_float_GraphVertId_std_greater_float other )

◆ erase()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.erase ( self,
ConstGraphVertId elemId )
removes given element from the heap

◆ pop()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.pop ( self)
removes the element with the largest value from the heap

◆ push()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.push ( self,
ConstGraphVertId elemId,
float val )
adds given element, which is not present in the heap yet

◆ resize()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.resize ( self,
int size,
float def_ = 0.0 )
increases the size of the heap by adding elements at the end

◆ setLargerValue()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.setLargerValue ( self,
ConstGraphVertId elemId,
float newVal )
sets new value to given element, which shall be larger/smaller than the current value

◆ setSmallerValue()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.setSmallerValue ( self,
ConstGraphVertId elemId,
float newVal )

◆ setTopValue()

Heap_float_GraphVertId_std_greater_float.Element mrmeshpy.Heap_float_GraphVertId_std_greater_float.setTopValue ( self,
float newVal )
sets new value to the current top element, returning its previous value

◆ setValue()

None mrmeshpy.Heap_float_GraphVertId_std_greater_float.setValue ( self,
ConstGraphVertId elemId,
float newVal )
sets new value to given element

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