|
PSCF v1.4.0
|
Trajectory file reader (abstract base class). More...
#include <TrajectoryReader.h>
Public Member Functions | |
| virtual void | open (std::string filename)=0 |
| Open trajectory file and allocate memory if necessary. | |
| virtual void | readHeader () |
| Read header of trajectory file (if any). | |
| virtual bool | readFrame ()=0 |
| Read a single frame. | |
| virtual void | close ()=0 |
| Close the trajectory file. | |
Protected Member Functions | |
| TrajectoryReader (typename T::System &system) | |
| Constructor. | |
| ~TrajectoryReader ()=default | |
| Destructor. | |
| T::System & | system () |
| Return reference to parent system. | |
Trajectory file reader (abstract base class).
Specializations of this class template are used as base classes for two closely analogous class templates, also named TrajectoryReader, that are defined in Rpc and Rpg namespaces and used in the pscf_rpc and pscf_rpg programs, respectively.
Template parameters:
Definition at line 32 of file fts/trajectory/TrajectoryReader.h.
|
inlineprotected |
Constructor.
| system | parent System object |
Definition at line 81 of file fts/trajectory/TrajectoryReader.h.
References system().
|
protecteddefault |
Destructor.
|
pure virtual |
Open trajectory file and allocate memory if necessary.
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.
| filename | trajectory input file name. |
|
inlinevirtual |
Read header of trajectory file (if any).
Empty default implementation.
Definition at line 56 of file fts/trajectory/TrajectoryReader.h.
|
pure virtual |
Read a single frame.
This function reads a frame from the trajectory file that was opened by the open() function.
|
pure virtual |
Close the trajectory file.
|
inlineprotected |
Return reference to parent system.
Definition at line 93 of file fts/trajectory/TrajectoryReader.h.
Referenced by TrajectoryReader().