Blender V5.3
blender::TypedBuffer< T, Size > Class Template Reference

#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

Detailed Description

template<typename T, int64_t Size = 1>
class blender::TypedBuffer< T, Size >

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 154 of file BLI_memory_utils.hh.

Member Function Documentation

◆ operator const T *()

template<typename T, int64_t Size = 1>
blender::TypedBuffer< T, Size >::operator const T * ( ) const
inline

Definition at line 186 of file BLI_memory_utils.hh.

◆ operator T*()

template<typename T, int64_t Size = 1>
blender::TypedBuffer< T, Size >::operator T* ( )
inline

Definition at line 181 of file BLI_memory_utils.hh.

◆ operator*() [1/2]

template<typename T, int64_t Size = 1>
T & blender::TypedBuffer< T, Size >::operator* ( )
inline

Definition at line 191 of file BLI_memory_utils.hh.

◆ operator*() [2/2]

template<typename T, int64_t Size = 1>
const T & blender::TypedBuffer< T, Size >::operator* ( ) const
inline

Definition at line 196 of file BLI_memory_utils.hh.

◆ ptr() [1/2]

template<typename T, int64_t Size = 1>
T * blender::TypedBuffer< T, Size >::ptr ( )
inline

Definition at line 201 of file BLI_memory_utils.hh.

Referenced by blender::tests::TEST().

◆ ptr() [2/2]

template<typename T, int64_t Size = 1>
const T * blender::TypedBuffer< T, Size >::ptr ( ) const
inline

Definition at line 206 of file BLI_memory_utils.hh.

◆ ref() [1/2]

template<typename T, int64_t Size = 1>
T & blender::TypedBuffer< T, Size >::ref ( )
inline

Definition at line 211 of file BLI_memory_utils.hh.

◆ ref() [2/2]

template<typename T, int64_t Size = 1>
const T & blender::TypedBuffer< T, Size >::ref ( ) const
inline

Definition at line 216 of file BLI_memory_utils.hh.


The documentation for this class was generated from the following file: