Package: GrAL Base        GrAL: Packages | Concepts | Homepage

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

Implements a total grid_function on hash-basis.

Model of TotalGridFunction. More...

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

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

Inheritance graph
[legend]
Collaboration diagram for GrAL::grid_function_hash< E, T >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef
total_grid_function_category 
category
typedef element_traits< E > et1
typedef et1::ElementIterator ElementIterator
typedef base_gf::grid_type grid_type
typedef base_gf::reference reference
typedef base_gf::const_reference const_reference

Public Member Functions

 grid_function_hash (const grid_type &gg)
 grid_function_hash (const grid_type &gg, const T &t)
 grid_function_hash (ref_ptr< grid_type const > gg)
 grid_function_hash (ref_ptr< grid_type const > gg, const T &t)
ElementIterator FirstElement () const
ElementIterator EndElement () const
void set_value (T const &t)
void init (ref_ptr< grid_type const > gg, const T &t)
void init (const grid_type &gg, const T &t)
const_reference operator() (const E &e) const
 Read-only access.
reference operator[] (const E &e)
 Write access.


Detailed Description

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

Implements a total grid_function on hash-basis.

Model of TotalGridFunction.

See also:
Grid Functions module
Todo:
Iteration does not work when a grid function is constructed using only the grid (gives an empty sequence instead a full sequence of undefined values).

Definition at line 184 of file grid-function-hash.h.


Member Function Documentation

template<class E, class T>
void GrAL::grid_function_hash< E, T >::set_value ( T const &  t  )  [inline]

Set all value to t.

Definition at line 222 of file grid-function-hash.h.

template<class E, class T>
reference GrAL::grid_function_hash< E, T >::operator[] ( const E &  e  )  [inline]

Write access.

Note:
: if !defined(e), a new entry is created! Use operator() for read-only access.

Definition at line 251 of file grid-function-hash.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:08 2009 for GrAL Base by doxygen 1.5.8