OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::ZConsReader Class Reference

#include <ZConsReader.hpp>

Public Member Functions

 ZConsReader (SimInfo *info)
 
 ~ZConsReader ()
 
void readNextFrame ()
 
bool hasNextFrame ()
 
int getNZMols ()
 
int getNFixedZmols ()
 
const std::vector< ZconsData > & getFixedZMolData ()
 
RealType getCurTime ()
 

Private Attributes

std::ifstream istream_
 
SimInfoinfo_
 
std::vector< int > allZmols_
 
RealType curTime_
 
std::vector< ZconsDatafixedZmolData_
 

Static Private Attributes

static const int MAXBUFFERSIZE = 2000
 

Detailed Description

Todo:
document

Definition at line 58 of file ZConsReader.hpp.

Constructor & Destructor Documentation

◆ ZConsReader()

◆ ~ZConsReader()

OpenMD::ZConsReader::~ZConsReader ( )

Definition at line 66 of file ZConsReader.cpp.

References istream_.

Member Function Documentation

◆ getCurTime()

RealType OpenMD::ZConsReader::getCurTime ( )
inline

Definition at line 69 of file ZConsReader.hpp.

References curTime_.

Referenced by OpenMD::ZConsVisitor::readZconsFile().

◆ getFixedZMolData()

const std::vector<ZconsData>& OpenMD::ZConsReader::getFixedZMolData ( )
inline

Definition at line 68 of file ZConsReader.hpp.

References fixedZmolData_.

Referenced by OpenMD::ZConsVisitor::update().

◆ getNFixedZmols()

int OpenMD::ZConsReader::getNFixedZmols ( )
inline

Definition at line 67 of file ZConsReader.hpp.

References fixedZmolData_.

◆ getNZMols()

int OpenMD::ZConsReader::getNZMols ( )
inline

Definition at line 66 of file ZConsReader.hpp.

References allZmols_.

◆ hasNextFrame()

bool OpenMD::ZConsReader::hasNextFrame ( )

Definition at line 105 of file ZConsReader.cpp.

References istream_.

Referenced by OpenMD::ZConsVisitor::readZconsFile().

◆ readNextFrame()

Member Data Documentation

◆ allZmols_

std::vector<int> OpenMD::ZConsReader::allZmols_
private

Definition at line 75 of file ZConsReader.hpp.

Referenced by getNZMols(), and ZConsReader().

◆ curTime_

RealType OpenMD::ZConsReader::curTime_
private

Definition at line 76 of file ZConsReader.hpp.

Referenced by getCurTime(), and readNextFrame().

◆ fixedZmolData_

std::vector<ZconsData> OpenMD::ZConsReader::fixedZmolData_
private

Definition at line 77 of file ZConsReader.hpp.

Referenced by getFixedZMolData(), getNFixedZmols(), and readNextFrame().

◆ info_

SimInfo* OpenMD::ZConsReader::info_
private

Definition at line 74 of file ZConsReader.hpp.

Referenced by ZConsReader().

◆ istream_

std::ifstream OpenMD::ZConsReader::istream_
private

Definition at line 73 of file ZConsReader.hpp.

Referenced by hasNextFrame(), readNextFrame(), ZConsReader(), and ~ZConsReader().

◆ MAXBUFFERSIZE

const int OpenMD::ZConsReader::MAXBUFFERSIZE = 2000
staticprivate

Definition at line 78 of file ZConsReader.hpp.

Referenced by readNextFrame().


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