Blender  V2.93
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 31 of file FN_multi_function_data_type.hh.

Member Enumeration Documentation

◆ Category

Enumerator
Single 
Vector 

Definition at line 33 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 49 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 54 of file FN_multi_function_data_type.hh.

References MFDataType(), and type.

◆ hash()

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

Definition at line 111 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 69 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

Definition at line 74 of file FN_multi_function_data_type.hh.

References Vector.

Referenced by vector_base_type().

◆ single_type()

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

◆ to_string()

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

◆ 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 122 of file FN_multi_function_data_type.hh.

◆ operator==

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

Definition at line 117 of file FN_multi_function_data_type.hh.


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