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

#include <bmesh_polygon.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::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 bmesh_polygon.hh.

Member Function Documentation

◆ operator const T *()

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

Definition at line 186 of file bmesh_polygon.hh.

◆ operator T*()

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

Definition at line 181 of file bmesh_polygon.hh.

◆ operator*() [1/2]

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

Definition at line 191 of file bmesh_polygon.hh.

References blender::ATTR_NONNULL().

◆ operator*() [2/2]

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

Definition at line 196 of file bmesh_polygon.hh.

◆ ptr() [1/2]

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

Definition at line 201 of file bmesh_polygon.hh.

◆ ptr() [2/2]

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

Definition at line 206 of file bmesh_polygon.hh.

◆ ref() [1/2]

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

Definition at line 211 of file bmesh_polygon.hh.

◆ ref() [2/2]

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

Definition at line 216 of file bmesh_polygon.hh.


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