|
Blender
V2.93
|
#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 360 of file BLI_memory_utils.hh.
|
inline |
Definition at line 370 of file BLI_memory_utils.hh.
|
inline |
Definition at line 365 of file BLI_memory_utils.hh.
|
inline |
Definition at line 375 of file BLI_memory_utils.hh.
References T.
|
inline |
Definition at line 380 of file BLI_memory_utils.hh.
References T.
|
inline |
Definition at line 385 of file BLI_memory_utils.hh.
References T.
Referenced by blender::SimpleMapSlot< Key, Value >::SimpleMapSlot(), and blender::tests::TEST().
|
inline |
Definition at line 390 of file BLI_memory_utils.hh.
References T.
|
inline |
Definition at line 395 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 400 of file BLI_memory_utils.hh.
References T.