#include <MRCMesh/MRId.h>#include <MRCMisc/common.h>#include <MRCMisc/exports.h>#include <stddef.h>Go to the source code of this file.
Typedefs | |
| typedef struct MR_std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element | MR_std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element |
| typedef struct MR_Heap_float_MR_GraphVertId_std_greater_float_Element | MR_Heap_float_MR_GraphVertId_std_greater_float_Element |
| typedef struct MR_Heap_float_MR_GraphVertId_std_greater_float | MR_Heap_float_MR_GraphVertId_std_greater_float |
| stores map from element id in[0, size) to T; | |
| typedef struct MR_Heap_float_MR_GraphVertId_std_greater_float MR_Heap_float_MR_GraphVertId_std_greater_float |
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>>. Supported MR_PassBy modes: MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_Heap_float_MR_GraphVertId_std_greater_float_Element MR_Heap_float_MR_GraphVertId_std_greater_float_Element |
Generated from class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| typedef struct MR_std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element MR_std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element |
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float * MR_Heap_float_MR_GraphVertId_std_greater_float_AssignFromAnother | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_Heap_float_MR_GraphVertId_std_greater_float * | _other ) |
Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float * MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_2 | ( | MR_PassBy | elms_pass_by, |
| MR_std_vector_MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | elms ) |
constructs heap from given elements (id's shall not repeat and have spaces, but can be arbitrary shuffled) Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Heap. The reference to the parameter elms might be preserved in the constructed object. The reference to the parameter pred might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Destroy() to free it when you're done using it.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float * MR_Heap_float_MR_GraphVertId_std_greater_float_Construct_3 | ( | MR_uint64_t | size, |
| const 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. The reference to the parameter size might be preserved in the constructed object. Parameter def has a default argument: {}, pass a null pointer to use it. The reference to the parameter pred might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Destroy() to free it when you're done using it.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float * MR_Heap_float_MR_GraphVertId_std_greater_float_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_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. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Destroy() to free it when you're done using it.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_Destroy | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float * | _this | ) |
Destroys a heap-allocated instance of MR_Heap_float_MR_GraphVertId_std_greater_float. Does nothing if the pointer is null.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_DestroyArray | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float * | _this | ) |
Destroys a heap-allocated array of MR_Heap_float_MR_GraphVertId_std_greater_float. Does nothing if the pointer is null.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_AssignFromAnother | ( | MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this, |
| const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _other ) |
Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it had previously.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_ConstructFrom | ( | MR_GraphVertId | id, |
| float | val ) |
Constructs MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element elementwise. The reference to the parameter id might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it had previously.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_ConstructFromAnother | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _other | ) |
Generated from constructor MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element::Element. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Destroy() to free it when you're done using it.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Destroy() to free it when you're done using it.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Heap_float_MR_GraphVertId_std_greater_float_Element_DestroyArray(). Use MR_Heap_float_MR_GraphVertId_std_greater_float_Element_OffsetMutablePtr() and MR_Heap_float_MR_GraphVertId_std_greater_float_Element_OffsetPtr() to access the array elements.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Destroy | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this | ) |
Destroys a heap-allocated instance of MR_Heap_float_MR_GraphVertId_std_greater_float_Element. Does nothing if the pointer is null.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_Element_DestroyArray | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this | ) |
Destroys a heap-allocated array of MR_Heap_float_MR_GraphVertId_std_greater_float_Element. Does nothing if the pointer is null.
| MRC_API const MR_GraphVertId * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Get_id | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this | ) |
Returns a pointer to a member variable of class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element named id. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API const float * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Get_val | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this | ) |
Returns a pointer to a member variable of class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element named val. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API MR_GraphVertId * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_GetMutable_id | ( | MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this | ) |
Returns a mutable pointer to a member variable of class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element named id. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API float * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_GetMutable_val | ( | MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this | ) |
Returns a mutable pointer to a member variable of class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element named val. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_OffsetMutablePtr | ( | MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_Element_OffsetPtr | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Set_id | ( | MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this, |
| MR_GraphVertId | value ) |
Modifies a member variable of class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element named id. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element id. When this function is called, this object will drop object references it had previously in id.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Set_val | ( | MR_Heap_float_MR_GraphVertId_std_greater_float_Element * | _this, |
| float | value ) |
Modifies a member variable of class MR::Heap<float, MR::GraphVertId, std::greater<float>>::Element named val. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it had previously in val.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float * MR_Heap_float_MR_GraphVertId_std_greater_float_OffsetMutablePtr | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_Heap_float_MR_GraphVertId_std_greater_float * MR_Heap_float_MR_GraphVertId_std_greater_float_OffsetPtr | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_resize | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| MR_uint64_t | size, | ||
| const 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. Parameter _this can not be null. It is a single object. Parameter def has a default argument: {}, pass a null pointer to use it.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_setLargerValue | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| MR_GraphVertId | elemId, | ||
| const 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. Parameter _this can not be null. It is a single object. Parameter newVal can not be null. It is a single object.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_setSmallerValue | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| MR_GraphVertId | elemId, | ||
| const float * | newVal ) |
Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setSmallerValue. Parameter _this can not be null. It is a single object. Parameter newVal can not be null. It is a single object.
| MRC_API MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_setTopValue | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| const 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. Parameter _this can not be null. It is a single object. Parameter newVal can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_Heap_float_MR_GraphVertId_std_greater_float_Element_Destroy() to free it when you're done using it.
| MRC_API void MR_Heap_float_MR_GraphVertId_std_greater_float_setValue | ( | MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| MR_GraphVertId | elemId, | ||
| const float * | newVal ) |
sets new value to given element Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::setValue. Parameter _this can not be null. It is a single object. Parameter newVal can not be null. It is a single object.
| MRC_API MR_uint64_t MR_Heap_float_MR_GraphVertId_std_greater_float_size | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float * | _this | ) |
returns the size of the heap Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::size. Parameter _this can not be null. It is a single object.
| MRC_API const MR_Heap_float_MR_GraphVertId_std_greater_float_Element * MR_Heap_float_MR_GraphVertId_std_greater_float_top | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float * | _this | ) |
returns the element with the largest value Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::top. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.
| MRC_API const float * MR_Heap_float_MR_GraphVertId_std_greater_float_value | ( | const MR_Heap_float_MR_GraphVertId_std_greater_float * | _this, |
| MR_GraphVertId | elemId ) |
returns the value associated with given element Generated from method MR::Heap<float, MR::GraphVertId, std::greater<float>>::value. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.