Changes in src/bond.cpp [b8d4a3:68f03d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/bond.cpp
rb8d4a3 r68f03d 15 15 /** Empty Constructor for class bond. 16 16 */ 17 bond::bond() 18 : leftatom(NULL), rightatom(NULL), previous(NULL), next(NULL), HydrogenBond(0), 19 BondDegree(0), nr(-1), Cyclic(false), Type(Undetermined), Used(white) 17 bond::bond() : leftatom(NULL), rightatom(NULL), previous(NULL), next(NULL), HydrogenBond(0), BondDegree(0), nr(-1), Cyclic(false), Type(Undetermined), Used(white) 20 18 { 21 19 }; … … 27 25 * \param number increasing index 28 26 */ 29 bond::bond(atom *left, atom *right, const int degree, const int number) 30 : leftatom(left), rightatom(right), previous(NULL), next(NULL), HydrogenBond(0), 31 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) 32 28 { 33 29 if ((left != NULL) && (right != NULL)) { … … 53 49 ostream & operator << (ostream &ost, const bond &b) 54 50 { 55 ost << "[" << b.leftatom-> Name << " <" << b.BondDegree << "(H" << b.HydrogenBond << ")>" << b.rightatom->Name<< "]";51 ost << "[" << b.leftatom->getName() << " <" << b.BondDegree << "(H" << b.HydrogenBond << ")>" << b.rightatom->getName() << "]"; 56 52 return ost; 57 53 }; … … 67 63 if(rightatom == Atom) 68 64 return leftatom; 69 eLog() << Verbose(1) << "Bond " << *this << " does not contain atom " << *Atom << "!" << endl;65 DoeLog(1) && (eLog()<< Verbose(1) << "Bond " << *this << " does not contain atom " << *Atom << "!" << endl); 70 66 return NULL; 71 67 }; … … 103 99 bool bond::MarkUsed(const enum Shading color) { 104 100 if (Used == black) { 105 eLog() << Verbose(1) << "Bond " << this << " was already marked black!." << endl;101 DoeLog(1) && (eLog()<< Verbose(1) << "Bond " << this << " was already marked black!." << endl); 106 102 return false; 107 103 } else { … … 123 119 double bond::GetDistance() const 124 120 { 125 return (leftatom->node-> Distance(rightatom->node));121 return (leftatom->node->distance(*rightatom->node)); 126 122 }; 127 123 … … 131 127 double bond::GetDistanceSquared() const 132 128 { 133 return (leftatom->node->DistanceSquared( rightatom->node));129 return (leftatom->node->DistanceSquared(*rightatom->node)); 134 130 };
Note:
See TracChangeset
for help on using the changeset viewer.