3 #ifndef DUNE_PDELAB_BACKEND_COMMON_UNCACHEDVECTORVIEW_HH
4 #define DUNE_PDELAB_BACKEND_COMMON_UNCACHEDVECTORVIEW_HH
6 #include <dune/common/typetraits.hh>
7 #include <dune/common/deprecated.hh>
14 template<
typename V,
typename LFSC>
47 void bind(
const LFSCache& lfs_cache)
58 return cache().size();
62 void read(LC& local_container)
const
64 for (size_type i = 0; i <
size(); ++i)
70 template<
typename ChildLFS,
typename LC>
71 void read(
const ChildLFS& child_lfs, LC& local_container)
const
73 for (size_type i = 0; i < child_lfs.size(); ++i)
75 const size_type local_index = child_lfs.localIndex(i);
80 template<
typename ChildLFS,
typename LC>
83 for (size_type i = 0; i < child_lfs.size(); ++i)
85 const size_type local_index = child_lfs.localIndex(i);
103 const ElementType&
operator[](
const ContainerIndex& ci)
const
127 template<
typename V,
typename LFSC>
154 template<
typename LC>
155 void write(
const LC& local_container)
157 for (size_type i = 0; i <
size(); ++i)
163 template<
typename LC>
164 void add(
const LC& local_container)
166 for (size_type i = 0; i <
size(); ++i)
174 template<
typename ChildLFS,
typename LC>
175 void write(
const ChildLFS& child_lfs,
const LC& local_container)
177 for (size_type i = 0; i < child_lfs.size(); ++i)
179 const size_type local_index = child_lfs.localIndex(i);
184 template<
typename ChildLFS,
typename LC>
185 void add(
const ChildLFS& child_lfs,
const LC& local_container)
187 for (size_type i = 0; i < child_lfs.size(); ++i)
189 const size_type local_index = child_lfs.localIndex(i);
197 template<
typename ChildLFS,
typename LC>
200 for (size_type i = 0; i < child_lfs.size(); ++i)
202 const size_type local_index = child_lfs.localIndex(i);
207 template<
typename ChildLFS,
typename LC>
210 for (size_type i = 0; i < child_lfs.size(); ++i)
212 const size_type local_index = child_lfs.localIndex(i);
251 #endif // DUNE_PDELAB_BACKEND_COMMON_UNCACHEDVECTORVIEW_HH
void unbind()
Definition: uncachedvectorview.hh:52
UncachedVectorView()
Definition: uncachedvectorview.hh:147
UncachedVectorView(Container &container)
Definition: uncachedvectorview.hh:150
Container::size_type size_type
Definition: uncachedvectorview.hh:134
const ElementType & operator[](const ContainerIndex &ci) const
Definition: uncachedvectorview.hh:103
void write_sub_container(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:198
void read(LC &local_container) const
Definition: uncachedvectorview.hh:62
LFSCache::DOFIndex DOFIndex
Definition: uncachedvectorview.hh:137
void commit()
Definition: uncachedvectorview.hh:217
const ElementType & operator[](const DOFIndex &di) const
Definition: uncachedvectorview.hh:97
void add(const LC &local_container)
Definition: uncachedvectorview.hh:164
Container & container()
Definition: uncachedvectorview.hh:240
ElementType & operator[](size_type i)
Definition: uncachedvectorview.hh:222
LFSCache::DOFIndex DOFIndex
Definition: uncachedvectorview.hh:23
ConstUncachedVectorView()
Definition: uncachedvectorview.hh:27
LFSCache::ContainerIndex ContainerIndex
Definition: uncachedvectorview.hh:24
Container::size_type size_type
Definition: uncachedvectorview.hh:22
const ElementType & operator[](size_type i) const
Definition: uncachedvectorview.hh:91
Definition: uncachedvectorview.hh:15
size_type size() const
Definition: uncachedvectorview.hh:56
void bind(const LFSCache &lfs_cache)
Definition: uncachedvectorview.hh:47
void read(const ChildLFS &child_lfs, LC &local_container) const
Definition: uncachedvectorview.hh:71
V * _container
Definition: uncachedvectorview.hh:121
C & accessBaseContainer(C &c)
Definition: localvector.hh:296
void add_sub_container(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:208
remove_const< V >::type Container
Definition: uncachedvectorview.hh:18
V Container
Definition: uncachedvectorview.hh:132
LFSCache::ContainerIndex ContainerIndex
Definition: uncachedvectorview.hh:138
const LFSCache * _lfs_cache
Definition: uncachedvectorview.hh:122
Container::ElementType ElementType
Definition: uncachedvectorview.hh:133
void add(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:185
ElementType & operator[](const ContainerIndex &ci)
Definition: uncachedvectorview.hh:234
Definition: adaptivity.hh:27
const Container & container() const
Definition: uncachedvectorview.hh:109
LFSC LFSCache
Definition: uncachedvectorview.hh:136
ElementType & operator[](const DOFIndex &di)
Definition: uncachedvectorview.hh:228
ConstUncachedVectorView(V &container)
Definition: uncachedvectorview.hh:32
const LFSCache & cache() const
Definition: uncachedvectorview.hh:114
void read_sub_container(const ChildLFS &child_lfs, LC &local_container) const
Definition: uncachedvectorview.hh:81
void write(const LC &local_container)
Definition: uncachedvectorview.hh:155
void detach()
Definition: uncachedvectorview.hh:42
Definition: uncachedvectorview.hh:128
void attach(V &container)
Definition: uncachedvectorview.hh:37
void write(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:175
LFSC LFSCache
Definition: uncachedvectorview.hh:19
Container::E ElementType
Definition: uncachedvectorview.hh:21