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

MODEL::VFwithBump Class Template Reference

#include <vfwithbump.h>

Inheritance diagram for MODEL::VFwithBump:

Inheritance graph
Collaboration diagram for MODEL::VFwithBump:

Collaboration graph
List of all members.

Public Methods

 VFwithBump (vf &func, bool own=false)
 VFwithBump (vf &func, const vect &position, bool own=false)
 ~VFwithBump ()
void AddBump (const vect &position)
 VFwithBump (const VFwithBump &vfb)
const VFwithBump& operator= (const VFwithBump &vfb)
virtual VFwithBump* clone () const
virtual const vect& function (vect &fu, const vect &u)

Private Attributes

vf* f
bool owned
vector<vect> p

Detailed Description

template<integer dims, typename nelem = number, class NT = NumericTraits<nelem,dims>> class MODEL::VFwithBump

Makes a new vectorfunction, but with an extra hyperbump. The idea: use this to locally remove zero's by dividing them out.

Definition at line 32 of file vfwithbump.h.

Constructor & Destructor Documentation

VFwithBump ( vf & func,
bool own = false ) [inline]

Just create a possibility to add bumps on top of an existing VectorFunction.

Definition at line 37 of file vfwithbump.h.

Referenced by clone().

VFwithBump ( vf & func,
const vect & position,
bool own = false ) [inline]

Create one, with a bump already specified

Definition at line 41 of file vfwithbump.h.

VFwithBump ( const VFwithBump<dims, nelem, NT> & vfb ) [inline]


Definition at line 49 of file vfwithbump.h.

Member Function Documentation

void AddBump ( const vect & position ) [inline]

Adds a bump.

Definition at line 46 of file vfwithbump.h.

Referenced by VFwithBump().

VFwithBump * clone ( void ) const [inline, virtual]

Virtual Copy Constructor

Reimplemented from MODEL::VectorFunction.

Definition at line 55 of file vfwithbump.h.

const vect & function ( vect & fu,
const vect & u ) [inline, 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 from MODEL::VectorFunction.

Definition at line 61 of file vfwithbump.h.

const VFwithBump & operator= ( const VFwithBump<dims, nelem, NT> & vfb ) [inline]


Definition at line 51 of file vfwithbump.h.

Member Data Documentation

vf * f [private]

It would be even better to make it a hyperellipsoid instead of a sphere

Definition at line 95 of file vfwithbump.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 !