Go to Overview over all GrAL packages.
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

grid_function_vector Class Template Reference
[Grid Functions]

Implements a grid_function on vector-basis. More...

#include <grid-function-vector.h>

Inheritance diagram for grid_function_vector:

Inheritance graph
[legend]
List of all members.

Public Types

typedef vector< T > table_type
typedef table_type::size_type size_type
typedef element_traits< E > et
typedef E element_type
typedef et::ElementIterator ElementIterator
typedef et::handle_type element_handle
typedef et::grid_type grid_type
typedef E const & argument_type
typedef T const & result_type
typedef grid_function_vector<
E, T > 
gfc2dv
typedef table_type::iterator iter
typedef table_type::const_iterator const_iter
typedef iter iterator
typedef const_iter const_iterator
typedef T value_type

Public Methods

 grid_function_vector ()
 grid_function_vector (const grid_type &gg)
 grid_function_vector (const grid_type &gg, const T &t)
 grid_function_vector (const gfc2dv &rs)
gfc2dv & operator= (const gfc2dv &rs)
void set_grid (const grid_type &gg)
void rebind (const grid_type &gg)
void resize (size_type n)
const grid_type & TheGrid () const
ElementIterator FirstElement () const
const T & operator() (const E &e) const
T & operator[] (const E &e)
const T & operator[] (const E &e) const
const T & operator() (const element_handle &e) const
T & operator[] (const element_handle &e)
unsigned size () const
iter begin ()
iter end ()
const_iter begin () const
const_iter end () const

Protected Attributes

grid_type const * g
table_type table

Detailed Description

template<class E, class T>
class grid_function_vector< E, T >

Implements a grid_function on vector-basis.

This can be used if elements of type E are numbered consecutively.

Example:

  class MyVertex; // vertex_handle is consecutive integer
  
  template<class T>
  class grid_function<MyVertex, T> 
   : public grid_function_vector<MyVertex,T> 
  {
    // repeat constructors
  };

See also:
grid_function_hash , Grid Functions

Definition at line 39 of file grid-function-vector.h.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 16:06:01 2002 for GrAL Base by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000