|
Blender V5.0
|
#include <BLI_pool.hh>
Inherits blender::NonCopyable.
Public Member Functions | |
| ~Pool () | |
| template<typename... ForwardT> | |
| T & | construct (ForwardT &&...value) |
| void | destruct (T &value) |
| int64_t | size () const |
| bool | is_empty () const |
Definition at line 24 of file BLI_pool.hh.
|
inline |
Definition at line 36 of file BLI_pool.hh.
References BLI_assert, and size().
|
inline |
Construct an object inside this pool's memory.
Definition at line 45 of file BLI_pool.hh.
Referenced by bm_log_face_alloc(), bm_log_vert_alloc(), blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Destroy the given element inside this memory pool. Memory will be reused by next element construction. This invokes undefined behavior if the item is not from this pool.
Definition at line 63 of file BLI_pool.hh.
References T.
Referenced by bm_log_entry_free(), blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Returns true when the pool contains no elements, otherwise false.
Definition at line 80 of file BLI_pool.hh.
References size().
Referenced by bm_log_entry_free().
|
inline |
Return the number of constructed elements in this pool.
Definition at line 72 of file BLI_pool.hh.
Referenced by bm_log_entry_free(), is_empty(), blender::tests::TEST(), blender::tests::TEST(), and ~Pool().