Ignore:
Timestamp:
Feb 19, 2010, 2:31:56 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
7bfc19
Parents:
9ef76a
Message:

Added templates that allow arbitrary calculations on atoms to be mapped to sets of Atoms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/World.hpp

    r9ef76a r01d28a  
    2828class AtomDescriptor_impl;
    2929class ManipulateAtomsProcess;
     30template<typename T>
     31class AtomsCalculation;
    3032
    3133class World : public Observable
    3234{
     35// necessary for coupling with descriptors
    3336friend class AtomDescriptor_impl;
    3437friend class AtomDescriptor;
    3538
     39// Actions, calculations etc associated with the World
    3640friend class ManipulateAtomsProcess;
     41template<typename> friend class AtomsCalculation;
    3742
    3843typedef std::map<int,atom*> AtomList;
     
    4449  atom* getAtom(AtomDescriptor descriptor);
    4550  std::vector<atom*> getAllAtoms(AtomDescriptor descriptor);
     51
     52  template<typename T>
     53  AtomsCalculation<T>* calcOnAtoms(boost::function<T(atom*)>,std::string,AtomDescriptor);
     54
    4655  int numAtoms();
    4756  int numMolecules();
Note: See TracChangeset for help on using the changeset viewer.