ADTF  3.18.2
SourceValueConverter< ElementValueType, SourceValueType, false >

Converter to convert from a value of SourceValueType to a value of ElementValueType. More...

Static Public Member Functions

static bool convert (ElementValueType &, const SourceValueType &)
 Should convert a value of SourceValueType to a element_value of type ElementValueType, but this specialized code is used while conversion is not valid! More...
 

Detailed Description

template<typename ElementValueType, typename SourceValueType>
struct ddl::codec::detail::SourceValueConverter< ElementValueType, SourceValueType, false >

Converter to convert from a value of SourceValueType to a value of ElementValueType.

Template Parameters
ElementValueTypeThe elements value target type
SourceValueTypeThe values source type

Definition at line 465 of file leaf_value_access.h.

Member Function Documentation

◆ convert()

static bool convert ( ElementValueType &  ,
const SourceValueType &   
)
inlinestatic

Should convert a value of SourceValueType to a element_value of type ElementValueType, but this specialized code is used while conversion is not valid!

Returns
true The conversion is possible
false The converion was not possible (i.e. enum type to float)

Definition at line 473 of file leaf_value_access.h.