|
PSCF v1.3.3
|
Trajectory file reader (base class). More...
#include <TrajectoryReader.h>
Public Member Functions | |
| TrajectoryReader (System< D > &system) | |
| Constructor. | |
| virtual | ~TrajectoryReader () |
| Destructor. | |
| virtual void | open (std::string filename)=0 |
| Open trajectory file and read header, if any. | |
| virtual bool | readFrame ()=0 |
| Read a single frame. | |
| virtual void | close ()=0 |
| Close the trajectory file. | |
Protected Member Functions | |
| System< D > & | system () |
| Return reference to parent system. | |
Trajectory file reader (base class).
Definition at line 24 of file rpc/fts/trajectory/TrajectoryReader.h.
| Pscf::Rpc::TrajectoryReader< D >::TrajectoryReader | ( | System< D > & | system | ) |
Constructor.
Definition at line 20 of file rpc/fts/trajectory/TrajectoryReader.tpp.
References system().
Referenced by Pscf::Rpc::RGridTrajectoryReader< D >::RGridTrajectoryReader().
|
inlinevirtual |
Destructor.
Definition at line 37 of file rpc/fts/trajectory/TrajectoryReader.h.
|
pure virtual |
Open trajectory file and read header, if any.
By convention, this function treats the trajectory filename as the name of an input file, and opens the file using the FileMaster:openInutFile function. This function prepends the input prefix (if any) to the file path. If compiled with MPI enabled, so that each processor simulates a different system, it also prepends a processor id prefix before the input prefix.
| filename | trajectory input file name. |
Implemented in Pscf::Rpc::RGridTrajectoryReader< D >.
Referenced by Pscf::Rpc::BdSimulator< D >::analyze(), and Pscf::Rpc::McSimulator< D >::analyze().
|
pure virtual |
Read a single frame.
Frames are assumed to be read consecutively.
This function reads a frame from the trajectory file that was opened by the open() function.
Implemented in Pscf::Rpc::RGridTrajectoryReader< D >.
Referenced by Pscf::Rpc::BdSimulator< D >::analyze(), and Pscf::Rpc::McSimulator< D >::analyze().
|
pure virtual |
Close the trajectory file.
Implemented in Pscf::Rpc::RGridTrajectoryReader< D >.
Referenced by Pscf::Rpc::BdSimulator< D >::analyze(), and Pscf::Rpc::McSimulator< D >::analyze().
|
inlineprotected |
Return reference to parent system.
Definition at line 88 of file rpc/fts/trajectory/TrajectoryReader.h.
Referenced by Pscf::Rpc::RGridTrajectoryReader< D >::allocate(), Pscf::Rpc::RGridTrajectoryReader< D >::open(), Pscf::Rpc::RGridTrajectoryReader< D >::readFrame(), Pscf::Rpc::RGridTrajectoryReader< D >::readHeader(), Pscf::Rpc::RGridTrajectoryReader< D >::RGridTrajectoryReader(), and TrajectoryReader().