23 #include "openPMD/backend/Attributable.hpp" 24 #include "openPMD/Dataset.hpp" 27 #ifndef OPENPMD_protected 28 # define OPENPMD_protected protected 47 double unitSI()
const;
65 std::shared_ptr< Dataset > m_dataset;
66 std::shared_ptr< bool > m_isConstant;
79 template<
typename T_RecordComponent >
82 template<
typename T >
84 operator()( T_RecordComponent & rc )
86 rc.makeConstant(
T() );
89 template<
unsigned n,
typename... Args >
91 operator()( Args &&... )
93 throw std::runtime_error(
94 "makeEmpty: Datatype not supported by openPMD." );
Datatype
Concrete datatype of an object available at runtime.
Definition: Datatype.hpp:42
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:80
Map-like container that enforces openPMD requirements and handles IO.
Definition: Container.hpp:70
bool constant() const
Returns true if this is a constant record component.
Definition: BaseRecordComponent.cpp:54
Definition: BaseRecordComponent.hpp:34
Layer to manage storage of attributes associated with file objects.
Definition: Attributable.hpp:65