OpenMD 3.2
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 66 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 60 of file BlockSnapshotManager.cpp.

◆ ~BlockSnapshotManager()

OpenMD::BlockSnapshotManager::~BlockSnapshotManager ( )

Definition at line 149 of file BlockSnapshotManager.cpp.

Member Function Documentation

◆ getActiveBlocks()

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

Definition at line 260 of file BlockSnapshotManager.cpp.

◆ getBlockCapacity()

int OpenMD::BlockSnapshotManager::getBlockCapacity ( )
inline

Definition at line 95 of file BlockSnapshotManager.hpp.

◆ getNActiveBlocks()

int OpenMD::BlockSnapshotManager::getNActiveBlocks ( )

Definition at line 166 of file BlockSnapshotManager.cpp.

◆ getNBlocks()

size_t OpenMD::BlockSnapshotManager::getNBlocks ( )
inline

Returns number of snapshot blocks in this BlockSnapshotManager.

Definition at line 77 of file BlockSnapshotManager.hpp.

◆ getNFrames()

int OpenMD::BlockSnapshotManager::getNFrames ( )

Definition at line 281 of file BlockSnapshotManager.cpp.

◆ getSnapshot()

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

Implements OpenMD::SnapshotManager.

Definition at line 161 of file BlockSnapshotManager.cpp.

◆ getSnapshotBlock()

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

Definition at line 79 of file BlockSnapshotManager.hpp.

◆ isBlockActive()

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

Definition at line 85 of file BlockSnapshotManager.hpp.

◆ loadBlock()

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

Definition at line 171 of file BlockSnapshotManager.cpp.

◆ needCOMprops()

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

Definition at line 283 of file BlockSnapshotManager.cpp.

◆ unloadBlock()

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

Definition at line 199 of file BlockSnapshotManager.cpp.


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