dune-localfunctions
2.3beta2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
monom
monomlocalcoefficients.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_MONOMLOCALCOEFFICIENTS_HH
4
#define DUNE_MONOMLOCALCOEFFICIENTS_HH
5
6
#include <cstddef>
7
#include <iostream>
8
#include <vector>
9
10
#include "../common/localkey.hh"
11
12
namespace
Dune
13
{
14
21
template
<
int
static_size>
22
class
MonomLocalCoefficients
23
{
24
public
:
26
MonomLocalCoefficients
()
27
: index(static_size,
LocalKey
(0,0,0))
28
{
29
for
(
int
i = 0; i < static_size; ++i)
30
index[i].index(i);
31
}
32
34
std::size_t
size
()
const
35
{
36
return
static_size;
37
}
38
40
const
LocalKey
&
localKey
(std::size_t i)
const
41
{
42
return
index[i];
43
}
44
45
private
:
46
std::vector<LocalKey> index;
47
};
48
49
}
50
#endif //DUNE_MONOMLOCALCOEFFICIENTS_HH
Generated on Mon Feb 10 2014 21:19:24 for dune-localfunctions by
1.8.1.2