openPMD-api
Public Member Functions | List of all members
openPMD::detail::DefaultValue< T_RecordComponent > Struct Template Reference

Functor template to be used in combination with switchType::operator() to set a default value for constant record components via the respective type's default constructor. More...

#include <BaseRecordComponent.hpp>

Public Member Functions

template<typename T >
void operator() (T_RecordComponent &rc)
 
template<unsigned n, typename... Args>
void operator() (Args &&...)
 

Detailed Description

template<typename T_RecordComponent>
struct openPMD::detail::DefaultValue< T_RecordComponent >

Functor template to be used in combination with switchType::operator() to set a default value for constant record components via the respective type's default constructor.

Used to implement empty datasets in subclasses of BaseRecordComponent (currently RecordComponent).

Parameters
T_RecordComponent

The documentation for this struct was generated from the following file: