Package: GrAL Base        GrAL: Packages | Concepts | Homepage

GrAL::grid_function< E, T > Class Template Reference
[Grid Functions]

empty template for total grid functions.

This template has to be specialized for concrete types of grid elements E. For example, E = Complex2D::Vertex , E = RegGrid2D::Edge, ... T is a user-selected type More...

#include </home/guntram/tmp/GrAL/gral/base/include/Gral/Base/grid-functions.h>

Inheritance diagram for GrAL::grid_function< E, T >:

Inheritance graph
[legend]

Detailed Description

template<class E, class T>
class GrAL::grid_function< E, T >

empty template for total grid functions.

This template has to be specialized for concrete types of grid elements E. For example, E = Complex2D::Vertex , E = RegGrid2D::Edge, ... T is a user-selected type

A grid_function<E,T> represents a mapping $ E \mapsto T $

Functionality:

Example:

 grid_function<Vertex,int> vnum(G.NumOfVertices());
 for(vit = G.FirstVertex(), i = 0; ! vit.IsDone(); ++i, ++vit)
    vnum[*vit] = i;
  ....
  A(vnum(V),vnum(W)) = a(Phi(V),Phi(W)); 

See also:
TotalGridFunction concept.

Grid Functions module

Definition at line 55 of file grid-functions.h.


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

©  Guntram Berti 1997-2009. See the GrAL Homepage for up-to-date information.

Generated on Tue Mar 31 19:11:41 2009 for GrAL Base by doxygen 1.5.8