ACDCGenerator::ACDCFncTraits< FncPtr > Struct Template Reference

ACDCFncTraits defines the interface to functions to be sampled by ACDCGen. More...

#include <ACDCTraits.h>

Inheritance diagram for ACDCGenerator::ACDCFncTraits< FncPtr >:

ACDCGenerator::ACDCTraitsType

List of all members.

Static Public Member Functions

static double value (const FncPtr &f, const DVector &x)
 Call a function to be sampled by ACDCGen.


Detailed Description

template<typename FncPtr>
struct ACDCGenerator::ACDCFncTraits< FncPtr >

ACDCFncTraits defines the interface to functions to be sampled by ACDCGen.

It only defines one function which defines how the functions are called. If the default implementation is not suitable, ACDCFncTraits may be specialized for a function class implementing a function with the same signature.

Definition at line 28 of file ACDCTraits.h.


Member Function Documentation

template<typename FncPtr>
static double ACDCGenerator::ACDCFncTraits< FncPtr >::value ( const FncPtr &  f,
const DVector x 
) [inline, static]

Call a function to be sampled by ACDCGen.

Returns:
(*f)(x).

Definition at line 34 of file ACDCTraits.h.


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

Generated on Thu Apr 29 12:42:55 2010 for ThePEG by  doxygen 1.5.5