|
Blender V5.3
|
#include <BLI_pool.hh>
Inherits blender::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 38 of file BLI_pool.hh.
References blender::BLI_assert(), and size().
|
inline |
Construct an object inside this pool's memory.
Definition at line 47 of file BLI_pool.hh.
References blender::IndexRange::IndexRange(), and T.
Referenced by 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 65 of file BLI_pool.hh.
References T.
Referenced by blender::tests::TEST(), and blender::tests::TEST().
|
inline |
Returns true when the pool contains no elements, otherwise false.
Definition at line 82 of file BLI_pool.hh.
References size().
|
inline |
Return the number of constructed elements in this pool.
Definition at line 74 of file BLI_pool.hh.
Referenced by is_empty(), blender::tests::TEST(), blender::tests::TEST(), and ~Pool().