DOFVectorBase.hpp 478 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

namespace AMDiS
{
  template <class GlobalBasisType>
  class DOFVectorBase
  {
  public:
    using GlobalBasis = GlobalBasisType;
    using SizeType = std::size_t;

    DOFVectorBase(GlobalBasisType const& basis)
      : basis_(basis)
    {}

    SizeType size() const
    {
      return basis_.dimension();
    }

    GlobalBasis const& basis() const
    {
      return GlobalBasis;
    }

  private:
    GlobalBasis const& basis_;
  };

} // end namespace AMDiS