Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/Calculation_impl.hpp

    r5b0b98 rb54ac8  
    1616Calculation<T>::Calculation(int _maxSteps, std::string _name, bool _doRegister) :
    1717  Process(_maxSteps,_name,_doRegister),
    18   result(0),
    19   done(false)
     18  done(false),
     19  result(0)
    2020{}
    2121
     
    2929
    3030template<typename T>
    31 Action::state_ptr Calculation<T>::performCall(){
     31void Calculation<T>::call(){
    3232  reset();
    3333  (*this)();
    34   return Action::success;
    3534}
    3635
    3736template<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 }
     37void Calculation<T>::undo(){}
    4738
    4839template<typename T>
    4940bool Calculation<T>::canUndo()
    50 {
    51   return false;
    52 }
    53 
    54 template<typename T>
    55 bool Calculation<T>::shouldUndo()
    5641{
    5742  return false;
Note: See TracChangeset for help on using the changeset viewer.