openPMD-api
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
openPMD::IndexedIteration Class Reference

Subclass of Iteration that knows its own index withing the containing Series. More...

#include <Iteration.hpp>

Inheritance diagram for openPMD::IndexedIteration:
Inheritance graph
[legend]
Collaboration diagram for openPMD::IndexedIteration:
Collaboration graph
[legend]

Public Types

using index_t = Iteration::IterationIndex_t
 
- Public Types inherited from openPMD::Iteration
using IterationIndex_t = uint64_t
 
- Public Types inherited from openPMD::Attributable
enum  ReadMode { IgnoreExisting , OverrideExisting , FullyReread }
 
enum class  EnqueueAsynchronously : bool { Yes , No }
 

Public Member Functions

 IndexedIteration (std::pair< index_t const, Iteration > pair)
 
- Public Member Functions inherited from openPMD::Iteration
 Iteration (Iteration const &)=default
 
 Iteration (Iteration &&)=default
 
Iterationoperator= (Iteration const &)=default
 
Iterationoperator= (Iteration &&)=default
 
template<typename T >
time () const
 
template<typename T >
IterationsetTime (T newTime)
 Set the global reference time for this iteration. More...
 
template<typename T >
dt () const
 
template<typename T >
IterationsetDt (T newDt)
 Set the time step used to reach this iteration. More...
 
double timeUnitSI () const
 
IterationsetTimeUnitSI (double newTimeUnitSI)
 Set the conversion factor to convert time and dt to seconds. More...
 
Iterationclose (bool flush=true)
 Close an iteration. More...
 
Iterationopen ()
 Open an iteration. More...
 
bool closed () const
 Has the iteration been closed? More...
 
bool parsed () const
 Has the iteration been parsed yet? If not, it will contain no structure yet. 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...
 
- Public Member Functions inherited from openPMD::Attributable
 Attributable (NoInit) noexcept
 
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...
 
AttributablesetComment (std::string const &comment)
 Populate Attribute corresponding to a comment with the user-supplied comment. More...
 
void seriesFlush (std::string backendConfig="{}")
 Flush the corresponding Series object. More...
 
void iterationFlush (std::string backendConfig="{}")
 Flush the containing Iteration. More...
 
MyPath myPath () const
 The path to this object within its containing Series. More...
 
void touch ()
 Sets the object dirty to make internal procedures think it has been modified.
 
OpenpmdStandard openPMDStandard () const
 
protected Series retrieveSeries () const
 
template<bool flush_entire_series>
void seriesFlush_impl (internal::FlushParams const &)
 
void flushAttributes (internal::FlushParams const &)
 
void readAttributes (ReadMode)
 
template<typename 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...
 
AbstractIOHandlerIOHandler ()
 
AbstractIOHandler const * IOHandler () const
 
Writable *& parent ()
 
Writable const * parent () const
 
Writablewritable ()
 
Writable const & writable () const
 
void setData (std::shared_ptr< internal::AttributableData > attri)
 
internal::SharedAttributableDataget ()
 
internal::SharedAttributableData const & get () const
 
bool dirty () const
 
bool dirtyRecursive () const
 O(1).
 
void setDirty (bool dirty_in)
 
void setDirtyRecursive (bool dirty_in)
 
bool written () const
 
void setWritten (bool val, EnqueueAsynchronously)
 
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[])
 
auto containingIteration () const -> std::pair< std::optional< internal::IterationData const * >, internal::SeriesData const * >
 Returns the corresponding Iteration. More...
 
auto containingIteration () -> std::pair< std::optional< internal::IterationData * >, internal::SeriesData * >
 

Public Attributes

index_t const iterationIndex
 
- Public Attributes inherited from openPMD::Iteration
Container< Meshmeshes {}
 
Container< ParticleSpeciesparticles {}
 

Friends

class StatefulIterator
 
class LegacyIteratorAdaptor
 

Additional Inherited Members

- Protected Types inherited from openPMD::Attributable
using Data_t = internal::AttributableData
 
- Protected Attributes inherited from openPMD::Attributable
std::shared_ptr< Data_tm_attri
 

Detailed Description

Subclass of Iteration that knows its own index withing the containing Series.


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