Prev Up
Go backward to grid_function_hash<E,T> Type
Go up to Grid functions

partial_grid_function_<E,T> Type

Declaration
template<class E, class T>
class partial_grid_function;
Description
The class template partial_grid_function is an implementation of the Partial Grid Function concept. It works for any element type, provided there is a specialization of the hash template for this type defined.
Model of
Partial Grid Function
Definition
Defined in partial-grid-function-hash.h
Template parameters
Parameter Description Default
E the element type  
T the value type  
Type requirements
E must be a model of Grid Element.
The hash template must be specialized for E.
T must be a model of STL Assignable.
Public base classes
grid_function_hash_base<E,T>, defined in grid-function-hash.h.
Members
New members
Example
 a_grid_type g;
 
 typedef grid_types<a_grid_type> gt;
 grid_function_vector<gt::Edge, double> length(g);
 for(gt::EdgeIterator e(g); ! e.IsDone(); ++e)
   length[*e] = distance(geom.coord((*e).V1()),
                         geom.coord((*e).V2()));
Known uses
Used for implementation of total grid functions for Complex2D::Edge.
Notes
See also
grid-function-vector   grid-function-hash
Guntram Berti

Prev Up