CMS 3D CMS Logo

Public Member Functions

npstat::AbsVisitor< Input, Result > Struct Template Reference

#include <AbsVisitor.h>

List of all members.

Public Member Functions

virtual void clear ()=0
virtual void process (const Input &value)=0
virtual Result result ()=0
virtual ~AbsVisitor ()

Detailed Description

template<typename Input, typename Result>
struct npstat::AbsVisitor< Input, Result >

Interface class for piecemeal processing of a data collection

Definition at line 19 of file AbsVisitor.h.


Constructor & Destructor Documentation

template<typename Input, typename Result>
virtual npstat::AbsVisitor< Input, Result >::~AbsVisitor ( ) [inline, virtual]

Definition at line 21 of file AbsVisitor.h.

{}

Member Function Documentation

template<typename Input, typename Result>
virtual void npstat::AbsVisitor< Input, Result >::clear ( ) [pure virtual]

Clear all accumulated results

Implemented in npstat::VisitCounter< Input >.

Referenced by npstat::ArrayND< Numeric, StackLen, StackDim >::projectLoop2().

template<typename Input, typename Result>
virtual void npstat::AbsVisitor< Input, Result >::process ( const Input &  value) [pure virtual]
template<typename Input, typename Result>
virtual Result npstat::AbsVisitor< Input, Result >::result ( ) [pure virtual]

Return the result at the end of array processing

Implemented in npstat::VisitCounter< Input >.

Referenced by npstat::ArrayND< Numeric, StackLen, StackDim >::projectLoop2().