IFEM  90A354
Public Types | Public Member Functions | Protected Member Functions | List of all members
utl::Function< Arg, Result > Class Template Referenceabstract

Base class for unary functions of arbitrary result and argument type. More...

#include <Function.h>

Inheritance diagram for utl::Function< Arg, Result >:
Inheritance graph
[legend]

Public Types

typedef Arg Input
 Input type.
 
typedef Result Output
 Output type.
 

Public Member Functions

virtual ~Function ()
 Empty destructor.
 
virtual bool isZero () const
 Returns whether the function is identically zero or not.
 
virtual bool isConstant () const
 Returns whether the function is time-independent or not.
 
Result operator() (const Arg &x) const
 Operator returning the function value for the given argument.
 

Protected Member Functions

 Function ()
 The constructor is protected to allow sub-class instances only.
 
virtual Result evaluate (const Arg &x) const =0
 Evaluates the function for the argument x.
 

Detailed Description

template<class Arg, class Result>
class utl::Function< Arg, Result >

Base class for unary functions of arbitrary result and argument type.


The documentation for this class was generated from the following files: