Blender
V3.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 373 of file BLI_memory_utils.hh.
|
inline |
Definition at line 383 of file BLI_memory_utils.hh.
|
inline |
Definition at line 378 of file BLI_memory_utils.hh.
|
inline |
Definition at line 388 of file BLI_memory_utils.hh.
References T.
|
inline |
Definition at line 393 of file BLI_memory_utils.hh.
References T.
|
inline |
Definition at line 398 of file BLI_memory_utils.hh.
References T.
Referenced by blender::SimpleMapSlot< Key, Value >::SimpleMapSlot(), and blender::tests::TEST().
|
inline |
Definition at line 403 of file BLI_memory_utils.hh.
References T.
|
inline |
Definition at line 408 of file BLI_memory_utils.hh.
References T.
Referenced by blender::SimpleMapSlot< Key, Value >::occupy_no_value(), blender::IntrusiveMapSlot< Key, Value, KeyInfo >::occupy_no_value(), blender::SimpleMapSlot< Key, Value >::remove(), blender::IntrusiveMapSlot< Key, Value, KeyInfo >::remove(), blender::SimpleSetSlot< Key >::remove(), blender::HashedSetSlot< Key >::remove(), blender::SimpleMapSlot< Key, Value >::SimpleMapSlot(), blender::HashedSetSlot< Key >::~HashedSetSlot(), blender::IntrusiveMapSlot< Key, Value, KeyInfo >::~IntrusiveMapSlot(), blender::SimpleMapSlot< Key, Value >::~SimpleMapSlot(), and blender::SimpleSetSlot< Key >::~SimpleSetSlot().
|
inline |
Definition at line 413 of file BLI_memory_utils.hh.
References T.