| PSCF v1.3.3
    | 
Trajectory file reader. 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.
Definition at line 27 of file rpg/fts/trajectory/TrajectoryReader.h.
| Pscf::Rpg::TrajectoryReader< D >::TrajectoryReader | ( | System< D > & | system | ) | 
Constructor.
Definition at line 22 of file rpg/fts/trajectory/TrajectoryReader.tpp.
References system().
Referenced by Pscf::Rpg::RGridTrajectoryReader< D >::RGridTrajectoryReader().
| 
 | inlinevirtual | 
Destructor.
Definition at line 40 of file rpg/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::Rpg::RGridTrajectoryReader< D >.
Referenced by Pscf::Rpg::BdSimulator< D >::analyze(), and Pscf::Rpg::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::Rpg::RGridTrajectoryReader< D >.
Referenced by Pscf::Rpg::BdSimulator< D >::analyze(), and Pscf::Rpg::McSimulator< D >::analyze().
| 
 | pure virtual | 
Close the trajectory file.
Implemented in Pscf::Rpg::RGridTrajectoryReader< D >.
Referenced by Pscf::Rpg::BdSimulator< D >::analyze(), and Pscf::Rpg::McSimulator< D >::analyze().
| 
 | inlineprotected | 
Return reference to parent system.
Definition at line 92 of file rpg/fts/trajectory/TrajectoryReader.h.
Referenced by TrajectoryReader().