Blender V4.3
blender::VectorCPPType Class Reference

#include <BLI_cpp_types.hh>

Public Member Functions

template<typename ValueType >
 VectorCPPType (TypeTag< ValueType >)
 

Static Public Member Functions

static const VectorCPPTypeget_from_self (const CPPType &self)
 
static const VectorCPPTypeget_from_value (const CPPType &value)
 
template<typename ValueType >
static const VectorCPPTypeget ()
 
template<typename ValueType >
static const VectorCPPTypeget_impl ()
 

Public Attributes

const CPPTypeself
 
const CPPTypevalue
 

Detailed Description

Contains information about how to deal with a #Vector<T> generically.

Definition at line 15 of file BLI_cpp_types.hh.

Constructor & Destructor Documentation

◆ VectorCPPType()

template<typename ValueType >
blender::VectorCPPType::VectorCPPType ( TypeTag< ValueType > )
inline

Definition at line 13 of file BLI_cpp_types_make.hh.

Member Function Documentation

◆ get()

template<typename ValueType >
static const VectorCPPType & blender::VectorCPPType::get ( )
inlinestatic

Definition at line 34 of file BLI_cpp_types.hh.

References get_impl().

◆ get_from_self()

const VectorCPPType * blender::VectorCPPType::get_from_self ( const CPPType & self)
static

Try to find the VectorCPPType that corresponds to a #CPPType.

Definition at line 32 of file blenlib/intern/cpp_types.cc.

References BLI_assert, blender::get_vector_from_self_map(), and self.

◆ get_from_value()

const VectorCPPType * blender::VectorCPPType::get_from_value ( const CPPType & value)
static

Try to find the VectorCPPType that wraps a vector containing the given value type. This only works when the vector type has been created with BLI_VECTOR_CPP_TYPE_MAKE.

Definition at line 39 of file blenlib/intern/cpp_types.cc.

References BLI_assert, and blender::get_vector_from_value_map().

Referenced by blender::nodes::get_vector_type().

◆ get_impl()

template<typename ValueType >
static const VectorCPPType & blender::VectorCPPType::get_impl ( )
static

Referenced by get().

Member Data Documentation

◆ self

const CPPType& blender::VectorCPPType::self

The #Vector<T> itself.

Definition at line 18 of file BLI_cpp_types.hh.

Referenced by get_from_self(), and blender::nodes::get_vector_type().

◆ value

const CPPType& blender::VectorCPPType::value

The type stored in the vector.

Definition at line 20 of file BLI_cpp_types.hh.


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