Blender V4.3
blender::bke::DataTypeConversions Class Reference

#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 ConversionFunctionsget_conversion_functions (mf::DataType from, mf::DataType to) const
 
const ConversionFunctionsget_conversion_functions (const CPPType &from, const CPPType &to) const
 
const mf::MultiFunctionget_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
 

Detailed Description

Definition at line 18 of file BKE_type_conversions.hh.

Member Function Documentation

◆ add()

void blender::bke::DataTypeConversions::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) )
inline

◆ convert_to_initialized_n()

◆ convert_to_uninitialized()

◆ get_conversion_functions() [1/2]

const ConversionFunctions * blender::bke::DataTypeConversions::get_conversion_functions ( const CPPType & from,
const CPPType & to ) const
inline

Definition at line 38 of file BKE_type_conversions.hh.

References get_conversion_functions().

◆ get_conversion_functions() [2/2]

◆ get_conversion_multi_function()

const mf::MultiFunction * blender::bke::DataTypeConversions::get_conversion_multi_function ( mf::DataType from,
mf::DataType to ) const
inline

◆ is_convertible()

◆ try_convert() [1/3]

fn::GField blender::bke::DataTypeConversions::try_convert ( fn::GField field,
const CPPType & to_type ) const

◆ try_convert() [2/3]

◆ try_convert() [3/3]

GVMutableArray blender::bke::DataTypeConversions::try_convert ( GVMutableArray varray,
const CPPType & to_type ) const

The documentation for this class was generated from the following files: