23 #include "openPMD/backend/Attributable.hpp" 24 #include "openPMD/Dataset.hpp" 27 #ifndef OPENPMD_protected 28 # define OPENPMD_protected protected 36 template<
typename T_elem >
51 double unitSI()
const;
60 std::shared_ptr< Dataset > m_dataset;
61 std::shared_ptr< bool > m_isConstant;
74 template<
typename T_RecordComponent >
77 template<
typename T >
79 operator()( T_RecordComponent & rc )
81 rc.makeConstant(
T() );
84 template<
unsigned n,
typename... Args >
86 operator()( Args &&... )
88 throw std::runtime_error(
89 "makeEmpty: Datatype not supported by openPMD." );
Datatype
Concrete datatype of an object available at runtime.
Definition: Datatype.hpp:38
Definition: Container.cpp:51
Public definitions of openPMD-api.
Definition: Date.cpp:28
Functor template to be used in combination with switchType::operator() to set a default value for con...
Definition: BaseRecordComponent.hpp:75
Definition: BaseRecord.hpp:36
Map-like container that enforces openPMD requirements and handles IO.
Definition: Container.hpp:70
Definition: BaseRecordComponent.hpp:34
Layer to manage storage of attributes associated with file objects.
Definition: Attributable.hpp:65