MercuryDPM
Alpha
|
#include <MercuryData.h>
Public Member Functions | |
double | getTime () const |
Gets the time associated with this timestep. More... | |
std::size_t | getTimeStepID () const |
Gets the timestep ID Returns the timestep ID, which is a consecutively ascending number unique for the timestep. More... | |
std::size_t | getNumberOfParticles () const |
Gets the number of particles recorded in this timestep. More... | |
std::size_t | size () const |
Gets the number of particles recorded in this timestep. More... | |
constexpr std::size_t | getNumberOfDimensions () const |
returns the number of dimensions used. More... | |
std::vector< MercuryParticle < NDIMS > >::iterator | begin () |
Iterator functions for range based for loops. More... | |
std::vector< MercuryParticle < NDIMS > >::const_iterator | begin () const |
Iterator functions for range based for loops. More... | |
std::vector< MercuryParticle < NDIMS > >::iterator | end () |
Iterator functions for range based for loops. More... | |
std::vector< MercuryParticle < NDIMS > >::const_iterator | end () const |
Iterator functions for range based for loops. More... | |
MercuryParticle< NDIMS > & | operator[] (std::size_t idx) |
Random access function into the particles. More... | |
const MercuryParticle< NDIMS > & | operator[] (std::size_t idx) const |
Random access function into the particles. More... | |
Private Member Functions | |
MercuryTimeStep (std::size_t id, MercuryDataFile *pData) | |
Constructor used by the MercuryTimeStepIterator, to flag a functional timestep. More... | |
MercuryTimeStep () | |
EOF-Timestep constructor used by MercuryTimeStepIterator (and MercuryDataFile::isMercury3DDataFile()) More... | |
Private Attributes | |
double | time_ |
std::size_t | ID_ |
std::size_t | numParticles_ |
double | min_ [NDIMS] |
double | max_ [NDIMS] |
MercuryDataFile * | dataFile_ |
std::vector< MercuryParticle < NDIMS > > | storage_ |
Friends | |
class | MercuryTimeStepIterator< NDIMS > |
class | MercuryDataFile |
template<std::size_t NDIMS2> | |
std::istream & | operator>> (std::istream &, MercuryTimeStep< NDIMS2 > &) |
Full timestep in the Mercury 3D .data format. This holds all the particles used in this timestep.
Definition at line 172 of file MercuryData.h.
|
inlineprivate |
Constructor used by the MercuryTimeStepIterator, to flag a functional timestep.
[in] | id | The unique ID given to this particle |
[in,out] | pData | A pointer to the MercuryDataFile, which contains the backing std::ifstream |
Definition at line 278 of file MercuryData.h.
|
inlineprivate |
EOF-Timestep constructor used by MercuryTimeStepIterator (and MercuryDataFile::isMercury3DDataFile())
Definition at line 286 of file MercuryData.h.
|
inline |
Iterator functions for range based for loops.
Definition at line 227 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::storage_.
|
inline |
Iterator functions for range based for loops.
Definition at line 235 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::storage_.
|
inline |
Iterator functions for range based for loops.
Definition at line 243 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::storage_.
|
inline |
Iterator functions for range based for loops.
Definition at line 251 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::storage_.
|
inline |
returns the number of dimensions used.
Definition at line 219 of file MercuryData.h.
|
inline |
Gets the number of particles recorded in this timestep.
Definition at line 200 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::numParticles_.
|
inline |
Gets the time associated with this timestep.
Definition at line 179 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::time_.
|
inline |
Gets the timestep ID Returns the timestep ID, which is a consecutively ascending number unique for the timestep.
Definition at line 190 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::ID_.
|
inline |
Random access function into the particles.
Definition at line 259 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::storage_.
|
inline |
Random access function into the particles.
Definition at line 267 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::storage_.
|
inline |
Gets the number of particles recorded in this timestep.
Definition at line 210 of file MercuryData.h.
References MercuryTimeStep< NDIMS >::numParticles_.
|
friend |
Definition at line 323 of file MercuryData.h.
|
friend |
Definition at line 321 of file MercuryData.h.
|
friend |
|
private |
Pointer to the base file, required for the backing std::ifstream
Definition at line 311 of file MercuryData.h.
|
private |
Unique ID associated with this MercuryTimeStep
Definition at line 298 of file MercuryData.h.
Referenced by MercuryTimeStep< NDIMS >::getTimeStepID().
|
private |
Definition at line 306 of file MercuryData.h.
Referenced by operator>>().
|
private |
Minima and maxima of the AABB of the domain; none of these are used.
Definition at line 306 of file MercuryData.h.
Referenced by operator>>().
|
private |
Cached count of particles in this MercuryTimeStep
Definition at line 302 of file MercuryData.h.
Referenced by MercuryTimeStep< NDIMS >::getNumberOfParticles(), operator>>(), and MercuryTimeStep< NDIMS >::size().
|
private |
Backing storage vector used for the particles in this timestep
Definition at line 316 of file MercuryData.h.
Referenced by MercuryTimeStep< NDIMS >::begin(), MercuryTimeStep< NDIMS >::end(), and MercuryTimeStep< NDIMS >::operator[]().
|
private |
Time associated with this MercuryTimeStep
Definition at line 294 of file MercuryData.h.
Referenced by MercuryTimeStep< NDIMS >::getTime(), and operator>>().