|
Blender V5.3
|
Classes | |
| struct | Registry |
Typedefs | |
| using | RegistryMap = ConcurrentMap<UString, const MultiFunction *> |
Functions | |
| void | add_new (const MultiFunction &fn) |
| template<typename CreateFn> | |
| void | add_new_cb (CreateFn &&create_fn) |
| const MultiFunction & | lookup (UString id) |
| static Registry & | get_registry () |
| using blender::fn::multi_function::registry::RegistryMap = ConcurrentMap<UString, const MultiFunction *> |
Definition at line 19 of file multi_function_registry.cc.
| void blender::fn::multi_function::registry::add_new | ( | const MultiFunction & | fn | ) |
Add a new multi-function to the registry. The #MultiFunction::name is used as identifier. This multi-function is expected to have static storage duration.
Definition at line 31 of file multi_function_registry.cc.
References add_new(), BLI_assert_unreachable, CLOG_ERROR, get_registry(), LOG, and blender::UString::UString().
Referenced by add_new(), and add_new_cb().
|
inline |
Utility to create a multi-function with static storage duration that is added to the registry.
Definition at line 26 of file FN_multi_function_registry.hh.
References add_new(), and add_new_cb().
Referenced by add_new_cb(), and blender::fn::multi_function::register_common_functions_impl().
|
static |
Definition at line 25 of file multi_function_registry.cc.
References get_registry().
Referenced by add_new(), get_registry(), and lookup().
| const MultiFunction & blender::fn::multi_function::registry::lookup | ( | UString | id | ) |
Find the multi-function with the given identifier. The multi-function is expected to exist.
Definition at line 46 of file multi_function_registry.cc.
References BLI_assert_unreachable, CLOG_ERROR, get_registry(), LOG, and lookup().
Referenced by blender::fn::multi_function::DivideFunction::DivideFunction(), blender::nodes::node_geo_distribute_points_on_faces_cc::extract_non_negative_density(), blender::nodes::node_geo_set_position_cc::get_add_fn(), blender::nodes::get_base_multi_function(), blender::geometry::get_count_input_max_one(), blender::nodes::node_fn_bit_math_cc::get_multi_function(), blender::nodes::node_fn_boolean_math_cc::get_multi_function(), blender::nodes::node_fn_integer_math_cc::get_multi_function(), blender::nodes::node_shader_vector_math_cc::get_multi_function(), blender::nodes::node_geo_set_position_cc::get_sub_fn(), blender::fn::invert_boolean_field(), blender::nodes::node_geo_tool_set_selection_cc::invert_selection(), lookup(), blender::nodes::node_fn_get_vector_component_cc::node_build_multi_function(), blender::nodes::node_geo_duplicate_elements_cc::node_geo_exec(), blender::nodes::node_geo_extrude_mesh_cc::node_geo_exec(), blender::nodes::node_geo_interpolate_curves_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_points_cc::node_geo_exec(), blender::nodes::node_geo_raycast_cc::node_geo_exec(), and blender::fn::multi_function::PowFunction::PowFunction().