source: molecuilder/src/World_calculations.hpp@ c20eac

Last change on this file since c20eac was bb89b9, checked in by Tillmann Crueger <crueger@…>, 15 years ago

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

  • Property mode set to 100644
File size: 595 bytes
Line 
1/*
2 * World_calculations.hpp
3 *
4 * Created on: Feb 19, 2010
5 * Author: crueger
6 */
7
8#ifndef WORLD_CALCULATIONS_HPP_
9#define WORLD_CALCULATIONS_HPP_
10
11
12#include "World.hpp"
13#include "Actions/AtomsCalculation.hpp"
14
15template<typename T>
16AtomsCalculation<T>* World::calcOnAtoms(boost::function<T(atom*)> op,std::string name,AtomDescriptor descr){
17 return new AtomsCalculation<T>(op,name,descr);
18}
19
20template<typename T>
21AtomsCalculation<T>* World::calcOnAtoms(boost::function<T(atom*)> op,std::string name) {
22 return calcOnAtoms<T>(op,name,AllAtoms());
23}
24
25#endif /* WORLD_CALCULATIONS_HPP_ */
Note: See TracBrowser for help on using the repository browser.