Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | List of all members
FunctionMap< dim > Struct Template Reference

#include <function_map.h>

Public Types

typedef std::map
< types::boundary_id, const
Function< dim > * > 
type
 

Detailed Description

template<int dim>
struct FunctionMap< dim >

Declare a data type which denotes a mapping between a boundary indicator and the function denoting the boundary values on this part of the boundary. This type is required in many functions where depending on the boundary indicator, different functions are used. An example is boundary value interpolation.

It seems odd at first to declare this typedef inside a class, rather than declaring a typedef at global scope. The reason is that C++ does not allow to define templated typedefs, where here in fact we want a typdef that depends on the space dimension.

Author
Wolfgang Bangerth, Ralf Hartmann, 2001

Definition at line 36 of file vector_tools.h.

Member Typedef Documentation

template<int dim>
typedef std::map<types::boundary_id, const Function<dim>*> FunctionMap< dim >::type

Declare the type as discussed above. Since we can't name it FunctionMap (as that would ambiguate a possible constructor of this class), name it in the fashion of the STL local typedefs.

Definition at line 56 of file function_map.h.


The documentation for this struct was generated from the following files: