Blender V4.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, MatrixElemelem
 

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 205 of file NOD_value_elem.hh.

Member Function Documentation

◆ clear_all()

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

Definition at line 250 of file NOD_value_elem.hh.

References elem, and T.

◆ hash()

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

Definition at line 213 of file NOD_value_elem.hh.

References elem.

◆ 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 218 of file NOD_value_elem.hh.

References BLI_assert, and elem.

Referenced by blender::nodes::gizmos::get_editable_gizmo_elem().

◆ operator bool()

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

Definition at line 208 of file NOD_value_elem.hh.

References elem.

◆ set_all()

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

Definition at line 240 of file NOD_value_elem.hh.

References elem.

Member Data Documentation

◆ elem

std::variant<BoolElem, FloatElem, IntElem, VectorElem, RotationElem, MatrixElem> blender::nodes::value_elem::ElemVariant::elem

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