OpenMD 3.2
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 Snapshot * getSnapshot (int id)=0
Snapshot * getPrevSnapshot ()
 Returns the pointer of previous snapshot.
Snapshot * getCurrentSnapshot ()
 Returns the pointer of current snapshot.
int getAtomStorageLayout ()
int getRigidBodyStorageLayout ()
int getCutoffGroupStorageLayout ()

Protected Member Functions

 SnapshotManager (int atomStorageLayout, int rigidBodyStorageLayout, int cutoffGroupStorageLayout)

Protected Attributes

Snapshot * currentSnapshot_
Snapshot * previousSnapshot_

Detailed Description

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

See also
SimSnapshotManager
PropSnapshotManager

Definition at line 70 of file SnapshotManager.hpp.

Constructor & Destructor Documentation

◆ ~SnapshotManager()

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

Definition at line 72 of file SnapshotManager.hpp.

◆ SnapshotManager()

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

Definition at line 104 of file SnapshotManager.hpp.

Member Function Documentation

◆ advance()

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

Definition at line 77 of file SnapshotManager.hpp.

◆ getAtomStorageLayout()

int OpenMD::SnapshotManager::getAtomStorageLayout ( )
inline

Definition at line 94 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 92 of file SnapshotManager.hpp.

◆ getCutoffGroupStorageLayout()

int OpenMD::SnapshotManager::getCutoffGroupStorageLayout ( )
inline

Definition at line 96 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 86 of file SnapshotManager.hpp.

◆ getRigidBodyStorageLayout()

int OpenMD::SnapshotManager::getRigidBodyStorageLayout ( )
inline

Definition at line 95 of file SnapshotManager.hpp.

◆ resetToPrevious()

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

Definition at line 78 of file SnapshotManager.hpp.

Member Data Documentation

◆ currentSnapshot_

Snapshot* OpenMD::SnapshotManager::currentSnapshot_
protected

Definition at line 111 of file SnapshotManager.hpp.

◆ previousSnapshot_

Snapshot* OpenMD::SnapshotManager::previousSnapshot_
protected

Definition at line 112 of file SnapshotManager.hpp.


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