DUNE-FEM (unstable)

referenceblockvector.hh
1#ifndef DUNE_FEM_REFERENCEBLOCKVECTOR_HH
2#define DUNE_FEM_REFERENCEBLOCKVECTOR_HH
3
4#include <vector>
5
6#include <dune/fem/function/blockvectors/defaultblockvectors.hh>
7
8namespace Dune {
9namespace Fem {
10
18 template< typename F, unsigned int BlockSize >
19 class ReferenceBlockVector : public MutableBlockVector< std::vector< F >, BlockSize >
20 {
21 typedef MutableBlockVector< std::vector< F >, BlockSize > BaseType;
22
23 public:
24 typedef typename BaseType::SizeType SizeType;
25
33 : BaseType( size )
34 {}
35
36 };
37
38} // namespace Fem
39} // namespace Dune
40
41#endif // DUNE_FEM_REFERENCEBLOCKVECTOR_HH
This is the reference implementation of a block vector as it is expected as the second template param...
Definition: referenceblockvector.hh:20
ReferenceBlockVector(SizeType size)
Constructor; use this to create a block vector with 'size' blocks.
Definition: referenceblockvector.hh:32
ArrayType::size_type SizeType
Used for indexing the blocks, for example.
Definition: defaultblockvectors.hh:234
SizeType size() const
Number of blocks.
Definition: defaultblockvectors.hh:340
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 27, 22:29, 2024)