|
Blender
V2.93
|
#include <NOD_type_conversions.hh>
Public Member Functions | |
| void | add (fn::MFDataType from_type, fn::MFDataType to_type, const fn::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 (fn::MFDataType from, fn::MFDataType to) const |
| const ConversionFunctions * | get_conversion_functions (const CPPType &from, const CPPType &to) const |
| const fn::MultiFunction * | get_conversion_multi_function (fn::MFDataType from, fn::MFDataType 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 |
Definition at line 32 of file NOD_type_conversions.hh.
|
inline |
Definition at line 37 of file NOD_type_conversions.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new().
Referenced by blender::nodes::add_implicit_conversion().
| void blender::nodes::DataTypeConversions::convert_to_uninitialized | ( | const CPPType & | from_type, |
| const CPPType & | to_type, | ||
| const void * | from_value, | ||
| void * | to_value | ||
| ) | const |
Definition at line 225 of file type_conversions.cc.
References BLI_assert, blender::nodes::ConversionFunctions::convert_single_to_uninitialized, blender::fn::MFDataType::ForSingle(), and get_conversion_functions().
Referenced by GeometryComponent::attribute_get_constant_for_read_converted().
|
inline |
Definition at line 52 of file NOD_type_conversions.hh.
References blender::fn::MFDataType::ForSingle(), and get_conversion_functions().
|
inline |
Definition at line 47 of file NOD_type_conversions.hh.
References from, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr().
Referenced by convert_to_uninitialized(), blender::bke::ConvertedReadAttribute::ConvertedReadAttribute(), get_conversion_functions(), and get_conversion_multi_function().
|
inline |
Definition at line 58 of file NOD_type_conversions.hh.
References get_conversion_functions(), and blender::nodes::ConversionFunctions::multi_function.
|
inline |
Definition at line 65 of file NOD_type_conversions.hh.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), and blender::fn::MFDataType::ForSingle().
Referenced by GeometryComponent::attribute_get_constant_for_read_converted(), and try_adapt_data_type().