|
Blender V5.0
|
#include <BKE_type_conversions.hh>
Public Member Functions | |
| void | add (mf::DataType from_type, mf::DataType to_type, const mf::MultiFunction &fn, void(*convert_single_to_initialized)(const void *src, void *dst), void(*convert_single_to_uninitialized)(const void *src, void *dst)) |
| const ConversionFunctions * | get_conversion_functions (mf::DataType from, mf::DataType to) const |
| const ConversionFunctions * | get_conversion_functions (const CPPType &from, const CPPType &to) const |
| const mf::MultiFunction * | get_conversion_multi_function (mf::DataType from, mf::DataType to) const |
| bool | is_convertible (const CPPType &from_type, const CPPType &to_type) const |
| void | convert_to_uninitialized (const CPPType &from_type, const CPPType &to_type, const void *from_value, void *to_value) const |
| void | convert_to_initialized_n (GSpan from_span, GMutableSpan to_span) const |
| GVArray | try_convert (GVArray varray, const CPPType &to_type) const |
| GVMutableArray | try_convert (GVMutableArray varray, const CPPType &to_type) const |
| fn::GField | try_convert (fn::GField field, const CPPType &to_type) const |
Definition at line 22 of file BKE_type_conversions.hh.
|
inline |
Definition at line 27 of file BKE_type_conversions.hh.
Referenced by blender::bke::add_implicit_conversion().
| void blender::bke::DataTypeConversions::convert_to_initialized_n | ( | GSpan | from_span, |
| GMutableSpan | to_span ) const |
Definition at line 707 of file type_conversions.cc.
References BLI_assert, blender::bke::call_convert_to_uninitialized_fn(), blender::GMutableSpan::data(), blender::CPPType::destruct_n(), blender::GVArray::from_span(), get_conversion_multi_function(), is_convertible(), blender::GMutableSpan::size(), blender::GSpan::size(), blender::GMutableSpan::type(), and blender::GSpan::type().
Referenced by blender::geometry::prepare_attribute_fallbacks().
| void blender::bke::DataTypeConversions::convert_to_uninitialized | ( | const CPPType & | from_type, |
| const CPPType & | to_type, | ||
| const void * | from_value, | ||
| void * | to_value ) const |
Definition at line 671 of file type_conversions.cc.
References BLI_assert, blender::bke::ConversionFunctions::convert_single_to_uninitialized, blender::CPPType::copy_construct(), and get_conversion_functions().
Referenced by blender::nodes::inverse_eval::convert_single_socket_value(), blender::nodes::node_geo_viewer_cc::draw_generic_value_log(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::ed::curves::set_attribute_exec(), blender::ed::pointcloud::set_attribute_exec(), and blender::nodes::geo_eval_log::GeoTreeLog::try_convert_primitive_socket_value().
|
inline |
Definition at line 42 of file BKE_type_conversions.hh.
References get_conversion_functions().
|
inline |
Definition at line 37 of file BKE_type_conversions.hh.
Referenced by convert_to_uninitialized(), get_conversion_functions(), get_conversion_multi_function(), blender::bke::GVArray_For_ConvertedGVArray::GVArray_For_ConvertedGVArray(), and blender::bke::GVMutableArray_For_ConvertedGVMutableArray::GVMutableArray_For_ConvertedGVMutableArray().
|
inline |
Definition at line 48 of file BKE_type_conversions.hh.
References get_conversion_functions(), and blender::bke::ConversionFunctions::multi_function.
Referenced by blender::nodes::build_implicit_conversion_lazy_function(), convert_to_initialized_n(), blender::nodes::implicitly_convert_socket_value(), and try_convert().
|
inline |
Definition at line 54 of file BKE_type_conversions.hh.
Referenced by blender::nodes::build_implicit_conversion_lazy_function(), blender::nodes::inverse_eval::convert_single_socket_value(), convert_to_initialized_n(), blender::nodes::node_geo_viewer_cc::draw_generic_value_log(), blender::nodes::implicitly_convert_socket_value(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::geometry::prepare_attribute_fallbacks(), blender::ed::curves::set_attribute_exec(), blender::ed::pointcloud::set_attribute_exec(), try_convert(), try_convert(), try_convert(), and blender::nodes::geo_eval_log::GeoTreeLog::try_convert_primitive_socket_value().
| fn::GField blender::bke::DataTypeConversions::try_convert | ( | fn::GField | field, |
| const CPPType & | to_type ) const |
Definition at line 851 of file type_conversions.cc.
References blender::fn::GFieldBase< NodePtr >::cpp_type(), blender::fn::FieldOperation::from(), get_conversion_multi_function(), and is_convertible().
| GVArray blender::bke::DataTypeConversions::try_convert | ( | GVArray | varray, |
| const CPPType & | to_type ) const |
Definition at line 825 of file type_conversions.cc.
References blender::GVArray::from(), is_convertible(), and blender::GVArrayCommon::type().
Referenced by blender::nodes::node_geo_sample_uv_surface_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_tool_set_selection_cc::node_geo_exec(), and blender::bke::try_adapt_data_type().
| GVMutableArray blender::bke::DataTypeConversions::try_convert | ( | GVMutableArray | varray, |
| const CPPType & | to_type ) const |
Definition at line 837 of file type_conversions.cc.
References blender::GVMutableArray::from(), is_convertible(), and blender::GVArrayCommon::type().