Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_atominfo.hpp

    r7e51e1 r8cc22f  
    5656   * real functions, \sa AppendTrajectoryStep(), by all necessary subclasses.
    5757   */
    58   virtual void UpdateSteps()=0;
     58  virtual void UpdateStep(const unsigned int _step)=0;
    5959
    6060  /** Pops the last step in all trajectory vectors.
     
    6464   * the real functions, \sa removeTrajectoryStep(), by all necessary subclasses.
    6565   */
    66   virtual void removeSteps()=0;
     66  virtual void removeStep(const unsigned int _step)=0;
    6767
    6868  /** DEPRECATED: Getter for element indicated by AtomicElement.
     
    276276
    277277  // operations for trajectories
     278  bool isStepPresent(const unsigned int _step) const;
    278279  void ResizeTrajectory(size_t MaxSteps);
    279280  size_t getTrajectorySize() const;
     
    297298   * vectors.
    298299   */
    299   void AppendTrajectoryStep();
     300  void AppendTrajectoryStep(const unsigned int _step);
    300301
    301302  /** Function used by this and inheriting classes to decrease the trajectory
    302303   * vectors by one.
    303304   */
    304   void removeTrajectoryStep();
     305  void removeTrajectoryStep(const unsigned int _step);
    305306
    306307  // make these protected only such that deriving atom class still has full
    307308  // access needed for clone and alike
    308   std::vector<Vector> AtomicPosition;       //!< coordinate vector of atom, giving last position within cell
    309   std::vector<Vector> AtomicVelocity;       //!< velocity vector of atom, giving last velocity within cell
    310   std::vector<Vector> AtomicForce;       //!< Force vector of atom, giving last force within cell
     309
     310  //!> typedef for a vector of Vectors with inverse sorting to make lower_bound return present or last past step
     311  typedef std::map<unsigned int, Vector, std::greater<unsigned int> > VectorTrajectory_t;
     312  VectorTrajectory_t AtomicPosition;       //!< coordinate vector of atom, giving last position within cell
     313  VectorTrajectory_t AtomicVelocity;       //!< velocity vector of atom, giving last velocity within cell
     314  VectorTrajectory_t AtomicForce;       //!< Force vector of atom, giving last force within cell
    311315
    312316private:
Note: See TracChangeset for help on using the changeset viewer.