CLAM::TabFunct< OriginalFunction > Class Template Reference

Precalculated (tabulated) functor, for dealing with efficient version of expensive functions (with its associated cost in space and precision). More...

#include <TabFunct.hxx>

List of all members.

Public Member Functions

TData operator() (const TData arg)
 TabFunct (const unsigned tableSize, const TData lowerBound, const TData upperBound)

Detailed Description

template<class OriginalFunction>
class CLAM::TabFunct< OriginalFunction >

Precalculated (tabulated) functor, for dealing with efficient version of expensive functions (with its associated cost in space and precision).

The original function is passed as the template argument, requiring from the template, the same operator interface as the one that TabFunct offers: TData operator() (const TData).

The only constructor available takes three parameters : table size, lower bound and upper bound.

Definition at line 43 of file TabFunct.hxx.


Constructor & Destructor Documentation

template<class OriginalFunction >
CLAM::TabFunct< OriginalFunction >::TabFunct ( const unsigned  tableSize,
const TData  lowerBound,
const TData  upperBound 
) [inline]

Definition at line 63 of file TabFunct.hxx.

References CLAM_ASSERT.


Member Function Documentation

template<class OriginalFunction >
TData CLAM::TabFunct< OriginalFunction >::operator() ( const TData  arg  )  [inline]

Definition at line 48 of file TabFunct.hxx.

References CLAM_DEBUG_ASSERT.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.3