partial grid function <E,T>  TypeGrid functionsgrid function vector<E,T>  Typegrid_function_hash<E,T> Type

grid_function_hash<E,T> Type

Declaration
template<class E, class T>
class grid_function_hash;
Description

The class template grid_function_function is an implementation of the Total Grid Function concept. It works for any element type for which the hash template has been specialized.

Model of

Total Grid Function

Definition

Defined in 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;
 partial_grid_function<gt::Vertex, int> color(g,black);
 mark_white_vertices(g,colors);
Known uses

Used for implementation of total grid functions for most grids, for example RegGrid2D and total grid function for the element types Vertex and Cell of Complex2D.

These implemenentations rely on the technique of partial specialization.

Notes
See also

partial-grid-function-hash


Guntram Berti


partial grid function <E,T>  TypeGrid functionsgrid function vector<E,T>  Typegrid_function_hash<E,T> Type