Changeset 0012e6 for molecuilder/src/Actions/Calculation_impl.hpp
- Timestamp:
- Mar 24, 2010, 4:26:21 PM (16 years ago)
- Children:
- 521e29
- Parents:
- 91379c
- File:
-
- 1 edited
-
molecuilder/src/Actions/Calculation_impl.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Actions/Calculation_impl.hpp
r91379c r0012e6 29 29 30 30 template<typename T> 31 void Calculation<T>::call(){31 ActionState* 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 ActionState* Calculation<T>::performUndo(ActionState*){ 39 ASSERT(0,"Cannot undo a calculation"); 40 return Action::success; 41 } 42 template<typename T> 43 ActionState* Calculation<T>::performRedo(ActionState*){ 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.
