openPMD-api
|
Subclass of Iteration that knows its own index withing the containing Series. More...
#include <ReadIterations.hpp>
Public Types | |
using | iterations_t = decltype(internal::SeriesData::iterations) |
using | index_t = iterations_t::key_type |
Public Attributes | |
const index_t | iterationIndex |
![]() | |
Container< Mesh > | meshes |
Container< ParticleSpecies > | particles |
Friends | |
class | SeriesIterator |
Additional Inherited Members | |
![]() | |
Iteration (Iteration const &)=default | |
Iteration & | operator= (Iteration const &)=default |
template<typename T > | |
T | time () const |
template<typename T > | |
Iteration & | setTime (T newTime) |
Set the global reference time for this iteration. More... | |
template<typename T > | |
T | dt () const |
template<typename T > | |
Iteration & | setDt (T newDt) |
Set the time step used to reach this iteration. More... | |
double | timeUnitSI () const |
Iteration & | setTimeUnitSI (double newTimeUnitSI) |
Set the conversion factor to convert time and dt to seconds. More... | |
Iteration & | close (bool flush=true) |
Close an iteration. More... | |
Iteration & | open () |
Open an iteration. More... | |
bool | closed () const |
Has the iteration been closed? A closed iteration may not (yet) be reopened. More... | |
bool | closedByWriter () const |
Has the iteration been closed by the writer? Background: Upon calling Iteration::close(), the openPMD API will add metadata to the iteration in form of an attribute, indicating that the iteration has indeed been closed. More... | |
![]() | |
Attribute | getAttribute (std::string const &key) const |
Retrieve value of Attribute stored with provided key. More... | |
bool | deleteAttribute (std::string const &key) |
Remove Attribute of provided value both logically and physically. More... | |
std::vector< std::string > | attributes () const |
List all currently stored Attributes' keys. More... | |
size_t | numAttributes () const |
Count all currently stored Attributes. More... | |
bool | containsAttribute (std::string const &key) const |
Check whether am Attribute with a given key exists. More... | |
std::string | comment () const |
Retrieve a user-supplied comment associated with the object. More... | |
AttributableInterface & | setComment (std::string const &comment) |
Populate Attribute corresponding to a comment with the user-supplied comment. More... | |
void | seriesFlush () |
Flush the corresponding Series object. More... | |
MyPath | myPath () const |
The path to this object within its containing Series. More... | |
template<typename T > | |
bool | setAttribute (std::string const &key, T value) |
Populate Attribute of provided name with provided value. More... | |
bool | setAttribute (std::string const &key, char const value[]) |
![]() | |
enum | ReadMode { IgnoreExisting, OverrideExisting, FullyReread } |
![]() | |
AttributableInterface (internal::AttributableData *) | |
template<typename T > | |
AttributableInterface (T *attri) | |
const internal::SeriesInternal & | retrieveSeries () const |
internal::SeriesInternal & | retrieveSeries () |
void | seriesFlush (FlushLevel) |
void | flushAttributes () |
void | readAttributes (ReadMode) |
template<typename T > | |
T | readFloatingpoint (std::string const &key) const |
Retrieve the value of a floating point Attribute of user-defined precision with ensured type-safety. More... | |
template<typename T > | |
std::vector< T > | readVectorFloatingpoint (std::string const &key) const |
Retrieve a vector of values of a floating point Attributes of user-defined precision with ensured type-safety. More... | |
AbstractIOHandler * | IOHandler () |
const AbstractIOHandler * | IOHandler () const |
Writable *& | parent () |
const Writable * | parent () const |
Writable & | writable () |
const Writable & | writable () const |
internal::AttributableData & | get () |
const internal::AttributableData & | get () const |
bool | dirty () const |
bool & | dirty () |
bool | written () const |
bool & | written () |
const Iteration & | containingIteration () const |
Returns the corresponding Iteration. More... | |
Iteration & | containingIteration () |
![]() | |
std::shared_ptr< internal::AttributableData > | m_attributableData |
![]() | |
internal::AttributableData * | m_attri = nullptr |