Blender  V3.3
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
blender::fn::MFDataType Class Reference

#include <FN_multi_function_data_type.hh>

Public Types

enum  Category { Single , Vector }
 

Public Member Functions

 MFDataType ()=default
 
bool is_single () const
 
bool is_vector () const
 
Category category () const
 
const CPPTypesingle_type () const
 
const CPPTypevector_base_type () const
 
std::string to_string () const
 
uint64_t hash () const
 

Static Public Member Functions

static MFDataType ForSingle (const CPPType &type)
 
static MFDataType ForVector (const CPPType &type)
 
template<typename T >
static MFDataType ForSingle ()
 
template<typename T >
static MFDataType ForVector ()
 

Friends

bool operator== (const MFDataType &a, const MFDataType &b)
 
bool operator!= (const MFDataType &a, const MFDataType &b)
 

Detailed Description

Definition at line 17 of file FN_multi_function_data_type.hh.

Member Enumeration Documentation

◆ Category

Enumerator
Single 
Vector 

Definition at line 19 of file FN_multi_function_data_type.hh.

Constructor & Destructor Documentation

◆ MFDataType()

blender::fn::MFDataType::MFDataType ( )
default

Referenced by ForSingle(), and ForVector().

Member Function Documentation

◆ category()

Category blender::fn::MFDataType::category ( ) const
inline

◆ ForSingle() [1/2]

template<typename T >
static MFDataType blender::fn::MFDataType::ForSingle ( )
inlinestatic

◆ ForSingle() [2/2]

static MFDataType blender::fn::MFDataType::ForSingle ( const CPPType type)
inlinestatic

Definition at line 35 of file FN_multi_function_data_type.hh.

References MFDataType(), Single, and type.

◆ ForVector() [1/2]

template<typename T >
static MFDataType blender::fn::MFDataType::ForVector ( )
inlinestatic

◆ ForVector() [2/2]

static MFDataType blender::fn::MFDataType::ForVector ( const CPPType type)
inlinestatic

Definition at line 40 of file FN_multi_function_data_type.hh.

References MFDataType(), and type.

◆ hash()

uint64_t blender::fn::MFDataType::hash ( ) const
inline

Definition at line 97 of file FN_multi_function_data_type.hh.

References blender::get_default_hash_2().

◆ is_single()

bool blender::fn::MFDataType::is_single ( ) const
inline

Definition at line 55 of file FN_multi_function_data_type.hh.

References Single.

Referenced by blender::fn::CustomMF_DefaultOutput::call(), and single_type().

◆ is_vector()

bool blender::fn::MFDataType::is_vector ( ) const
inline

◆ single_type()

const CPPType& blender::fn::MFDataType::single_type ( ) const
inline

◆ to_string()

std::string blender::fn::MFDataType::to_string ( ) const
inline

Definition at line 85 of file FN_multi_function_data_type.hh.

References BLI_assert, blender::CPPType::name(), Single, and Vector.

◆ vector_base_type()

const CPPType& blender::fn::MFDataType::vector_base_type ( ) const
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const MFDataType a,
const MFDataType b 
)
friend

Definition at line 108 of file FN_multi_function_data_type.hh.

◆ operator==

bool operator== ( const MFDataType a,
const MFDataType b 
)
friend

Definition at line 103 of file FN_multi_function_data_type.hh.


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