Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom.hpp

    r8cc22f rd05088  
    2525#include "atom_bondedparticle.hpp"
    2626#include "atom_graphnode.hpp"
     27#include "atom_observable.hpp"
    2728#include "atom_particleinfo.hpp"
    2829#include "Atom/TesselPoint.hpp"
    2930#include "types.hpp"
    3031
     32#include "CodePatterns/Observer/Observer.hpp"
    3133#include "CodePatterns/enumeration.hpp"
    3234
     
    4446 * Class incorporates position, type
    4547 */
    46 class atom : public GraphNode, public BondedParticle, public TesselPoint {
     48class atom :
     49            public GraphNode,
     50            public BondedParticle,
     51            public TesselPoint
     52{
    4753  friend atom* NewAtom(atomId_t);
    4854  friend void  DeleteAtom(atom*);
     55
     56  atom *father;   //!< In many-body bond order fragmentations points to originating atom
     57  int *sort;      //!< sort criteria
     58
    4959public:
    50     atom *father;   //!< In many-body bond order fragmentations points to originating atom
    51     int *sort;      //!< sort criteria
    5260
    5361  /** Clones this atom.
     
    130138   */
    131139  const atom *GetTrueFather() const;
     140
     141  /** Const getter for the atoms father.
     142   *
     143   * \return father of this atom
     144   */
     145  atom * const getFather() const
     146  { return father; }
     147
     148  /** Sets the father for this atom.
     149   *
     150   * \param _father ptr to father atom
     151   */
     152  void setFather(atom * const _father);
    132153
    133154  /** Compares the indices of \a this atom with a given \a ptr.
     
    228249    void unsetMolecule();
    229250
     251//    virtual void update(Observable *publisher);
     252//    virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
     253    virtual void subjectKilled(Observable *publisher);
    230254
    231255  private:
Note: See TracChangeset for help on using the changeset viewer.