Blender V5.0
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 18 of file BLI_cpp_types.hh.

Constructor & Destructor Documentation

◆ VectorCPPType()

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

Definition at line 17 of file BLI_cpp_types_make.hh.

References get(), self, and value.

Referenced by get(), get_from_self(), get_from_value(), and get_impl().

Member Function Documentation

◆ get()

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

Definition at line 37 of file BLI_cpp_types.hh.

References get_impl(), and VectorCPPType().

Referenced by VectorCPPType().

◆ 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 36 of file blenlib/intern/cpp_types.cc.

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

◆ 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 43 of file blenlib/intern/cpp_types.cc.

References BLI_assert, blender::get_vector_from_value_map(), value, and VectorCPPType().

◆ get_impl()

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

References VectorCPPType().

Referenced by get().

Member Data Documentation

◆ self

const CPPType& blender::VectorCPPType::self

The Vector<T> itself.

Definition at line 21 of file BLI_cpp_types.hh.

Referenced by get_from_self(), and VectorCPPType().

◆ value

const CPPType& blender::VectorCPPType::value

The type stored in the vector.

Definition at line 23 of file BLI_cpp_types.hh.

Referenced by get_from_value(), and VectorCPPType().


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