Blender  V2.93
Public Member Functions | List of all members
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 360 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 370 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 365 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 375 of file BLI_memory_utils.hh.

References T.

◆ operator*() [2/2]

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

Definition at line 380 of file BLI_memory_utils.hh.

References T.

◆ ptr() [1/2]

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

Definition at line 385 of file BLI_memory_utils.hh.

References T.

Referenced by blender::SimpleMapSlot< Key, Value >::SimpleMapSlot(), and 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 390 of file BLI_memory_utils.hh.

References T.

◆ ref() [1/2]

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

◆ ref() [2/2]

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

Definition at line 400 of file BLI_memory_utils.hh.

References T.


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