Blender V5.3
BLI_heap_simple.hh File Reference

A min-heap / priority queue ADT. More...

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Typedefs

typedef void(*) blender::HeapSimpleFreeFP(void *ptr)

Functions

Public HeapSimple API
HeapSimple * blender::BLI_heapsimple_new_ex (unsigned int reserve_num) ATTR_WARN_UNUSED_RESULT
HeapSimple * blender::BLI_heapsimple_new () ATTR_WARN_UNUSED_RESULT
void blender::BLI_heapsimple_clear (HeapSimple *heap, HeapSimpleFreeFP ptrfreefp) ATTR_NONNULL(1)
void blender::BLI_heapsimple_free (HeapSimple *heap, HeapSimpleFreeFP ptrfreefp) ATTR_NONNULL(1)
void blender::BLI_heapsimple_insert (HeapSimple *heap, float value, void *ptr) ATTR_NONNULL(1)
bool blender::BLI_heapsimple_is_empty (const HeapSimple *heap) ATTR_NONNULL(1)
uint blender::BLI_heapsimple_len (const HeapSimple *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
float blender::BLI_heapsimple_top_value (const HeapSimple *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * blender::BLI_heapsimple_pop_min (HeapSimple *heap) ATTR_NONNULL(1)

Detailed Description

A min-heap / priority queue ADT.

Definition in file BLI_heap_simple.hh.