|
Blender V4.3
|
#include <BLI_memory_utils.hh>
Public Member Functions | |
| operator T* () | |
| operator const T * () const | |
| T & | operator* () |
| const T & | operator* () const |
| T * | ptr () |
| const T * | ptr () const |
| T & | ref () |
| const T & | ref () const |
This can be used to reserve memory for C++ objects whose lifetime is different from the lifetime of the object they are embedded in. It's used by containers with small buffer optimization and hash table implementations.
Definition at line 156 of file BLI_memory_utils.hh.
|
inline |
Definition at line 188 of file BLI_memory_utils.hh.
|
inline |
Definition at line 183 of file BLI_memory_utils.hh.
|
inline |
Definition at line 193 of file BLI_memory_utils.hh.
|
inline |
Definition at line 198 of file BLI_memory_utils.hh.
|
inline |
Definition at line 203 of file BLI_memory_utils.hh.
Referenced by blender::SimpleMapSlot< Key, Value >::SimpleMapSlot(), blender::SimpleMapSlot< Key, Value >::SimpleMapSlot(), and blender::tests::TEST().
|
inline |
Definition at line 208 of file BLI_memory_utils.hh.
|
inline |
Definition at line 213 of file BLI_memory_utils.hh.
Referenced by blender::IntrusiveMapSlot< Key, Value, KeyInfo >::occupy_no_value(), blender::SimpleMapSlot< Key, Value >::occupy_no_value(), blender::HashedSetSlot< Key >::remove(), blender::IntrusiveMapSlot< Key, Value, KeyInfo >::remove(), blender::SimpleMapSlot< Key, Value >::remove(), blender::SimpleSetSlot< Key >::remove(), blender::HashedSetSlot< Key >::~HashedSetSlot(), blender::IntrusiveMapSlot< Key, Value, KeyInfo >::~IntrusiveMapSlot(), blender::SimpleMapSlot< Key, Value >::~SimpleMapSlot(), and blender::SimpleSetSlot< Key >::~SimpleSetSlot().
|
inline |
Definition at line 218 of file BLI_memory_utils.hh.