CMS 3D CMS Logo

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

#include <AbsArrayProjector.h>

Public Member Functions

virtual void clear ()=0
 
virtual void process (const unsigned *index, unsigned indexLen, unsigned long linearIndex, const Input &value)=0
 
virtual Result result ()=0
 
virtual ~AbsArrayProjector ()
 

Detailed Description

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

Interface class for piecemeal processing of array data and coordinates. Intended for making multidimensional array projections.

Definition at line 20 of file AbsArrayProjector.h.

Constructor & Destructor Documentation

◆ ~AbsArrayProjector()

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

Definition at line 21 of file AbsArrayProjector.h.

21 {}

Member Function Documentation

◆ clear()

template<typename Input, typename Result>
virtual void npstat::AbsArrayProjector< Input, Result >::clear ( )
pure virtual

Clear all accumulated results

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

◆ process()

template<typename Input, typename Result>
virtual void npstat::AbsArrayProjector< Input, Result >::process ( const unsigned *  index,
unsigned  indexLen,
unsigned long  linearIndex,
const Input &  value 
)
pure virtual

Process one array point

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

◆ result()

template<typename Input, typename Result>
virtual Result npstat::AbsArrayProjector< Input, Result >::result ( )
pure virtual

Return the result at the end of array processing

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