7#ifndef DUNE_FUNCTIONS_COMMON_DENSEVECTORVIEW_HH
8#define DUNE_FUNCTIONS_COMMON_DENSEVECTORVIEW_HH
15namespace Dune::Functions::Impl {
22 :
public DenseVector<DenseVectorView<R>>
26 using mutable_reference =
typename std::decay_t<R>::reference;
31 using size_type =
typename std::decay_t<R>::size_type;
34 using value_type =
typename std::decay_t<R>::value_type;
37 using const_reference =
typename std::decay_t<R>::const_reference;
40 using reference = std::conditional_t<std::is_const_v<R>,
45 DenseVectorView (R& data)
50 DenseVectorView (
const DenseVectorView &other) =
delete;
53 DenseVectorView (DenseVectorView &&other) :
58 DenseVectorView& operator= (
const DenseVectorView& other)
66 DenseVectorView& operator= (
const DenseVectorView<RR>& other)
79 reference operator[] (size_type i)
85 const_reference operator[] (size_type i)
const
97 struct DenseMatVecTraits<
Dune::Functions::Impl::DenseVectorView<R> >
99 using derived_type = Dune::Functions::Impl::DenseVectorView<R>;
100 using value_type =
typename R::value_type;
101 using size_type =
typename R::size_type;
105 struct FieldTraits<
Dune::Functions::Impl::DenseVectorView<R> >
106 :
public FieldTraits<std::remove_const_t<typename Dune::Functions::Impl::DenseVectorView<R>::value_type>>
Traits::value_type value_type
export the type representing the field
Definition: densevector.hh:250
Traits::size_type size_type
The type used for the index access and size operation.
Definition: densevector.hh:259
Implements the dense vector interface, with an exchangeable storage class.
Dune namespace.
Definition: alignedallocator.hh:13
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75