Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.hpp

    r5f1d5b8 re4afb4  
    1919
    2020#include "types.hpp"
     21#include "Actions/ActionTraits.hpp"
    2122#include "Descriptors/SelectiveIterator.hpp"
    2223#include "Patterns/Observer.hpp"
     
    111112   * menus, be kept around for later use etc.
    112113   */
    113   template<typename T> AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,std::string,AtomDescriptor);
    114   template<typename T> AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,std::string);
     114  template<typename T> AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,const ActionTraits &_trait,AtomDescriptor);
     115  template<typename T> AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,const ActionTraits &_trait);
    115116
    116117  /**
     
    269270  /******** Selections of molecules and Atoms *************/
    270271  void clearAtomSelection();
    271   void selectAtom(atom*);
    272   void selectAtom(atomId_t);
     272  void selectAtom(const atom*);
     273  void selectAtom(const atomId_t);
    273274  void selectAllAtoms(AtomDescriptor);
    274   void selectAtomsOfMolecule(molecule*);
    275   void selectAtomsOfMolecule(moleculeId_t);
    276   void unselectAtom(atom*);
    277   void unselectAtom(atomId_t);
     275  void selectAtomsOfMolecule(const molecule*);
     276  void selectAtomsOfMolecule(const moleculeId_t);
     277  void unselectAtom(const atom*);
     278  void unselectAtom(const atomId_t);
    278279  void unselectAllAtoms(AtomDescriptor);
    279   void unselectAtomsOfMolecule(molecule*);
    280   void unselectAtomsOfMolecule(moleculeId_t);
     280  void unselectAtomsOfMolecule(const molecule*);
     281  void unselectAtomsOfMolecule(const moleculeId_t);
    281282  size_t countSelectedAtoms() const;
    282   bool isSelected(atom *_atom) const;
     283  bool isSelected(const atom *_atom) const;
    283284  const std::vector<atom *> getSelectedAtoms() const;
    284285
    285286  void clearMoleculeSelection();
    286   void selectMolecule(molecule*);
    287   void selectMolecule(moleculeId_t);
     287  void selectMolecule(const molecule*);
     288  void selectMolecule(const moleculeId_t);
    288289  void selectAllMolecules(MoleculeDescriptor);
    289   void selectMoleculeOfAtom(atom*);
    290   void selectMoleculeOfAtom(atomId_t);
    291   void unselectMolecule(molecule*);
    292   void unselectMolecule(moleculeId_t);
     290  void selectMoleculeOfAtom(const atom*);
     291  void selectMoleculeOfAtom(const atomId_t);
     292  void unselectMolecule(const molecule*);
     293  void unselectMolecule(const moleculeId_t);
    293294  void unselectAllMolecules(MoleculeDescriptor);
    294   void unselectMoleculeOfAtom(atom*);
    295   void unselectMoleculeOfAtom(atomId_t);
     295  void unselectMoleculeOfAtom(const atom*);
     296  void unselectMoleculeOfAtom(const atomId_t);
    296297  size_t countSelectedMolecules() const;
    297   bool isSelected(molecule *_mol) const;
     298  bool isSelected(const molecule *_mol) const;
    298299  const std::vector<molecule *> getSelectedMolecules() const;
    299300
Note: See TracChangeset for help on using the changeset viewer.