GEP::oneArg< T > Struct Template Reference

#include <Functions.h>

Inheritance diagram for GEP::oneArg< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~oneArg ()
virtual T operator() (const T &a)
virtual std::string name ()

Detailed Description

template<class T = double>
struct GEP::oneArg< T >

Basic structure for all one argument functions. Virtual operator () will be invoked by polymorphism. Extends std::unary_function


Constructor & Destructor Documentation

template<class T = double>
virtual GEP::oneArg< T >::~oneArg (  )  [inline, virtual]

Member Function Documentation

template<class T = double>
virtual std::string GEP::oneArg< T >::name (  )  [inline, virtual]

Name of the function.

Returns:
name of the function

Reimplemented in GEP::tfsign< T >, GEP::tfsqrt< T >, GEP::tfsin< T >, GEP::tfcos< T >, GEP::tftan< T >, GEP::tfexp< T >, and GEP::tfln< T >.

template<class T = double>
virtual T GEP::oneArg< T >::operator() ( const T &  a  )  [inline, virtual]

templated operator (), representing the desired mechanism of a fucntion

Returns:
result of the function

Reimplemented in GEP::tfsign< T >, GEP::tfsqrt< T >, GEP::tfsin< T >, GEP::tfcos< T >, GEP::tftan< T >, GEP::tfexp< T >, and GEP::tfln< T >.


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

Generated on Fri Dec 11 22:28:17 2009 for LibGEP by  doxygen 1.6.1