7#ifndef BALL_MOLMEC_COMMON_SNAPSHOTMANAGER_H
8#define BALL_MOLMEC_COMMON_SNAPSHOTMANAGER_H
10#ifndef BALL_MOLMEC_COMMON_SNAPSHOT_H
14#ifndef BALL_DATATYPE_OPTIONS_H
18#ifndef BALL_SYSTEM_FILE_H
const ForceField * force_field_ptr_
Size getFlushToDiskFrequency() const
void setTrajectoryFile(TrajectoryFile *my_file)
set the trajectory file
virtual bool applySnapShot(Size number)
virtual void takeSnapShot()
virtual bool applyNextSnapShot()
virtual void clear()
Clear method.
void setFlushToDiskFrequency(Size number)
SnapShotManager()
Default constructor.
TrajectoryFile * trajectory_file_ptr_
vector< SnapShot > snapshot_buffer_
Size getNumberOfSnapShotsInBuffer()
void setForceField(const ForceField *my_ff)
set the force field
virtual bool applyFirstSnapShot()
Size flush_to_disk_frequency_
Position getCurrentSnapshotNumber() const
virtual bool isValid() const
virtual bool applyLastSnapShot()
Options options
The available options for this class.
const ForceField * getForceField() const
get a const pointer to the force field
TrajectoryFile * getTrajectoryFile() const
get a pointer to the trajectory file
bool setup(System *my_system, const ForceField *my_forcefield, TrajectoryFile *my_snapshot_file)
Position current_snapshot_
void setSystem(System *my_system)
double calculateKineticEnergy_()
void clearBuffer()
Clear all currently loaded SnapShot 's.
System * getSystem() const
get a const pointer to the system member
virtual void flushToDisk()
#define BALL_CREATE(name)
Local class for handling default values for the options.
static const Size FLUSH_TO_DISK_FREQUENCY
Local class for handling options.
static const char * FLUSH_TO_DISK_FREQUENCY