OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::BlockSnapshotManager Class Reference

#include <BlockSnapshotManager.hpp>

+ Inheritance diagram for OpenMD::BlockSnapshotManager:

Public Member Functions

 BlockSnapshotManager (SimInfo *info, const std::string &filename, int atomStorageLayout, int rigidBodyStorageLayout, int cutoffGroupStorageLayout, long long int memSize, int blockCapacity=2)
 
virtual SnapshotgetSnapshot (int id)
 
size_t getNBlocks ()
 Returns number of snapshot blocks in this BlockSnapshotManager.
 
SnapshotBlock getSnapshotBlock (int block)
 
int getNActiveBlocks ()
 
void needCOMprops (bool ncp)
 
bool isBlockActive (int block)
 
bool loadBlock (int block)
 
bool unloadBlock (int block)
 
std::vector< int > getActiveBlocks ()
 
int getBlockCapacity ()
 
int getNFrames ()
 
- Public Member Functions inherited from OpenMD::SnapshotManager
virtual bool advance ()
 
virtual bool resetToPrevious ()
 
SnapshotgetPrevSnapshot ()
 Returns the pointer of previous snapshot.
 
SnapshotgetCurrentSnapshot ()
 Returns the pointer of current snapshot.
 
int getAtomStorageLayout ()
 
int getRigidBodyStorageLayout ()
 
int getCutoffGroupStorageLayout ()
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::SnapshotManager
 SnapshotManager (int atomStorageLayout, int rigidBodyStorageLayout, int cutoffGroupStorageLayout)
 
- Protected Attributes inherited from OpenMD::SnapshotManager
SnapshotcurrentSnapshot_
 
SnapshotpreviousSnapshot_
 

Detailed Description

Todo
document

Definition at line 63 of file BlockSnapshotManager.hpp.

Constructor & Destructor Documentation

◆ BlockSnapshotManager()

OpenMD::BlockSnapshotManager::BlockSnapshotManager ( SimInfo * info,
const std::string & filename,
int atomStorageLayout,
int rigidBodyStorageLayout,
int cutoffGroupStorageLayout,
long long int memSize,
int blockCapacity = 2 )

Definition at line 57 of file BlockSnapshotManager.cpp.

◆ ~BlockSnapshotManager()

OpenMD::BlockSnapshotManager::~BlockSnapshotManager ( )

Definition at line 146 of file BlockSnapshotManager.cpp.

Member Function Documentation

◆ getActiveBlocks()

std::vector< int > OpenMD::BlockSnapshotManager::getActiveBlocks ( )

Definition at line 257 of file BlockSnapshotManager.cpp.

◆ getBlockCapacity()

int OpenMD::BlockSnapshotManager::getBlockCapacity ( )
inline

Definition at line 92 of file BlockSnapshotManager.hpp.

◆ getNActiveBlocks()

int OpenMD::BlockSnapshotManager::getNActiveBlocks ( )

Definition at line 163 of file BlockSnapshotManager.cpp.

◆ getNBlocks()

size_t OpenMD::BlockSnapshotManager::getNBlocks ( )
inline

Returns number of snapshot blocks in this BlockSnapshotManager.

Definition at line 74 of file BlockSnapshotManager.hpp.

◆ getNFrames()

int OpenMD::BlockSnapshotManager::getNFrames ( )

Definition at line 278 of file BlockSnapshotManager.cpp.

◆ getSnapshot()

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

Implements OpenMD::SnapshotManager.

Definition at line 158 of file BlockSnapshotManager.cpp.

◆ getSnapshotBlock()

SnapshotBlock OpenMD::BlockSnapshotManager::getSnapshotBlock ( int block)
inline

Definition at line 76 of file BlockSnapshotManager.hpp.

◆ isBlockActive()

bool OpenMD::BlockSnapshotManager::isBlockActive ( int block)
inline

Definition at line 82 of file BlockSnapshotManager.hpp.

◆ loadBlock()

bool OpenMD::BlockSnapshotManager::loadBlock ( int block)

Definition at line 168 of file BlockSnapshotManager.cpp.

◆ needCOMprops()

void OpenMD::BlockSnapshotManager::needCOMprops ( bool ncp)

Definition at line 280 of file BlockSnapshotManager.cpp.

◆ unloadBlock()

bool OpenMD::BlockSnapshotManager::unloadBlock ( int block)

Definition at line 196 of file BlockSnapshotManager.cpp.


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