Blender V5.3
blender::nodes::BundleItemValue Struct Reference

#include <NOD_geometry_nodes_bundle.hh>

Public Member Functions

std::optional< bke::SocketValueVariant > as_socket_value (const bke::bNodeSocketType &dst_socket_type) const
template<typename T>
std::optional< T > as_socket_value (const bke::bNodeSocketType &socket_type) const
template<typename T>
std::optional< T > as () const
template<typename T>
T * as_pointer ()
template<typename T>
const T * as_pointer () const

Public Attributes

std::variant< BundleItemSocketValue, BundleItemInternalValue > value

Detailed Description

Definition at line 44 of file NOD_geometry_nodes_bundle.hh.

Member Function Documentation

◆ as()

◆ as_pointer() [1/2]

◆ as_pointer() [2/2]

template<typename T>
const T * blender::nodes::BundleItemValue::as_pointer ( ) const
inline

◆ as_socket_value() [1/2]

std::optional< bke::SocketValueVariant > blender::nodes::BundleItemValue::as_socket_value ( const bke::bNodeSocketType & dst_socket_type) const

Attempts to cast the stored value to the given type. This may do implicit conversions.

Definition at line 525 of file geometry_nodes_bundle.cc.

References blender::bke::bNodeSocketType::base_cpp_type, blender::nodes::BundleItemSocketValue::value, and value.

Referenced by as(), and as_socket_value().

◆ as_socket_value() [2/2]

template<typename T>
std::optional< T > blender::nodes::BundleItemValue::as_socket_value ( const bke::bNodeSocketType & socket_type) const
inline

Definition at line 204 of file NOD_geometry_nodes_bundle.hh.

References as_socket_value(), T, and value.

Member Data Documentation

◆ value


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