- Timestamp:
- Mar 16, 2024, 10:22:34 AM (23 months ago)
- Branches:
- Candidate_v1.7.0, Candidate_v1.7.1, stable
- Children:
- 19832d
- Parents:
- ad0929
- git-author:
- Frederik Heber <frederik.heber@…> (03/16/24 09:26:59)
- git-committer:
- Frederik Heber <frederik.heber@…> (03/16/24 10:22:34)
- Location:
- src/Bond
- Files:
-
- 2 edited
-
BondInfo.cpp (modified) (1 diff)
-
BondInfo.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Bond/BondInfo.cpp
rad0929 r9782e20 85 85 } 86 86 87 voidBondInfo::RemoveBond() const87 bool BondInfo::RemoveBond() const 88 88 { 89 89 atom * const leftatom = World::getInstance().getAtom(AtomById(leftid)); 90 90 atom * const rightatom = World::getInstance().getAtom(AtomById(rightid)); 91 leftatom->removeBond(rightatom); 91 if (leftatom->IsBondedTo(rightatom)) { 92 leftatom->removeBond(rightatom); 93 return true; 94 } 95 return false; 92 96 } -
src/Bond/BondInfo.hpp
rad0929 r9782e20 39 39 /** Removes the bond whose state is contained in this BondInfo. 40 40 * 41 * @return true - bond removed, false - bond does not exist 41 42 */ 42 voidRemoveBond() const;43 bool RemoveBond() const; 43 44 44 45 //!> id of left bond partner
Note:
See TracChangeset
for help on using the changeset viewer.
