Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MODEL::ScalarFunction Class Template Reference

#include <scalarfunction.h>

Inheritance diagram for MODEL::ScalarFunction:

Inheritance graph
List of all members.

Public Types

typedef NT::number numT
typedef NT::vect vect

Public Methods

 ScalarFunction ()
virtual ~ScalarFunction ()
virtual ScalarFunction* clone () const=0
numT operator() (const vect &u)
virtual const numT& function (numT &fu, const vect &u)=0

Detailed Description

template<integer dims, class NT = NumericTraits<number,dims>> class MODEL::ScalarFunction

Base Class for scalar functions (of dims variables). Override the call() part to implement

Definition at line 30 of file scalarfunction.h.

Member Function Documentation

ScalarFunction * clone ( void ) const [pure virtual]

Virtual Copy Constructor

Reimplemented in MODEL::NormFunction.

const numT & function ( numT & fu,
const vect & u ) [pure virtual]

Implement this function to create the return vector. fu is a reference to where the values should be stored. This is for efficiency in internal routines. Inherited classes should return fu too.

Reimplemented in MODEL::NormFunction.

Referenced by operator()().

numT operator() ( const vect & u ) [inline]

Overloaded operator(), so the object can be presented as a function.

Definition at line 43 of file scalarfunction.h.

The documentation for this class was generated from the following file:
To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website:

Last update: June 2002.

Looking for Open Source? Check out SourceForge Logo !