#include <nimble.quanta.arrayview.h>
◆ spanarray() [1/4]
◆ spanarray() [2/4]
◆ spanarray() [3/4]
201 : arr{
new T[elem_count]},
203 elem_count{elem_count},
204 section_count{section_count}
205 {
206 }
Definition nimble.quanta.arrayview.h:189
◆ spanarray() [4/4]
template<class T>
template<class int_t>
210 {
213 for (
size_t i = 0;
i < section_count; ++
i) {
217 }
218 }
arrayview_t< T > * end()
Definition nimble.quanta.arrayview.h:236
arrayview_t< T > * begin()
Definition nimble.quanta.arrayview.h:231
arrayview_t< T > * data()
Definition nimble.quanta.arrayview.h:226
size_t size() const
Definition nimble.quanta.arrayview.h:221
◆ begin() [1/2]
232 {
233 return sections.get();
234 }
◆ begin() [2/2]
242 {
243 return sections.get()->as_span_of_const_ptr();
244 }
◆ data()
227 {
228 return sections.get();
229 }
◆ end() [1/2]
237 {
238 return begin() + section_count;
239 }
◆ end() [2/2]
247 {
248 return begin() + section_count;
249 }
◆ operator()() [1/2]
template<class T>
template<class int_t, class int2_t>
◆ operator()() [2/2]
template<class T>
template<class int_t, class int2_t>
272 {
273 sections[0].swap(sections[1], sections[2]);
275 }
◆ operator[]() [1/2]
template<class T>
template<class int_t>
254 {
255 return sections[
index];
256 }
◆ operator[]() [2/2]
template<class T>
template<class int_t>
260 {
261 return sections[
index].as_span_of_const();
262 }
◆ size()
222 {
223 return section_count;
224 }
The documentation for this class was generated from the following file: