OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::SnapshotManager Class Referenceabstract

SnapshotManager class is an abstract class which maintains a series of snapshots. More...

#include "brains/SnapshotManager.hpp"

+ Inheritance diagram for OpenMD::SnapshotManager:

Public Member Functions

virtual bool advance ()
 
virtual bool resetToPrevious ()
 
virtual SnapshotgetSnapshot (int id)=0
 
SnapshotgetPrevSnapshot ()
 Returns the pointer of previous snapshot.
 
SnapshotgetCurrentSnapshot ()
 Returns the pointer of current snapshot.
 
int getAtomStorageLayout ()
 
int getRigidBodyStorageLayout ()
 
int getCutoffGroupStorageLayout ()
 

Protected Member Functions

 SnapshotManager (int atomStorageLayout, int rigidBodyStorageLayout, int cutoffGroupStorageLayout)
 

Protected Attributes

SnapshotcurrentSnapshot_
 
SnapshotpreviousSnapshot_
 

Detailed Description

SnapshotManager class is an abstract class which maintains a series of snapshots.

See also
SimSnapshotManager
PropSnapshotManager

Definition at line 67 of file SnapshotManager.hpp.

Constructor & Destructor Documentation

◆ ~SnapshotManager()

virtual OpenMD::SnapshotManager::~SnapshotManager ( )
inlinevirtual

Definition at line 69 of file SnapshotManager.hpp.

◆ SnapshotManager()

OpenMD::SnapshotManager::SnapshotManager ( int atomStorageLayout,
int rigidBodyStorageLayout,
int cutoffGroupStorageLayout )
inlineprotected

Definition at line 101 of file SnapshotManager.hpp.

Member Function Documentation

◆ advance()

virtual bool OpenMD::SnapshotManager::advance ( )
inlinevirtual

Definition at line 74 of file SnapshotManager.hpp.

◆ getAtomStorageLayout()

int OpenMD::SnapshotManager::getAtomStorageLayout ( )
inline

Definition at line 91 of file SnapshotManager.hpp.

◆ getCurrentSnapshot()

Snapshot * OpenMD::SnapshotManager::getCurrentSnapshot ( )
inline

Returns the pointer of current snapshot.

Returns
the pointer of current snapshot

Definition at line 89 of file SnapshotManager.hpp.

Referenced by OpenMD::StuntDouble::addDensity(), OpenMD::StuntDouble::addElectricField(), OpenMD::StuntDouble::addFlucQFrc(), OpenMD::StuntDouble::addFlucQPos(), OpenMD::StuntDouble::addFlucQVel(), OpenMD::StuntDouble::addFrc(), OpenMD::StuntDouble::addParticlePot(), OpenMD::StuntDouble::addSitePotential(), OpenMD::StuntDouble::addTrq(), OpenMD::Bend::calcForce(), OpenMD::GhostBend::calcForce(), OpenMD::ForceMatrixDecomposition::distributeInitialData(), OpenMD::StuntDouble::getA(), OpenMD::Thermo::getAngularMomentum(), OpenMD::Thermo::getBoundingBox(), OpenMD::Thermo::getCom(), OpenMD::StuntDouble::getCOM(), OpenMD::Thermo::getComAll(), OpenMD::Thermo::getComVel(), OpenMD::StuntDouble::getCOMvel(), OpenMD::StuntDouble::getCOMw(), OpenMD::StuntDouble::getDensity(), OpenMD::StuntDouble::getDipole(), OpenMD::StuntDouble::getElectricField(), OpenMD::StuntDouble::getEuler(), OpenMD::StuntDouble::getFlucQFrc(), OpenMD::StuntDouble::getFlucQPos(), OpenMD::StuntDouble::getFlucQVel(), OpenMD::StuntDouble::getFrc(), OpenMD::Thermo::getGyrationalVolume(), OpenMD::Thermo::getGyrationalVolume(), OpenMD::Thermo::getInertiaTensor(), OpenMD::StuntDouble::getJ(), OpenMD::StuntDouble::getParticlePot(), OpenMD::StuntDouble::getPos(), OpenMD::Thermo::getPressureTensor(), OpenMD::StuntDouble::getQ(), OpenMD::StuntDouble::getQuadrupole(), OpenMD::StuntDouble::getSitePotential(), OpenMD::Thermo::getSystemDipole(), OpenMD::Thermo::getSystemQuadrupole(), OpenMD::StuntDouble::getTrq(), OpenMD::StuntDouble::getVel(), OpenMD::PotDiff::process(), OpenMD::StuntDouble::setA(), OpenMD::StuntDouble::setDensity(), OpenMD::StuntDouble::setElectricField(), OpenMD::StuntDouble::setEuler(), OpenMD::StuntDouble::setFlucQFrc(), OpenMD::StuntDouble::setFlucQPos(), OpenMD::StuntDouble::setFlucQVel(), OpenMD::StuntDouble::setFrc(), OpenMD::StuntDouble::setJ(), OpenMD::StuntDouble::setParticlePot(), OpenMD::StuntDouble::setPos(), OpenMD::StuntDouble::setSitePotential(), OpenMD::StuntDouble::setTrq(), OpenMD::StuntDouble::setVel(), and OpenMD::ZConsVisitor::ZConsVisitor().

◆ getCutoffGroupStorageLayout()

int OpenMD::SnapshotManager::getCutoffGroupStorageLayout ( )
inline

Definition at line 93 of file SnapshotManager.hpp.

◆ getPrevSnapshot()

Snapshot * OpenMD::SnapshotManager::getPrevSnapshot ( )
inline

Returns the pointer of previous snapshot.

Returns
the pointer of previous snapshot

Definition at line 83 of file SnapshotManager.hpp.

Referenced by OpenMD::StuntDouble::addPrevDensity(), OpenMD::StuntDouble::addPrevElectricField(), OpenMD::StuntDouble::addPrevFlucQFrc(), OpenMD::StuntDouble::addPrevFlucQPos(), OpenMD::StuntDouble::addPrevFlucQVel(), OpenMD::StuntDouble::addPrevFrc(), OpenMD::StuntDouble::addPrevParticlePot(), OpenMD::StuntDouble::addPrevSitePotential(), OpenMD::StuntDouble::addPrevTrq(), OpenMD::StuntDouble::getPrevA(), OpenMD::StuntDouble::getPrevDensity(), OpenMD::StuntDouble::getPrevDipole(), OpenMD::StuntDouble::getPrevElectricField(), OpenMD::StuntDouble::getPrevEuler(), OpenMD::StuntDouble::getPrevFlucQFrc(), OpenMD::StuntDouble::getPrevFlucQPos(), OpenMD::StuntDouble::getPrevFlucQVel(), OpenMD::StuntDouble::getPrevFrc(), OpenMD::StuntDouble::getPrevJ(), OpenMD::StuntDouble::getPrevParticlePot(), OpenMD::StuntDouble::getPrevPos(), OpenMD::StuntDouble::getPrevQ(), OpenMD::StuntDouble::getPrevQuadrupole(), OpenMD::StuntDouble::getPrevSitePotential(), OpenMD::StuntDouble::getPrevTrq(), OpenMD::StuntDouble::getPrevVel(), OpenMD::StuntDouble::setPrevA(), OpenMD::StuntDouble::setPrevDensity(), OpenMD::StuntDouble::setPrevElectricField(), OpenMD::StuntDouble::setPrevEuler(), OpenMD::StuntDouble::setPrevFlucQFrc(), OpenMD::StuntDouble::setPrevFlucQPos(), OpenMD::StuntDouble::setPrevFlucQVel(), OpenMD::StuntDouble::setPrevFrc(), OpenMD::StuntDouble::setPrevJ(), OpenMD::StuntDouble::setPrevParticlePot(), OpenMD::StuntDouble::setPrevPos(), OpenMD::StuntDouble::setPrevSitePotential(), OpenMD::StuntDouble::setPrevTrq(), and OpenMD::StuntDouble::setPrevVel().

◆ getRigidBodyStorageLayout()

int OpenMD::SnapshotManager::getRigidBodyStorageLayout ( )
inline

Definition at line 92 of file SnapshotManager.hpp.

◆ resetToPrevious()

virtual bool OpenMD::SnapshotManager::resetToPrevious ( )
inlinevirtual

Definition at line 75 of file SnapshotManager.hpp.

Member Data Documentation

◆ currentSnapshot_

Snapshot* OpenMD::SnapshotManager::currentSnapshot_
protected

Definition at line 108 of file SnapshotManager.hpp.

◆ previousSnapshot_

Snapshot* OpenMD::SnapshotManager::previousSnapshot_
protected

Definition at line 109 of file SnapshotManager.hpp.


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