Changes in src/Bond/bond.cpp [5aaa43:e23fec]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Bond/bond.cpp
r5aaa43 re23fec 125 125 * \return true if it is either bond::leftatom or bond::rightatom, false otherwise 126 126 */ 127 bool bond::Contains (const int number) const127 bool bond::ContainsNr(const int number) const 128 128 { 129 129 return ((leftatom->getNr() == number) || (rightatom->getNr() == number)); 130 }; 131 132 /** Checks if an atom exists in a bond. 133 * \param Nr index of atom 134 * \return true if it is either bond::leftatom or bond::rightatom, false otherwise 135 */ 136 bool bond::ContainsId(const atomId_t number) const 137 { 138 return ((leftatom->getId() == number) || (rightatom->getId() == number)); 130 139 }; 131 140
Note:
See TracChangeset
for help on using the changeset viewer.