Changeset a7b3b8 for molecuilder


Ignore:
Timestamp:
Oct 9, 2008, 4:19:39 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
b86de7
Parents:
68cfd1
Message:

Output of atom and bond to stream now is set to const bond/atom

Location:
molecuilder/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r68cfd1 ra7b3b8  
    8585};
    8686
    87 ostream & operator << (ostream &ost, atom &a)
     87ostream & operator << (ostream &ost, const atom &a)
    8888{
    8989  ost << "[" << a.Name << "|" << &a << "]";
  • molecuilder/src/bond.cpp

    r68cfd1 ra7b3b8  
    8282};
    8383
    84 ostream & operator << (ostream &ost, bond &b)
     84ostream & operator << (ostream &ost, const bond &b)
    8585{
    8686  ost << "[" << b.leftatom->Name << " <" << b.BondDegree << "(H" << b.HydrogenBond << ")>" << b.rightatom->Name << "]";
     
    9898  if(rightatom == Atom)
    9999    return leftatom;
     100  cerr << "Bond " << *this << " does not contain atom " << *Atom << "!" << endl;
    100101  return NULL;
    101102};
  • molecuilder/src/molecules.hpp

    r68cfd1 ra7b3b8  
    154154};
    155155
    156 ostream & operator << (ostream &ost, atom &a);
     156ostream & operator << (ostream &ost, const atom &a);
    157157
    158158/** Bonds between atoms.
     
    194194
    195195
    196 ostream & operator << (ostream &ost, bond &b);
     196ostream & operator << (ostream &ost, const bond &b);
    197197
    198198class MoleculeLeafClass;
Note: See TracChangeset for help on using the changeset viewer.