Blender V5.3
blender::bke::socket_value_visitor Namespace Reference

Namespaces

namespace  tests

Classes

class  RecursiveVisitor
struct  VisitParams

Functions

void edit_recursive (SocketValueVariant &value, const VisitParams &params)
void edit_recursive (GeometrySet &value, const VisitParams &params)
void check_recursive (const SocketValueVariant &value, const VisitParams &params)
void check_recursive (const GeometrySet &value, const VisitParams &params)

Function Documentation

◆ check_recursive() [1/2]

void blender::bke::socket_value_visitor::check_recursive ( const GeometrySet & value,
const VisitParams & params )

◆ check_recursive() [2/2]

void blender::bke::socket_value_visitor::check_recursive ( const SocketValueVariant & value,
const VisitParams & params )

Recursively call the provided check_* callbacks on the contained values.

Definition at line 433 of file node_socket_value_iter.cc.

References check_recursive(), and blender::bke::socket_value_visitor::RecursiveVisitor::check_SocketValueVariant().

Referenced by check_recursive(), check_recursive(), and blender::bke::socket_value_visitor::tests::TEST_F().

◆ edit_recursive() [1/2]

void blender::bke::socket_value_visitor::edit_recursive ( GeometrySet & value,
const VisitParams & params )

◆ edit_recursive() [2/2]

void blender::bke::socket_value_visitor::edit_recursive ( SocketValueVariant & value,
const VisitParams & params )

Recursively iterate over the contained values. This requires that both check_* and edit_* callbacks are provided. The editing happens in two passes, first it is checked whether something needs to be edited before it is actually done. This is necessary to avoid breaking implicit sharing when nothing is changed.

Definition at line 421 of file node_socket_value_iter.cc.

References edit_recursive(), and blender::bke::socket_value_visitor::RecursiveVisitor::edit_SocketValueVariant().

Referenced by edit_recursive(), edit_recursive(), and blender::bke::socket_value_visitor::tests::TEST_F().