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>
18 typedef typename std::remove_const<V>::type
Container;
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 V Container
Definition: uncachedvectorview.hh:132
void write(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:175
std::remove_const< V >::type Container
Definition: uncachedvectorview.hh:18
void write_sub_container(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:198
ElementType & operator[](const DOFIndex &di)
Definition: uncachedvectorview.hh:228
Container::size_type size_type
Definition: uncachedvectorview.hh:134
void read(const ChildLFS &child_lfs, LC &local_container) const
Definition: uncachedvectorview.hh:71
Definition: uncachedvectorview.hh:128
const LFSCache * _lfs_cache
Definition: uncachedvectorview.hh:122
void add(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:185
const Container & container() const
Definition: uncachedvectorview.hh:109
const ElementType & operator[](size_type i) const
Definition: uncachedvectorview.hh:91
LFSCache::DOFIndex DOFIndex
Definition: uncachedvectorview.hh:137
Container::ElementType ElementType
Definition: uncachedvectorview.hh:133
void detach()
Definition: uncachedvectorview.hh:42
LFSCache::ContainerIndex ContainerIndex
Definition: uncachedvectorview.hh:24
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
LFSCache::ContainerIndex ContainerIndex
Definition: uncachedvectorview.hh:138
UncachedVectorView(Container &container)
Definition: uncachedvectorview.hh:150
LFSCache::DOFIndex DOFIndex
Definition: uncachedvectorview.hh:23
void read(LC &local_container) const
Definition: uncachedvectorview.hh:62
ConstUncachedVectorView(V &container)
Definition: uncachedvectorview.hh:32
void write(const LC &local_container)
Definition: uncachedvectorview.hh:155
ElementType & operator[](size_type i)
Definition: uncachedvectorview.hh:222
void add_sub_container(const ChildLFS &child_lfs, const LC &local_container)
Definition: uncachedvectorview.hh:208
ElementType & operator[](const ContainerIndex &ci)
Definition: uncachedvectorview.hh:234
void bind(const LFSCache &lfs_cache)
Definition: uncachedvectorview.hh:47
Container::size_type size_type
Definition: uncachedvectorview.hh:22
Definition: uncachedvectorview.hh:15
const ElementType & operator[](const ContainerIndex &ci) const
Definition: uncachedvectorview.hh:103
UncachedVectorView()
Definition: uncachedvectorview.hh:147
const ElementType & operator[](const DOFIndex &di) const
Definition: uncachedvectorview.hh:97
void attach(V &container)
Definition: uncachedvectorview.hh:37
V * _container
Definition: uncachedvectorview.hh:121
void commit()
Definition: uncachedvectorview.hh:217
void unbind()
Definition: uncachedvectorview.hh:52
LFSC LFSCache
Definition: uncachedvectorview.hh:136
const LFSCache & cache() const
Definition: uncachedvectorview.hh:114
void add(const LC &local_container)
Definition: uncachedvectorview.hh:164
Container & container()
Definition: uncachedvectorview.hh:240
void read_sub_container(const ChildLFS &child_lfs, LC &local_container) const
Definition: uncachedvectorview.hh:81
C & accessBaseContainer(C &c)
Definition: localvector.hh:296
ConstUncachedVectorView()
Definition: uncachedvectorview.hh:27
size_type size() const
Definition: uncachedvectorview.hh:56
Container::E ElementType
Definition: uncachedvectorview.hh:21
LFSC LFSCache
Definition: uncachedvectorview.hh:19