Changeset 51d384a


Ignore:
Timestamp:
Apr 23, 2021, 8:43:45 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
5fa1e86
Parents:
ea30e6
git-author:
Frederik Heber <frederik.heber@…> (10/10/20 21:19:15)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:43:45)
Message:

Added BondedParticle::IsBondedTo that uses current worldtime.

Location:
src/Atom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_bondedparticle.cpp

    rea30e6 r51d384a  
    420420};
    421421
     422/** Checks whether there is a bond between \a this atom and the given \a *BondPartner.
     423 * @param _step time step to access
     424 * \param *BondPartner atom to check for
     425 * \return true - bond exists, false - bond does not exist
     426 */
     427bool BondedParticle::IsBondedTo(const BondedParticle * const BondPartner) const
     428{
     429  return IsBondedTo(WorldTime::getTime(), BondPartner);
     430};
     431
    422432std::ostream & BondedParticle::operator << (std::ostream &ost) const
    423433{
  • src/Atom/atom_bondedparticle.hpp

    rea30e6 r51d384a  
    5454  void removeAllBonds(const unsigned int _step);
    5555  bool IsBondedTo(const unsigned int _step, const BondedParticle * const BondPartner) const;
     56  bool IsBondedTo(const BondedParticle * const BondPartner) const;
    5657  void ClearBondsAtStep(const unsigned int _step);
    5758  int CountBonds() const;
Note: See TracChangeset for help on using the changeset viewer.