diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-06 04:52:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-06 04:52:34 +0300 |
commit | d805a4a5efd53de234302d22fc0917db53b50e2b (patch) | |
tree | fa1bd54334936fe5cfba25eacce4dcffff386bb9 /source/blender/blenlib/BLI_heap.h | |
parent | a90bcdf93d82bf5d9964b12bb20af696ca66654e (diff) |
Cleanup: move fast heap into own source & header
Diffstat (limited to 'source/blender/blenlib/BLI_heap.h')
-rw-r--r-- | source/blender/blenlib/BLI_heap.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/blenlib/BLI_heap.h b/source/blender/blenlib/BLI_heap.h index 08adb0d538c..35c8df3075c 100644 --- a/source/blender/blenlib/BLI_heap.h +++ b/source/blender/blenlib/BLI_heap.h @@ -54,19 +54,4 @@ void *BLI_heap_node_ptr(const HeapNode *heap) ATTR_WARN_UNUSED_RESULT /* only for gtest */ bool BLI_heap_is_valid(const Heap *heap); -/* Simplified version of the heap that only supports insertion and removal from top. */ - -struct FastHeap; -typedef struct FastHeap FastHeap; - -FastHeap *BLI_fastheap_new_ex(unsigned int tot_reserve) ATTR_WARN_UNUSED_RESULT; -FastHeap *BLI_fastheap_new(void) ATTR_WARN_UNUSED_RESULT; -void BLI_fastheap_clear(FastHeap *heap, HeapFreeFP ptrfreefp) ATTR_NONNULL(1); -void BLI_fastheap_free(FastHeap *heap, HeapFreeFP ptrfreefp) ATTR_NONNULL(1); -void BLI_fastheap_insert(FastHeap *heap, float value, void *ptr) ATTR_NONNULL(1); -bool BLI_fastheap_is_empty(const FastHeap *heap) ATTR_NONNULL(1); -unsigned int BLI_fastheap_len(const FastHeap *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); -float BLI_fastheap_top_value(const FastHeap *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1); -void *BLI_fastheap_pop_min(FastHeap *heap) ATTR_NONNULL(1); - #endif /* __BLI_HEAP_H__ */ |