Blender V4.3
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 156 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 188 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 183 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 193 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 198 of file BLI_memory_utils.hh.

◆ ptr() [1/2]

◆ ptr() [2/2]

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

Definition at line 208 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 218 of file BLI_memory_utils.hh.


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