Class Reference for E1039 Core & Analysis Software
PHNodeOperation.h
Go to the documentation of this file.
1 #ifndef PHNodeOperation_h
2 #define PHNodeOperation_h
3 
4 // Declaration of class PHNodeOperation
5 // Purpose: abstract strategy base class which operates on PHNodes
6 // Author: Matthias Messer
7 
8 class PHNode;
9 
11 {
12  public:
14  : verbosity(0)
15  {
16  }
17  virtual ~PHNodeOperation() {}
18  void
20  {
21  perform(&o);
22  }
23  void
25  {
26  perform(o);
27  }
28 
29  virtual void Verbosity(const int i) { verbosity = i; }
30  virtual int Verbosity() const { return verbosity; }
31  protected:
32  virtual void perform(PHNode*) = 0;
33  int verbosity;
34 };
35 
36 #endif /* PHNodeOperation_h */
void operator()(PHNode &o)
virtual void perform(PHNode *)=0
void operator()(PHNode *o)
virtual void Verbosity(const int i)
virtual int Verbosity() const
virtual ~PHNodeOperation()
Definition: PHNode.h:15