|
Blender V5.3
|
#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 |
Definition at line 44 of file NOD_geometry_nodes_bundle.hh.
Definition at line 261 of file NOD_geometry_nodes_bundle.hh.
References blender::blender::ImplicitSharingInfo::add_user(), as_socket_value(), BLI_assert_unreachable, blender::bke::SocketValueVariant::get(), blender::GPointer::get(), blender::GPointer::is_type(), blender::nodes::is_valid_internal_bundle_item_type(), blender::nodes::socket_type_info_by_static_type(), blender::nodes::BundleItemSocketValue::value, and value.
Referenced by blender::compositor::BundleItem::get_result(), blender::nodes::Bundle::lookup(), blender::nodes::Bundle::lookup_path(), and blender::nodes::Bundle::lookup_path().
Get a pointer to the underlying stored single value.
Definition at line 214 of file NOD_geometry_nodes_bundle.hh.
References T.
Referenced by blender::nodes::Bundle::add_path_override(), blender::nodes::gather_bundle_paths_by_bundle_type(), blender::nodes::Bundle::lookup_path_for_write(), blender::nodes::Bundle::lookup_path_for_write_ptr(), blender::nodes::Bundle::lookup_path_for_write_ptr(), blender::nodes::Bundle::lookup_path_ptr(), blender::nodes::Bundle::lookup_path_ptr(), blender::nodes::Bundle::lookup_ptr(), blender::nodes::Bundle::lookup_ptr(), and blender::nodes::Bundle::remove_path().
Definition at line 218 of file NOD_geometry_nodes_bundle.hh.
References blender::bke::SocketValueVariant::get(), blender::GPointer::get(), blender::GPointer::is_type(), T, blender::nodes::BundleItemSocketValue::value, and value.
| 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().
|
inline |
Definition at line 204 of file NOD_geometry_nodes_bundle.hh.
References as_socket_value(), T, and value.
| std::variant<BundleItemSocketValue, BundleItemInternalValue> blender::nodes::BundleItemValue::value |
Definition at line 45 of file NOD_geometry_nodes_bundle.hh.
Referenced by as(), as_pointer(), as_socket_value(), as_socket_value(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell_value(), blender::nodes::gather_bundle_paths_by_data_type(), blender::compositor::BundleItem::get_result(), blender::geometry::mix_bundle_items(), blender::nodes::node_geo_get_bundle_item_cc::node_geo_exec(), and blender::nodes::node_geo_separate_bundle_cc::node_geo_exec().