Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/bond.cpp

    rb8d4a3 r68f03d  
    1515/** Empty Constructor for class bond.
    1616 */
    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)
     17bond::bond() : leftatom(NULL), rightatom(NULL), previous(NULL), next(NULL), HydrogenBond(0), BondDegree(0), nr(-1), Cyclic(false), Type(Undetermined), Used(white)
    2018{
    2119};
     
    2725 * \param number increasing index
    2826 */
    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)
     27bond::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)
    3228{
    3329  if ((left != NULL) && (right != NULL)) {
     
    5349ostream & operator << (ostream &ost, const bond &b)
    5450{
    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() << "]";
    5652  return ost;
    5753};
     
    6763  if(rightatom == Atom)
    6864    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);
    7066  return NULL;
    7167};
     
    10399bool bond::MarkUsed(const enum Shading color) {
    104100  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);
    106102    return false;
    107103  } else {
     
    123119double bond::GetDistance() const
    124120{
    125   return (leftatom->node->Distance(rightatom->node));
     121  return (leftatom->node->distance(*rightatom->node));
    126122};
    127123
     
    131127double bond::GetDistanceSquared() const
    132128{
    133   return (leftatom->node->DistanceSquared(rightatom->node));
     129  return (leftatom->node->DistanceSquared(*rightatom->node));
    134130};
Note: See TracChangeset for help on using the changeset viewer.