Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_bondedparticleinfo.hpp

    r7e51e1 r8cc22f  
    4949   * real functions, \sa AppendTrajectoryStep(), by all necessary subclasses.
    5050   */
    51   virtual void UpdateSteps()=0;
     51  virtual void UpdateStep(const unsigned int _step)=0;
     52
     53  /** Pops the last step in all trajectory vectors.
     54   *
     55   * This allows to decrease all trajectories contained in different classes
     56   * by one consistently. This is implemented by the topmost class which calls
     57   * the real functions, \sa removeTrajectoryStep(), by all necessary subclasses.
     58   */
     59  virtual void removeStep(const unsigned int _step)=0;
    5260
    5361  /** Const accessor to ListOfBonds of WorldTime::CurrentTime.
     
    8795   * vector.
    8896   */
    89   void AppendTrajectoryStep();
     97  void AppendTrajectoryStep(const unsigned int _step);
    9098
    9199  /** Function used by this and inheriting classes to reduce the ListOfBonds
    92100   * vector by one.
    93101   */
    94   void removeTrajectoryStep();
     102  void removeTrajectoryStep(const unsigned int _step);
    95103
    96   std::vector<BondList> ListOfBonds; //!< list of all bonds
     104  typedef std::map<unsigned int, BondList> BondTrajectory_t;
     105  BondTrajectory_t ListOfBonds; //!< list of all bonds
    97106  static BondList emptyList;  //!< empty list to return when step is not present
    98107};
Note: See TracChangeset for help on using the changeset viewer.