Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.hpp

    ra7aebd r833b15  
    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  */
    63 void removeAtomsinMolecule(molecule *&_mol);
    64 
    6559/** The complete molecule.
    6660 * Class incorporates number of types
     
    111105    AtomRemoved,
    112106    AtomNrChanged,
    113     AtomMoved,
    114107    MoleculeNameChanged,
    115108    NotificationType_MAX
    116109  };
    117 
    118   //>! access to last changed element (atom)
    119   const atom* lastChanged() const
    120   { return _lastchangedatom; }
    121110
    122111public:
     
    268257  bool UnlinkAtom(atom *pointer);
    269258  bool CleanupMolecule();
     259  void removeAtomsinMolecule();
    270260
    271261  /// Add/remove atoms to/from molecule.
     
    328318  void flipActiveFlag();
    329319
    330   virtual void update(Observable *publisher);
    331   virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
    332   virtual void subjectKilled(Observable *publisher);
    333 
    334320private:
    335   friend const atom *detail::lastChanged<atom>();
    336   atom *_lastchangedatom;
    337 
    338321  int last_atom; //!< number given to last atom
    339322};
Note: See TracChangeset for help on using the changeset viewer.