22#if !defined(LOOS_AMBER_RST_HPP)
23#define LOOS_AMBER_RST_HPP
28#include <loos_defs.hpp>
30#include <Trajectory.hpp>
41 periodic(
false), seek_flag(
false) {
49 std::string
description()
const {
return(
"Amber restart (single frame trajectory)"); }
50 static pTraj create(
const std::string& fname,
const AtomicGroup& model) {
51 return(pTraj(
new AmberRst(fname, model.size())));
55 virtual uint
nframes(
void)
const {
return(1); }
56 virtual uint
natoms(
void)
const {
return(_natoms); }
57 virtual std::vector<GCoord>
coords(
void)
const {
return(
frame); }
62 virtual float timestep(
void)
const {
return(0.0); }
63 greal currentTime(
void)
const {
return(current_time); }
68 virtual void updateGroupCoordsImpl(AtomicGroup&);
69 virtual void rewindImpl(
void) { seek_flag =
false; cached_first =
true; }
70 virtual void seekNextFrameImpl(
void);
71 virtual void seekFrameImpl(
const uint);
80 std::vector<GCoord>
frame;
Class for reading amber restart files as a single-frame trajectory.
Definition amber_rst.hpp:37
virtual float timestep(void) const
Timestep per frame.
Definition amber_rst.hpp:62
virtual bool hasPeriodicBox(void) const
Definition amber_rst.hpp:59
std::string description() const
Return a string describing trajectory format.
Definition amber_rst.hpp:49
virtual uint nframes(void) const
Number of frames in the trajectory.
Definition amber_rst.hpp:55
virtual GCoord periodicBox(void) const
Returns the periodic box for the current frame/trajectory.
Definition amber_rst.hpp:60
virtual bool parseFrame(void)
Parse an actual frame.
Definition amber_rst.cpp:33
virtual uint natoms(void) const
Definition amber_rst.hpp:56
virtual std::vector< GCoord > coords(void) const
Returns the current frames coordinates as a vector of GCoords.
Definition amber_rst.hpp:57
Class for handling groups of Atoms (pAtoms, actually)
Definition AtomicGroup.hpp:108
Base-class for polymorphic trajectories.
Definition Trajectory.hpp:65
Namespace for most things not already encapsulated within a class.
Definition version.cpp:3