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

#include <BLI_generic_pointer.hh>

Public Member Functions

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

Detailed Description

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

Definition at line 75 of file BLI_generic_pointer.hh.

Constructor & Destructor Documentation

◆ GPointer() [1/5]

blender::GPointer::GPointer ( )
default

◆ GPointer() [2/5]

blender::GPointer::GPointer ( GMutablePointer  ptr)
inline

Definition at line 83 of file BLI_generic_pointer.hh.

References data_.

◆ GPointer() [3/5]

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

Definition at line 87 of file BLI_generic_pointer.hh.

References BLI_assert, and data_.

◆ GPointer() [4/5]

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

Definition at line 93 of file BLI_generic_pointer.hh.

References data_.

◆ GPointer() [5/5]

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

Definition at line 97 of file BLI_generic_pointer.hh.

Member Function Documentation

◆ get() [1/2]

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

◆ get() [2/2]

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

Definition at line 111 of file BLI_generic_pointer.hh.

References BLI_assert, data_, and T.

◆ is_type()

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

Definition at line 117 of file BLI_generic_pointer.hh.

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

Referenced by blender::nodes::GeoNodeExecParams::get_input().

◆ type()

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

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