22#if !defined(LOOS_CCPDB_HPP)
30#include <loos_defs.hpp>
31#include <Trajectory.hpp>
53 explicit CCPDB(
const std::string& s) :
Trajectory(s), _natoms(0), _nframes(0) { init(); }
54 explicit CCPDB(
const char *p) :
Trajectory(p), _natoms(0), _nframes(0) { init(); }
55 explicit CCPDB(std::istream& is) :
Trajectory(is), _natoms(0), _nframes(0) { init(); }
57 static pTraj create(
const std::string& fname,
const AtomicGroup& model) {
58 return(pTraj(
new CCPDB(fname)));
61 virtual std::string
description()
const {
return(
"Concatenated PDB"); }
63 virtual uint
nframes(
void)
const {
return(_nframes); }
64 virtual uint
natoms(
void)
const {
return(_natoms); }
65 virtual std::vector<GCoord>
coords(
void)
const;
73 virtual float timestep(
void)
const {
return(0.001); }
94 virtual void rewindImpl(
void) { ifs->clear(); ifs->seekg(0); }
95 virtual void seekNextFrameImpl(
void) { }
96 virtual void seekFrameImpl(
const uint);
97 virtual void updateGroupCoordsImpl(AtomicGroup& g);
100 uint _natoms, _nframes;
102 std::vector<long> indices;
Class for handling groups of Atoms (pAtoms, actually)
Definition AtomicGroup.hpp:108
Class for interpreting concatenated PDB files as a Trajectory.
Definition ccpdb.hpp:51
virtual uint nframes(void) const
Number of frames in the trajectory.
Definition ccpdb.hpp:63
virtual uint natoms(void) const
Definition ccpdb.hpp:64
virtual bool parseFrame(void)
Parse an actual frame.
Definition ccpdb.cpp:61
virtual GCoord periodicBox(void) const
Returns the periodic box for the current frame/trajectory.
Definition ccpdb.hpp:69
virtual bool hasPeriodicBox(void) const
Definition ccpdb.hpp:68
PDB currentFrame(void) const
Returns the current frame as a PDB object.
Definition ccpdb.hpp:88
virtual float timestep(void) const
Definition ccpdb.hpp:73
virtual std::vector< GCoord > coords(void) const
Returns the current frames coordinates as a vector of GCoords.
Definition ccpdb.cpp:78
virtual std::string description() const
Return a string describing trajectory format.
Definition ccpdb.hpp:61
PDB reading/writing class.
Definition pdb.hpp:69
Base-class for polymorphic trajectories.
Definition Trajectory.hpp:65
Namespace for most things not already encapsulated within a class.
Definition version.cpp:3