#include <normfunction.h>
Inheritance diagram for MODEL::NormFunction:
Public Types | |
typedef ScalarFunction<dims, NT> | base |
typedef NT::vf | vf |
Public Methods | |
NormFunction (vf &vfu, bool own=false, numT scale=1.0) | |
NormFunction (const NormFunction &vfu) | |
const NormFunction& | operator= (const NormFunction &vfu) |
virtual | ~NormFunction () |
virtual NormFunction* | clone (void) const |
virtual const numT& | function (numT &fu, const vect &u) |
const vect& | function_value (void) |
Private Attributes | |
bool | owned |
vf* | func |
vect | values |
numT | sc |
Definition at line 29 of file normfunction.h.
|
Contructor which takes a copy
Definition at line 38 of file normfunction.h. Referenced by clone().
|
|
Copy constructor. Design decision: a copy off a Normfunction is NEVER owned (which is sort of logical, as we cannot access the original anymore anyway - no accessor for the moment) Definition at line 44 of file normfunction.h. |
|
Virtual Copy Constructor Reimplemented from MODEL::ScalarFunction. Definition at line 64 of file normfunction.h. |
|
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 from MODEL::ScalarFunction. Definition at line 72 of file normfunction.h. |
|
Return the value of the function during the last call Definition at line 77 of file normfunction.h. |
|
Assignment operator. Actually not sure if this is useful. Same strategy applies as for copy constructor Definition at line 50 of file normfunction.h. |
|
Keeps the result of the last function call, so we do not have to call the function twice to get the values and the norm Definition at line 85 of file normfunction.h. |
More Info? Michael Peeters. Also, check our research website: www.alna.vub.ac.be
Last update: June 2002.