dune-vtk 2.12
Loading...
Searching...
No Matches
rangeproxy.hh
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4
5namespace Dune::Vtk::Impl {
6
8template <class Function, class Domain>
9struct RangeProxy
10{
11 using size_type = std::size_t;
12 using value_type = double;
13 using field_type = double;
14
16 size_type size () const
17 {
18 return f_->components().size();
19 }
20
23 value_type operator[] (size_type i) const
24 {
25 return f_->evaluate(i, x_);
26 }
27
28 Function const* f_;
29 Domain x_;
30};
31
32} // end namespace Dune::Vtk::Impl
BCRSMatrix< FieldMatrix< T, n, m >, A >::size_type size_type