#include <AbsVisitor.h>
Public Member Functions | |
void | clear () |
void | process (const Input &) |
unsigned long | result () |
VisitCounter () | |
virtual | ~VisitCounter () |
Public Member Functions inherited from npstat::AbsVisitor< Input, unsigned long > | |
virtual | ~AbsVisitor () |
Private Attributes | |
unsigned long | counter_ |
Simple counter of visits is needed often, so it makes sense to put it together with AbsVisitor in the same header. Do not derive from this class, its destructor is not virtual.
Definition at line 38 of file AbsVisitor.h.
|
inline |
Definition at line 40 of file AbsVisitor.h.
|
inlinevirtual |
Definition at line 41 of file AbsVisitor.h.
|
inlinevirtual |
Clear all accumulated results
Implements npstat::AbsVisitor< Input, unsigned long >.
Definition at line 43 of file AbsVisitor.h.
References npstat::VisitCounter< Input >::counter_.
|
inlinevirtual |
Process one array point
Implements npstat::AbsVisitor< Input, unsigned long >.
Definition at line 44 of file AbsVisitor.h.
References npstat::VisitCounter< Input >::counter_.
|
inlinevirtual |
Return the result at the end of array processing
Implements npstat::AbsVisitor< Input, unsigned long >.
Definition at line 45 of file AbsVisitor.h.
References npstat::VisitCounter< Input >::counter_.
|
private |
Definition at line 48 of file AbsVisitor.h.
Referenced by npstat::VisitCounter< Input >::clear(), npstat::VisitCounter< Input >::process(), and npstat::VisitCounter< Input >::result().