Blender  V3.3
Public Member Functions | List of all members
blender::GMutablePointer Class Reference

#include <BLI_generic_pointer.hh>

Public Member Functions

 GMutablePointer ()=default
 
 GMutablePointer (const CPPType *type, void *data=nullptr)
 
 GMutablePointer (const CPPType &type, void *data=nullptr)
 
template<typename T >
 GMutablePointer (T *data)
 
voidget () const
 
const CPPTypetype () const
 
template<typename T >
Tget () const
 
template<typename T >
bool is_type () const
 
template<typename T >
T relocate_out ()
 
void destruct ()
 

Detailed Description

A generic non-const pointer whose type is only known at runtime.

Definition at line 12 of file BLI_generic_pointer.hh.

Constructor & Destructor Documentation

◆ GMutablePointer() [1/4]

blender::GMutablePointer::GMutablePointer ( )
default

◆ GMutablePointer() [2/4]

blender::GMutablePointer::GMutablePointer ( const CPPType type,
void data = nullptr 
)
inline

Definition at line 20 of file BLI_generic_pointer.hh.

References BLI_assert, and data_.

◆ GMutablePointer() [3/4]

blender::GMutablePointer::GMutablePointer ( const CPPType type,
void data = nullptr 
)
inline

Definition at line 26 of file BLI_generic_pointer.hh.

◆ GMutablePointer() [4/4]

template<typename T >
blender::GMutablePointer::GMutablePointer ( T data)
inline

Definition at line 30 of file BLI_generic_pointer.hh.

Member Function Documentation

◆ destruct()

void blender::GMutablePointer::destruct ( )
inline

◆ get() [1/2]

void* blender::GMutablePointer::get ( ) const
inline

◆ get() [2/2]

template<typename T >
T* blender::GMutablePointer::get ( ) const
inline

Definition at line 44 of file BLI_generic_pointer.hh.

References BLI_assert, data_, and T.

◆ is_type()

template<typename T >
bool blender::GMutablePointer::is_type ( ) const
inline

Definition at line 50 of file BLI_generic_pointer.hh.

References blender::CPPType::is(), and T.

Referenced by blender::GValueMap< Key >::lookup().

◆ relocate_out()

template<typename T >
T blender::GMutablePointer::relocate_out ( )
inline

◆ type()

const CPPType* blender::GMutablePointer::type ( ) const
inline

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