Blender V5.3
blender::nodes::value_elem::ElemVariant Struct Reference

#include <NOD_value_elem.hh>

Public Member Functions

 operator bool () const
uint64_t hash () const
void merge (const ElemVariant &other)
void intersect (const ElemVariant &other)
void set_all ()
void clear_all ()

Public Attributes

std::variant< BoolElem, FloatElem, IntElem, VectorElem, RotationElem, MatrixElem > elem

Friends

bool operator== (const ElemVariant &a, const ElemVariant &b)=default

Detailed Description

A generic type that can hold the value element for any of the above types and has the same interface. This should be used when the data type is not known at compile time.

Definition at line 208 of file NOD_value_elem.hh.

Member Function Documentation

◆ clear_all()

void blender::nodes::value_elem::ElemVariant::clear_all ( )
inline

Definition at line 253 of file NOD_value_elem.hh.

References T.

◆ hash()

uint64_t blender::nodes::value_elem::ElemVariant::hash ( ) const
inline

Definition at line 216 of file NOD_value_elem.hh.

◆ intersect()

void blender::nodes::value_elem::ElemVariant::intersect ( const ElemVariant & other)
inline

◆ merge()

void blender::nodes::value_elem::ElemVariant::merge ( const ElemVariant & other)
inline

Definition at line 221 of file NOD_value_elem.hh.

References blender::BLI_assert(), elem, and T.

◆ operator bool()

blender::nodes::value_elem::ElemVariant::operator bool ( ) const
inline

Definition at line 211 of file NOD_value_elem.hh.

◆ set_all()

void blender::nodes::value_elem::ElemVariant::set_all ( )
inline

Definition at line 243 of file NOD_value_elem.hh.

References T.

◆ operator==

bool operator== ( const ElemVariant & a,
const ElemVariant & b )
friend

References b.

Member Data Documentation

◆ elem


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