OperationBase.h
Go to the documentation of this file.
1 #ifndef art_test_Utilities_tools_OperationBase_h
2 #define art_test_Utilities_tools_OperationBase_h
3 
4 namespace arttest {
5  class OperationBase {
6  public:
7  virtual ~OperationBase() noexcept = default;
8 
9  void
10  adjustNumber(int& i) const
11  {
12  do_adjustNumber(i);
13  }
14 
15  private:
16  virtual void do_adjustNumber(int&) const = 0;
17  };
18 } // namespace arttest
19 
20 #endif /* art_test_Utilities_tools_OperationBase_h */
21 
22 // Local variables:
23 // mode: c++
24 // End:
virtual void do_adjustNumber(int &) const =0
void adjustNumber(int &i) const
Definition: OperationBase.h:10
virtual ~OperationBase() noexcept=default