12#ifndef RD_TRAJECTORY_H
13#define RD_TRAJECTORY_H
31 Trajectory(
unsigned int dimension,
unsigned int numPoints,
38 unsigned int dimension()
const {
return d_dimension; }
41 unsigned int numPoints()
const {
return d_numPoints; }
44 size_t size()
const {
return d_snapshotVect->size(); }
71 void clear() { d_snapshotVect->clear(); }
85 const unsigned int d_dimension;
87 const unsigned int d_numPoints;
89 boost::shared_ptr<SnapshotVect> d_snapshotVect;
unsigned int removeSnapshot(unsigned int snapshotNum)
Removes a Snapshot from this Trajectory.
void clear()
Clear all Snapshots from a Trajectory.
unsigned int addConformersToMol(ROMol &mol, int from=-1, int to=-1)
Add conformations from the Trajectory to a molecule.
unsigned int addSnapshot(const Snapshot &s)
Appends a Snapshot to this Trajectory.
const Snapshot & getSnapshot(unsigned int snapshotNum) const
Trajectory(const Trajectory &other)
Copy constructor.
Trajectory(unsigned int dimension, unsigned int numPoints, SnapshotVect *snapshotVect=nullptr)
Constructor.
unsigned int dimension() const
unsigned int numPoints() const
unsigned int insertSnapshot(unsigned int snapshotNum, Snapshot s)
Inserts a Snapshot into this Trajectory.
#define RDKIT_TRAJECTORY_EXPORT
bool rdvalue_is(const RDValue_cast_t)
RDKIT_TRAJECTORY_EXPORT unsigned int readGromosTrajectory(const std::string &fName, Trajectory &traj)
Reads coordinates from a GROMOS trajectory file into the traj Trajectory object.
RDKIT_TRAJECTORY_EXPORT unsigned int readAmberTrajectory(const std::string &fName, Trajectory &traj)
Reads coordinates from an AMBER trajectory file into the traj Trajectory object.
std::vector< Snapshot > SnapshotVect