Changeset e0521b


Ignore:
Timestamp:
Aug 8, 2009, 7:17:51 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
0ee99dc
Parents:
67fced
Message:

new stream operator with just one parameter and virtual destructor

Location:
molecuilder/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    r67fced re0521b  
    119119};
    120120
     121ostream & atom::operator << (ostream &ost)
     122{
     123  ost << "[" << Name << "|" << this << "]";
     124  return ost;
     125};
     126
    121127/** Compares the indices of \a this atom with a given \a ptr.
    122128 * \param ptr atom to compare index against
  • molecuilder/src/atom.hpp

    r67fced re0521b  
    4949  atom();
    5050  atom(class atom *pointer);
    51   ~atom();
     51  virtual ~atom();
    5252
    5353  bool Output(int ElementNo, int AtomNo, ofstream *out, const char *comment = NULL) const;
     
    5555  atom *GetTrueFather();
    5656  bool Compare(const atom &ptr);
     57
     58  ostream & operator << (ostream &ost);
    5759
    5860  private:
Note: See TracChangeset for help on using the changeset viewer.