casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casacore::ArrayFunctorBase< T, RES > Class Template Referenceabstract

Basic class for math on Array objects. More...

#include <ArrayMathBase.h>

Inheritance diagram for casacore::ArrayFunctorBase< T, RES >:
casacore::NFalseFunc< T, RES > casacore::NTrueFunc< T, RES >

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 57 of file ArrayMathBase.h.

Constructor & Destructor Documentation

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

Definition at line 59 of file ArrayMathBase.h.

Member Function Documentation

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: