Blender V5.0
blender::nodes::InferenceValue Class Reference

#include <NOD_socket_value_inference.hh>

Public Member Functions

bool is_unknown () const
bool is_primitive_value () const
const void * get_primitive_ptr () const
template<typename T>
T get_primitive () const
template<typename T>
std::optional< Tget_if_primitive () const

Static Public Member Functions

static InferenceValue from_primitive (const void *value)
static InferenceValue Unknown ()

Detailed Description

During socket usage inferencing, some socket values are computed. This class represents such a computed value. Not all possible values can be presented here, only "basic" once (like int, but not int-field). A value can also be unknown if it can't be determined statically.

Definition at line 24 of file NOD_socket_value_inference.hh.

Member Function Documentation

◆ from_primitive()

InferenceValue blender::nodes::InferenceValue::from_primitive ( const void * value)
inlinestatic

◆ get_if_primitive()

template<typename T>
std::optional< T > blender::nodes::InferenceValue::get_if_primitive ( ) const
inline

Definition at line 69 of file NOD_socket_value_inference.hh.

References get_primitive(), and is_primitive_value().

◆ get_primitive()

◆ get_primitive_ptr()

const void * blender::nodes::InferenceValue::get_primitive_ptr ( ) const
inline

◆ is_primitive_value()

◆ is_unknown()

bool blender::nodes::InferenceValue::is_unknown ( ) const
inline

Definition at line 47 of file NOD_socket_value_inference.hh.

Referenced by is_primitive_value().

◆ Unknown()


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