Changeset 069034 for molecuilder/src/bond.cpp
- Timestamp:
- Oct 27, 2009, 5:16:31 PM (16 years ago)
- Children:
- 6d7651
- Parents:
- a9b2a0a
- git-author:
- Frederik Heber <heber@…> (10/27/09 16:42:42)
- git-committer:
- Frederik Heber <heber@…> (10/27/09 17:16:31)
- File:
-
- 1 edited
-
molecuilder/src/bond.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/bond.cpp
ra9b2a0a r069034 25 25 * \param number increasing index 26 26 */ 27 bond::bond(atom *left, atom *right, int degree,int number) : leftatom(left), rightatom(right), previous(NULL), next(NULL), HydrogenBond(0), BondDegree(degree), nr(number), Cyclic(false), Type(Undetermined), Used(white)27 bond::bond(atom *left, atom *right, const int degree, const int number) : leftatom(left), rightatom(right), previous(NULL), next(NULL), HydrogenBond(0), BondDegree(degree), nr(number), Cyclic(false), Type(Undetermined), Used(white) 28 28 { 29 29 if ((left != NULL) && (right != NULL)) { … … 47 47 }; 48 48 49 ostream & operator << (ostream &ost, const bond &b) 49 ostream & operator << (ostream &ost, const bond &b) 50 50 { 51 51 ost << "[" << b.leftatom->Name << " <" << b.BondDegree << "(H" << b.HydrogenBond << ")>" << b.rightatom->Name << "]"; … … 57 57 * \return pointer to the other atom in the bond, NULL if no match (indicates something's wrong with the bond) 58 58 */ 59 atom * bond::GetOtherAtom(const ParticleInfo * Atom) const59 atom * bond::GetOtherAtom(const ParticleInfo * const Atom) const 60 60 { 61 61 if(leftatom == Atom) … … 80 80 * \return true if it is either bond::leftatom or bond::rightatom, false otherwise 81 81 */ 82 bool bond::Contains(const ParticleInfo * ptr)82 bool bond::Contains(const ParticleInfo * const ptr) 83 83 { 84 84 return ((leftatom == ptr) || (rightatom == ptr)); … … 97 97 * \return bond::Used, false if bond was already marked used 98 98 */ 99 bool bond::MarkUsed( enum Shading color) {99 bool bond::MarkUsed(const enum Shading color) { 100 100 if (Used == black) { 101 101 cerr << "ERROR: Bond " << this << " was already marked black!." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.
