1 #ifndef NPSTAT_ABSVISITOR_HH_ 2 #define NPSTAT_ABSVISITOR_HH_ 18 template <
typename Input,
typename Result>
24 virtual void clear() = 0;
30 virtual Result
result() = 0;
38 template <
typename Input>
45 inline void clear() {counter_ = 0UL;}
47 inline unsigned long result() {
return counter_;}
54 #endif // ABSVISITOR_HH_
virtual void process(const Input &value)=0
virtual Result result()=0
void process(const Input &)