Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.hpp

    r833b15 ra7aebd  
    5757/************************************* Class definitions ****************************************/
    5858
     59/** External function to remove all atoms since this will also delete the molecule
     60 *
     61 * \param _mol ref pointer to molecule to destroy
     62 */
     63void removeAtomsinMolecule(molecule *&_mol);
     64
    5965/** The complete molecule.
    6066 * Class incorporates number of types
     
    105111    AtomRemoved,
    106112    AtomNrChanged,
     113    AtomMoved,
    107114    MoleculeNameChanged,
    108115    NotificationType_MAX
    109116  };
     117
     118  //>! access to last changed element (atom)
     119  const atom* lastChanged() const
     120  { return _lastchangedatom; }
    110121
    111122public:
     
    257268  bool UnlinkAtom(atom *pointer);
    258269  bool CleanupMolecule();
    259   void removeAtomsinMolecule();
    260270
    261271  /// Add/remove atoms to/from molecule.
     
    318328  void flipActiveFlag();
    319329
     330  virtual void update(Observable *publisher);
     331  virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
     332  virtual void subjectKilled(Observable *publisher);
     333
    320334private:
     335  friend const atom *detail::lastChanged<atom>();
     336  atom *_lastchangedatom;
     337
    321338  int last_atom; //!< number given to last atom
    322339};
Note: See TracChangeset for help on using the changeset viewer.