npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::VisitCounter< Input > Class Template Reference

#include <AbsVisitor.hh>

Inheritance diagram for npstat::VisitCounter< Input >:
npstat::AbsVisitor< Input, unsigned long >

Public Member Functions

void clear ()
 
void process (const Input &)
 
unsigned long result ()
 

Detailed Description

template<typename Input>
class npstat::VisitCounter< Input >

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.

Member Function Documentation

◆ clear()

template<typename Input >
void npstat::VisitCounter< Input >::clear ( )
inlinevirtual

Clear all accumulated results

Implements npstat::AbsVisitor< Input, unsigned long >.

◆ process()

template<typename Input >
void npstat::VisitCounter< Input >::process ( const Input &  value)
inlinevirtual

Process one array point

Implements npstat::AbsVisitor< Input, unsigned long >.

◆ result()

template<typename Input >
unsigned long npstat::VisitCounter< Input >::result ( )
inlinevirtual

Return the result at the end of array processing

Implements npstat::AbsVisitor< Input, unsigned long >.


The documentation for this class was generated from the following file: