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

SimSnapshotManager class is the concrete snapshot manager for actual simulation SimSnapshotManager only maintains two snapshots. More...

#include "brains/SimSnapshotManager.hpp"

Inheritance diagram for OpenMD::SimSnapshotManager:
OpenMD::SnapshotManager

Public Member Functions

 SimSnapshotManager (SimInfo *info, int storageLayout=0)
 
 ~SimSnapshotManager ()
 
virtual bool advance ()
 
virtual SnapshotgetSnapshot (int id)
 
virtual int getCapacity ()
 
virtual void setCapacity (int capacity)
 
- Public Member Functions inherited from OpenMD::SnapshotManager
virtual ~SnapshotManager ()
 
SnapshotgetPrevSnapshot ()
 
SnapshotgetCurrentSnapshot ()
 
int getStorageLayout ()
 

Private Attributes

SimInfoinfo_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::SnapshotManager
 SnapshotManager (int storageLayout)
 
- Protected Attributes inherited from OpenMD::SnapshotManager
SnapshotcurrentSnapshot_
 
SnapshotpreviousSnapshot_
 

Detailed Description

SimSnapshotManager class is the concrete snapshot manager for actual simulation SimSnapshotManager only maintains two snapshots.

See also
PropSimSnapshotManager

Definition at line 65 of file SimSnapshotManager.hpp.

Constructor & Destructor Documentation

◆ SimSnapshotManager()

◆ ~SimSnapshotManager()

OpenMD::SimSnapshotManager::~SimSnapshotManager ( )

Member Function Documentation

◆ advance()

◆ getCapacity()

int OpenMD::SimSnapshotManager::getCapacity ( )
virtual

Definition at line 87 of file SimSnapshotManager.cpp.

◆ getSnapshot()

Snapshot * OpenMD::SimSnapshotManager::getSnapshot ( int  id)
virtual

◆ setCapacity()

void OpenMD::SimSnapshotManager::setCapacity ( int  capacity)
virtual

Definition at line 91 of file SimSnapshotManager.cpp.

References errorStruct::errMsg, errorStruct::isFatal, painCave, and simError().

Member Data Documentation

◆ info_

SimInfo* OpenMD::SimSnapshotManager::info_
private

Definition at line 78 of file SimSnapshotManager.hpp.

Referenced by SimSnapshotManager().


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