ADTF  3.18.2
TargetValueConverter< ElementValueType, TargetValueType, conversion_allowed >

Converter to convert a value of ElementValueType to a value of TargetValueType. More...

Static Public Member Functions

static TargetValueType convert (const ElementValueType &element_value)
 Converts a element_value to as value of type TargetValueType. More...
 

Detailed Description

template<typename ElementValueType, typename TargetValueType, bool conversion_allowed = SupportTargetTypeConversion<ElementValueType, TargetValueType>::value>
struct ddl::codec::detail::TargetValueConverter< ElementValueType, TargetValueType, conversion_allowed >

Converter to convert a value of ElementValueType to a value of TargetValueType.

Template Parameters
ElementValueTypeThe source value type to convert from
TargetValueTypeThe target value type to convert to
conversion_allowedevaluates to a bool value if conversion is possible

Definition at line 368 of file leaf_value_access.h.

Member Function Documentation

◆ convert()

static TargetValueType convert ( const ElementValueType &  element_value)
inlinestatic

Converts a element_value to as value of type TargetValueType.

Parameters
element_valueThe value to convert from
Returns
TargetValueType The result value to convert to

Definition at line 375 of file leaf_value_access.h.

Referenced by ddl::codec::detail::readBits(), and ddl::codec::detail::readBytes().