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