casacore
Public Member Functions | List of all members
casacore::ArrayFunctorBase< T, RES > Class Template Referenceabstract

More...

#include <ArrayMathBase.h>

Public Member Functions

virtual ~ArrayFunctorBase ()
 
virtual RES operator() (const Array< T > &) const =0
 

Detailed Description

template<typename T, typename RES = T>
class casacore::ArrayFunctorBase< T, RES >

Basic class for math on Array objects

Review Status

Reviewed By:
UNKNOWN
Test programs:
tArrayMath

Prerequisite

Synopsis

The abstract base class ArrayFunctorBase is defined for functors to be used in functions like slidingXXX. Virtual functions instead of templated functions are used to avoid code bloat when used in functions like partialArrayMath. Because a reduction operation usually takes much more time than the call, using virtual functions hardly imposes a performance penalty.

Definition at line 53 of file ArrayMathBase.h.

Constructor & Destructor Documentation

◆ ~ArrayFunctorBase()

template<typename T , typename RES = T>
virtual casacore::ArrayFunctorBase< T, RES >::~ArrayFunctorBase ( )
inlinevirtual

Definition at line 55 of file ArrayMathBase.h.

Member Function Documentation

◆ operator()()

template<typename T , typename RES = T>
virtual RES casacore::ArrayFunctorBase< T, RES >::operator() ( const Array< T > &  ) const
pure virtual

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