Blender  V3.3
BLI_heap_simple.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct HeapSimple;
15 typedef struct HeapSimple HeapSimple;
16 
17 typedef void (*HeapSimpleFreeFP)(void *ptr);
18 
32 void BLI_heapsimple_insert(HeapSimple *heap, float value, void *ptr) ATTR_NONNULL(1);
43 
44 #ifdef __cplusplus
45 }
46 #endif
#define ATTR_WARN_UNUSED_RESULT
#define ATTR_NONNULL(...)
void BLI_heapsimple_clear(HeapSimple *heap, HeapSimpleFreeFP ptrfreefp) ATTR_NONNULL(1)
void BLI_heapsimple_free(HeapSimple *heap, HeapSimpleFreeFP ptrfreefp) ATTR_NONNULL(1)
void(* HeapSimpleFreeFP)(void *ptr)
HeapSimple * BLI_heapsimple_new(void) ATTR_WARN_UNUSED_RESULT
float BLI_heapsimple_top_value(const HeapSimple *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * BLI_heapsimple_pop_min(HeapSimple *heap) ATTR_NONNULL(1)
bool BLI_heapsimple_is_empty(const HeapSimple *heap) ATTR_NONNULL(1)
uint BLI_heapsimple_len(const HeapSimple *heap) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
HeapSimple * BLI_heapsimple_new_ex(unsigned int reserve_num) ATTR_WARN_UNUSED_RESULT
void BLI_heapsimple_insert(HeapSimple *heap, float value, void *ptr) ATTR_NONNULL(1)
unsigned int uint
Definition: BLI_sys_types.h:67
SyclQueue void void size_t num_bytes void
PointerRNA * ptr
Definition: wm_files.c:3480