|
Last change
on this file since 5738177 was 5738177, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Added a generic Iterator that can be used to iterate only over certain parts of an internal data structure
|
-
Property mode
set to
100644
|
|
File size:
740 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * ManipulateAtomsProcess.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Feb 18, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef MANIPULATEATOMSPROCESS_HPP_
|
|---|
| 9 | #define MANIPULATEATOMSPROCESS_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include "Actions/Process.hpp"
|
|---|
| 12 |
|
|---|
| 13 | #include<boost/function.hpp>
|
|---|
| 14 |
|
|---|
| 15 | #include "Descriptors/AtomDescriptor.hpp"
|
|---|
| 16 |
|
|---|
| 17 | class World;
|
|---|
| 18 |
|
|---|
| 19 | class ManipulateAtomsProcess : public Process
|
|---|
| 20 | {
|
|---|
| 21 | public:
|
|---|
| 22 | ManipulateAtomsProcess(boost::function<void(atom*)> _operation, AtomDescriptor descr,std::string _name,bool _doRegister=true);
|
|---|
| 23 | virtual ~ManipulateAtomsProcess();
|
|---|
| 24 |
|
|---|
| 25 | virtual void call();
|
|---|
| 26 | virtual void undo();
|
|---|
| 27 | virtual bool canUndo();
|
|---|
| 28 |
|
|---|
| 29 | virtual void doManipulate(World *);
|
|---|
| 30 | private:
|
|---|
| 31 | AtomDescriptor descr;
|
|---|
| 32 | boost::function<void(atom*)> operation;
|
|---|
| 33 | };
|
|---|
| 34 |
|
|---|
| 35 | #endif /* MANIPULATEATOMSPROCESS_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.