Changes in src/Actions/Calculation_impl.hpp [b54ac8:5b0b98]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/Calculation_impl.hpp
rb54ac8 r5b0b98 16 16 Calculation<T>::Calculation(int _maxSteps, std::string _name, bool _doRegister) : 17 17 Process(_maxSteps,_name,_doRegister), 18 done(false),19 result(0)18 result(0), 19 done(false) 20 20 {} 21 21 … … 29 29 30 30 template<typename T> 31 void Calculation<T>::call(){31 Action::state_ptr Calculation<T>::performCall(){ 32 32 reset(); 33 33 (*this)(); 34 return Action::success; 34 35 } 35 36 36 37 template<typename T> 37 void Calculation<T>::undo(){} 38 Action::state_ptr Calculation<T>::performUndo(Action::state_ptr){ 39 ASSERT(0,"Cannot undo a calculation"); 40 return Action::success; 41 } 42 template<typename T> 43 Action::state_ptr Calculation<T>::performRedo(Action::state_ptr){ 44 ASSERT(0,"Cannot redo a calculation"); 45 return Action::success; 46 } 38 47 39 48 template<typename T> 40 49 bool Calculation<T>::canUndo() 50 { 51 return false; 52 } 53 54 template<typename T> 55 bool Calculation<T>::shouldUndo() 41 56 { 42 57 return false;
Note:
See TracChangeset
for help on using the changeset viewer.