ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::quiet Namespace Reference

Namespace for all functionality of the ADTF Mediadescription SDK provided since v3.16. More...

Namespaces

namespace  detail
 Namespace for all internally used functionality implemented.
 

Classes

class  stream_type_default
 Generator template to create an instance of the stream_meta_type_default. More...
 
class  stream_type_default< void >
 Specialization for generator template to create an instance of the stream_meta_type_default. The template parameter T is set to void. You can use it to create the type without any concrete struct defintion in code. More...
 
class  stream_type_default_array
 Generator template to create an instance of the stream_meta_type_default. More...
 
class  stream_type_default_array< std::array< ValueType, szArraySize > >
 Specialization for stream_type_default_array<std::array<T, N>> More...
 
class  stream_type_default_array< ValueType[szArraySize]>
 Specialization for stream_type_default_array<T[N]>> More...
 
class  stream_type_default_array< void >
 Specialization for generator template to create an instance of the stream_type_default_array. The template parameter T is set to void. You can use it to create the type without any concrete struct defintion in code. More...
 

Typedefs

template<typename ElementsType>
using element_callback
 Callback type for member elements.
 
template<typename ElementsType>
using element_control_callback
 Callback type for member elements. The callbacks return value controls wether the member will actually be entered.
 
template<typename ElementsType>
using array_element_callback
 Callback type for array elements. entered.
 
template<typename ElementsType>
using array_element_control_callback
 Callback type for array elements. The callbacks return value controls wether the member will actually be entered.
 

Functions

template<typename ElementsType>
void for_each_element_infix (ElementsType &oElements, const ddl::dd::datamodel::StructType::Elements &oModelElements, const ddl::dd::datamodel::DataDefinition &oDataDefinition, const element_callback< ElementsType > &fnLeafCallback, const element_control_callback< ElementsType > &fnEnterMemberCallback, const element_callback< ElementsType > &fnLeaveMemberCallback, const array_element_control_callback< ElementsType > &fnEnterArrayMemberCallback, const array_element_callback< ElementsType > &fnLeaveArrayMemberCallback)
 Iterates elements and array elements in a callback-controlled fashion. This version also provides access to the corresponding elements in the data model. This can be used to access min/max and/or the element description.
 

Detailed Description

Namespace for all functionality of the ADTF Mediadescription SDK provided since v3.16.

Typedef Documentation

◆ array_element_callback

template<typename ElementsType>
using adtf::mediadescription::quiet::array_element_callback
Initial value:
std::function<void(std::conditional_t<std::is_const<ElementsType>::value,
const typename ElementsType::element_type,
typename ElementsType::element_type>&,
size_t,
observable DataDefinition object class for a Element of a StructType.
Definition datamodel_types.h:736

Callback type for array elements. entered.

◆ array_element_control_callback

Initial value:
std::function<bool(std::conditional_t<std::is_const<ElementsType>::value,
const typename ElementsType::element_type,
typename ElementsType::element_type>&,
size_t,

Callback type for array elements. The callbacks return value controls wether the member will actually be entered.

◆ element_callback

template<typename ElementsType>
using adtf::mediadescription::quiet::element_callback
Initial value:
std::function<void(std::conditional_t<std::is_const<ElementsType>::value,
const typename ElementsType::element_type,
typename ElementsType::element_type>&,

Callback type for member elements.

◆ element_control_callback

template<typename ElementsType>
using adtf::mediadescription::quiet::element_control_callback
Initial value:
std::function<bool(std::conditional_t<std::is_const<ElementsType>::value,
const typename ElementsType::element_type,
typename ElementsType::element_type>&,

Callback type for member elements. The callbacks return value controls wether the member will actually be entered.

Function Documentation

◆ for_each_element_infix()

template<typename ElementsType>
void adtf::mediadescription::quiet::for_each_element_infix ( ElementsType & oElements,
const ddl::dd::datamodel::StructType::Elements & oModelElements,
const ddl::dd::datamodel::DataDefinition & oDataDefinition,
const element_callback< ElementsType > & fnLeafCallback,
const element_control_callback< ElementsType > & fnEnterMemberCallback,
const element_callback< ElementsType > & fnLeaveMemberCallback,
const array_element_control_callback< ElementsType > & fnEnterArrayMemberCallback,
const array_element_callback< ElementsType > & fnLeaveArrayMemberCallback )

Iterates elements and array elements in a callback-controlled fashion. This version also provides access to the corresponding elements in the data model. This can be used to access min/max and/or the element description.

Template Parameters
ElementsTypeThe type of elements.
Parameters
oElementsThe elements.
oModelElementsThe corresponding elements from the data model.
oDataDefinitionThe data definition that contains the data model.
fnLeafCallbackThe function to call per leaf element.
fnEnterMemberCallbackThe function to call per named member (leaf and intermediate). Controlls traversal of this member.
fnLeaveMemberCallbackThe function to call when leaving a member.
fnEnterArrayMemberCallbackThe function to call per array element. Controlls traversal of this element.
fnLeaveArrayMemberCallbackThe function to call when leaving an array element.