CMS 3D CMS Logo

List of all members | Public Member Functions
npstat::AbsVisitor< Input, Result > Struct Template Referenceabstract

#include <AbsVisitor.h>

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

◆ ~AbsVisitor()

template<typename Input, typename Result>
virtual npstat::AbsVisitor< Input, Result >::~AbsVisitor ( )
inlinevirtual

Definition at line 20 of file AbsVisitor.h.

20 {}

Member Function Documentation

◆ clear()

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< Num1, Len1, Dim1 >::projectLoop2().

◆ process()

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

Process one array point

Implemented in npstat::VisitCounter< Input >.

Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::projectInnerLoop2().

◆ result()

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< Num1, Len1, Dim1 >::projectLoop2().