Blender V4.5
blender::TypedBuffer< T, Size > Class Template Reference

#include <BLI_memory_utils.hh>

Public Member Functions

 operator T* ()
 operator const T * () const
Toperator* ()
const Toperator* () const
Tptr ()
const Tptr () const
Tref ()
const Tref () 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 155 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 187 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 182 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 192 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 197 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 202 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 207 of file BLI_memory_utils.hh.

◆ ref() [1/2]

◆ ref() [2/2]

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

Definition at line 217 of file BLI_memory_utils.hh.


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