Changeset bb89b9 for molecuilder/src


Ignore:
Timestamp:
Feb 25, 2010, 10:32:14 AM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
a1a532
Parents:
e7e088
Message:

Added overloaded methods for all methods in the world taking an AtomDescriptor

Location:
molecuilder/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/World.cpp

    re7e088 rbb89b9  
    3030}
    3131
     32vector<atom*> World::getAllAtoms(){
     33  return getAllAtoms(AllAtoms());
     34}
     35
    3236int World::numAtoms(){
    3337  return atoms.size();
     
    8690}
    8791
     92ManipulateAtomsProcess* World::manipulateAtoms(boost::function<void(atom*)> op,std::string name){
     93  return manipulateAtoms(op,name,AllAtoms());
     94}
     95
    8896/********************* Internal Change methods for double Callback and Observer mechanism ********/
    8997
  • molecuilder/src/World.hpp

    re7e088 rbb89b9  
    6161   */
    6262  std::vector<atom*> getAllAtoms(AtomDescriptor descriptor);
     63  std::vector<atom*> getAllAtoms();
    6364
    6465  /**
     
    6768   * menus, be kept around for later use etc.
    6869   */
    69   template<typename T>
    70   AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,std::string,AtomDescriptor);
     70  template<typename T> AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,std::string,AtomDescriptor);
     71  template<typename T> AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,std::string);
    7172
    7273  /**
     
    117118   */
    118119  ManipulateAtomsProcess* manipulateAtoms(boost::function<void(atom*)>,std::string,AtomDescriptor);
     120  ManipulateAtomsProcess* manipulateAtoms(boost::function<void(atom*)>,std::string);
    119121
    120122protected:
  • molecuilder/src/World_calculations.hpp

    re7e088 rbb89b9  
    1818}
    1919
     20template<typename T>
     21AtomsCalculation<T>* World::calcOnAtoms(boost::function<T(atom*)> op,std::string name) {
     22  return calcOnAtoms<T>(op,name,AllAtoms());
     23}
     24
    2025#endif /* WORLD_CALCULATIONS_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.