1 #ifndef NPSTAT_ABSVISITOR_HH_ 2 #define NPSTAT_ABSVISITOR_HH_ 18 template <
typename Input,
typename Result>
23 virtual void clear() = 0;
29 virtual Result
result() = 0;
37 template <
typename Input>
43 inline void clear() { counter_ = 0UL; }
45 inline unsigned long result() {
return counter_; }
52 #endif // ABSVISITOR_HH_
virtual void process(const Input &value)=0
virtual Result result()=0
void process(const Input &)