|
Blender V4.3
|
#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 18 of file BKE_type_conversions.hh.
|
inline |
Definition at line 23 of file BKE_type_conversions.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new().
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 504 of file type_conversions.cc.
References BLI_assert, blender::bke::call_convert_to_uninitialized_fn(), blender::GMutableSpan::data(), blender::CPPType::destruct_n(), blender::fn::multi_function::DataType::ForSingle(), blender::GVArray::ForSpan(), 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 468 of file type_conversions.cc.
References BLI_assert, blender::bke::ConversionFunctions::convert_single_to_uninitialized, blender::CPPType::copy_construct(), blender::fn::multi_function::DataType::ForSingle(), and get_conversion_functions().
Referenced by blender::nodes::inverse_eval::convert_single_socket_value(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::ed::curves::set_attribute_exec(), and blender::nodes::geo_eval_log::GeoTreeLog::try_convert_primitive_socket_value().
|
inline |
Definition at line 38 of file BKE_type_conversions.hh.
References get_conversion_functions().
|
inline |
Definition at line 33 of file BKE_type_conversions.hh.
References from, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr().
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 44 of file BKE_type_conversions.hh.
References get_conversion_functions(), and blender::bke::ConversionFunctions::multi_function.
Referenced by convert_to_initialized_n(), blender::nodes::LazyFunctionForMutedNode::execute_impl(), and try_convert().
|
inline |
Definition at line 50 of file BKE_type_conversions.hh.
Referenced by blender::nodes::inverse_eval::convert_single_socket_value(), convert_to_initialized_n(), blender::nodes::LazyFunctionForMutedNode::execute_impl(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::geometry::prepare_attribute_fallbacks(), blender::ed::curves::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 650 of file type_conversions.cc.
References blender::fn::FieldOperation::Create(), get_conversion_multi_function(), and is_convertible().
| GVArray blender::bke::DataTypeConversions::try_convert | ( | GVArray | varray, |
| const CPPType & | to_type ) const |
Definition at line 624 of file type_conversions.cc.
References blender::GVArray::For(), 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(), and blender::bke::try_adapt_data_type().
| GVMutableArray blender::bke::DataTypeConversions::try_convert | ( | GVMutableArray | varray, |
| const CPPType & | to_type ) const |
Definition at line 636 of file type_conversions.cc.
References blender::GVMutableArray::For(), is_convertible(), and blender::GVArrayCommon::type().