Simpatico  v1.10
List of all members | Public Member Functions
McMd::DdMdTrajectoryReader Class Reference

Detailed Description

TrajectoryReader for a DdMd trajectory file.

This class assumes that atom tags are ordered by molecule and species, with consecutive ids for atoms in the same molecule and consecutive blocks for molecules in the same species.

Definition at line 31 of file mcMd/trajectory/DdMdTrajectoryReader.h.

#include <DdMdTrajectoryReader.h>

Inheritance diagram for McMd::DdMdTrajectoryReader:
McMd::TrajectoryReader

Public Member Functions

 DdMdTrajectoryReader (System &system)
 Constructor. More...
 
virtual ~DdMdTrajectoryReader ()
 Destructor. More...
 
void open (std::string filename)
 Open trajectory file, read header, and allocate memory. More...
 
bool readFrame ()
 Read a single frame. More...
 
void close ()
 Close trajectory file. More...
 
- Public Member Functions inherited from McMd::TrajectoryReader
 TrajectoryReader (System &system)
 Constructor. More...
 
virtual ~TrajectoryReader ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from McMd::TrajectoryReader
Systemsystem () const
 Get a reference to the parent System. More...
 
Simulationsimulation () const
 Get a reference to the parent Simulation. More...
 
Boundaryboundary () const
 Get the Boundary. More...
 
virtual void addMolecules ()
 Add all molecules to system. More...
 
- Protected Attributes inherited from McMd::TrajectoryReader
int nAtomTotal_
 Total number of atoms (all species) More...
 

Constructor & Destructor Documentation

McMd::DdMdTrajectoryReader::DdMdTrajectoryReader ( System system)

Constructor.

Definition at line 29 of file mcMd/trajectory/DdMdTrajectoryReader.cpp.

McMd::DdMdTrajectoryReader::~DdMdTrajectoryReader ( )
virtual

Destructor.

Definition at line 36 of file mcMd/trajectory/DdMdTrajectoryReader.cpp.

Member Function Documentation

void McMd::DdMdTrajectoryReader::open ( std::string  filename)
virtual

Open trajectory file, read header, and allocate memory.

Parameters
filenametrajectory file name

Implements McMd::TrajectoryReader.

Definition at line 42 of file mcMd/trajectory/DdMdTrajectoryReader.cpp.

References McMd::TrajectoryReader::addMolecules(), McMd::Simulation::fileMaster(), McMd::TrajectoryReader::nAtomTotal_, Util::FileMaster::openInputFile(), McMd::TrajectoryReader::simulation(), and UTIL_THROW.

bool McMd::DdMdTrajectoryReader::readFrame ( )
virtual
void McMd::DdMdTrajectoryReader::close ( )
virtual

Close trajectory file.

Implements McMd::TrajectoryReader.

Definition at line 129 of file mcMd/trajectory/DdMdTrajectoryReader.cpp.


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