dune-fem  2.4.1-rc
referenceblockvector.hh
Go to the documentation of this file.
1 // vim: set expandtab ts=2 sw=2 sts=2:
2 #ifndef DUNE_FEM_REFERENCEBLOCKVECTOR_HH
3 #define DUNE_FEM_REFERENCEBLOCKVECTOR_HH
4 
5 #include <algorithm>
6 #include <cassert>
7 #include <vector>
8 
10 
11 namespace Dune {
12 namespace Fem {
13 
14  // Forward declaration
15  template< typename F, unsigned int BlockSize >
17 
25  template< typename F, unsigned int BlockSize >
26  class ReferenceBlockVector : public MutableBlockVector< std::vector< F >, BlockSize >
27  {
29 
30  public:
31  typedef typename BaseType::SizeType SizeType;
32 
39  explicit ReferenceBlockVector ( SizeType size )
40  : BaseType( size )
41  {
42  }
43 
44  };
45 
46 } // namespace Fem
47 } // namespace Dune
48 
49 #endif // DUNE_FEM_REFERENCEBLOCKVECTOR_HH
BaseType::SizeType SizeType
Definition: referenceblockvector.hh:31
Definition: referenceblockvector.hh:16
SizeType size() const
Returns the number of blocks.
Definition: defaultblockvectors.hh:331
Definition: defaultblockvectors.hh:455
Definition: coordinate.hh:4
This is the reference implementation of a block vector as it is expected as the second template param...
Definition: referenceblockvector.hh:26
ReferenceBlockVector(SizeType size)
Constructor; use this to create a block vector with &#39;size&#39; blocks.
Definition: referenceblockvector.hh:39
BaseType::SizeType SizeType
Definition: defaultblockvectors.hh:467