Last change
on this file since 01d28a was 01d28a, checked in by Tillmann Crueger <crueger@…>, 15 years ago |
Added templates that allow arbitrary calculations on atoms to be mapped to sets of Atoms
|
-
Property mode
set to
100644
|
File size:
437 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 |
|
---|
15 | template<typename T>
|
---|
16 | AtomsCalculation<T>* World::calcOnAtoms(boost::function<T(atom*)> op,std::string name,AtomDescriptor descr){
|
---|
17 | return new AtomsCalculation<T>(op,name,descr);
|
---|
18 | }
|
---|
19 |
|
---|
20 | #endif /* WORLD_CALCULATIONS_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.