Dune Core Modules (2.5.0)
basearray.hh
Go to the documentation of this file.
Facade class for stl conformant bidirectional iterators.
Definition: iteratorfacades.hh:275
Base class for stl conformant forward iterators.
Definition: iteratorfacades.hh:433
bool equals(const RealIterator< const ValueType > &other) const
equality
Definition: basearray.hh:122
size_type index() const
return index
Definition: basearray.hh:109
RealIterator()
constructor
Definition: basearray.hh:97
std::remove_const< T >::type ValueType
The unqualified value type.
Definition: basearray.hh:89
bool equals(const RealIterator< ValueType > &other) const
equality
Definition: basearray.hh:115
A simple array container for objects of type B.
Definition: basearray.hh:47
RealIterator< B > iterator
iterator type for sequential access
Definition: basearray.hh:168
const_iterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: basearray.hh:233
const_iterator begin() const
begin const_iterator
Definition: basearray.hh:207
A allocator_type
export the allocator type
Definition: basearray.hh:56
B & operator[](size_type i)
random access to blocks
Definition: basearray.hh:65
RealIterator< const B > const_iterator
iterator class for sequential access
Definition: basearray.hh:204
B member_type
export the type representing the components
Definition: basearray.hh:53
base_array_unmanaged()
makes empty array
Definition: basearray.hh:249
size_type size() const
number of blocks in the array (are of size 1 here)
Definition: basearray.hh:242
const_iterator beforeBegin() const
Definition: basearray.hh:227
base_array_unmanaged(size_type n_, B *p_)
make an initialized array
Definition: basearray.hh:253
iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: basearray.hh:198
const_iterator end() const
end const_iterator
Definition: basearray.hh:213
A::size_type size_type
the type for the index access
Definition: basearray.hh:59
Extend base_array_unmanaged by functions to manipulate.
Definition: basearray.hh:279
void advance(difference_type newsize)
advance pointer by newsize elements and then set size to new size
Definition: basearray.hh:324
base_array_unmanaged< B, A >::iterator iterator
make iterators available as types
Definition: basearray.hh:291
base_array_unmanaged< B, A >::size_type size_type
The type used for the index access.
Definition: basearray.hh:297
void move(difference_type offset, size_type newsize)
increment pointer by offset and set size
Definition: basearray.hh:331
A::difference_type difference_type
The type used for the difference between two iterator positions.
Definition: basearray.hh:300
B member_type
export the type representing the components
Definition: basearray.hh:285
base_array_window()
makes empty array
Definition: basearray.hh:305
base_array_unmanaged< B, A >::const_iterator const_iterator
make iterators available as types
Definition: basearray.hh:294
void move(difference_type offset)
increment pointer by offset, leave size
Definition: basearray.hh:338
base_array_window(B *_p, size_type _n)
make array from given pointer and size
Definition: basearray.hh:310
A allocator_type
export the allocator type
Definition: basearray.hh:288
void set(size_type _n, B *_p)
set pointer and length
Definition: basearray.hh:317
This container extends base_array_unmanaged by memory management with the usual copy semantics provid...
Definition: basearray.hh:370
base_array_unmanaged< B, A >::const_iterator const_iterator
make iterators available as types
Definition: basearray.hh:385
base_array & operator=(const base_array &a)
assignment
Definition: basearray.hh:467
base_array(const base_array &a)
copy constructor
Definition: basearray.hh:415
B member_type
export the type representing the components
Definition: basearray.hh:376
base_array_unmanaged< B, A >::iterator iterator
make iterators available as types
Definition: basearray.hh:382
void resize(size_type _n)
reallocate array to given size, any data is lost
Definition: basearray.hh:445
A allocator_type
export the allocator type
Definition: basearray.hh:379
base_array_unmanaged< B, A >::size_type size_type
The type used for the index access.
Definition: basearray.hh:388
base_array(size_type _n)
make array with _n components
Definition: basearray.hh:401
A::difference_type difference_type
The type used for the difference between two iterator positions.
Definition: basearray.hh:391
iterator class for sequential access
Definition: basearray.hh:565
RealIterator(const RealIterator< ValueType > &it)
Copy constructor from mutable iterator.
Definition: basearray.hh:588
bool equals(const RealIterator< ValueType > &it) const
equality
Definition: basearray.hh:594
RealIterator()
constructor
Definition: basearray.hh:576
RealIterator(B *_p, size_type *_j, size_type _i)
constructor
Definition: basearray.hh:581
bool equals(const RealIterator< const ValueType > &it) const
equality
Definition: basearray.hh:601
size_type offset() const
offset from the first entry.
Definition: basearray.hh:627
void setindex(size_type k)
Set index corresponding to pointer.
Definition: basearray.hh:615
std::remove_const< T >::type ValueType
The unqualified value type.
Definition: basearray.hh:568
size_type index() const
return index corresponding to pointer
Definition: basearray.hh:609
A simple array container with non-consecutive index set.
Definition: basearray.hh:527
const_iterator beforeBegin() const
Definition: basearray.hh:718
const_iterator end() const
end const_iterator
Definition: basearray.hh:704
RealIterator< const B > const_iterator
const_iterator class for sequential access
Definition: basearray.hh:695
RealIterator< B > iterator
The iterator type.
Definition: basearray.hh:657
A::size_type size_type
The type used for the index access.
Definition: basearray.hh:539
iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: basearray.hh:686
iterator beforeBegin()
Definition: basearray.hh:680
B member_type
export the type representing the components
Definition: basearray.hh:533
compressed_base_array_unmanaged()
makes empty array
Definition: basearray.hh:742
B & operator[](size_type i)
random access to blocks, assumes ascending ordering
Definition: basearray.hh:544
size_type size() const
number of blocks in the array (are of size 1 here)
Definition: basearray.hh:735
const_iterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: basearray.hh:724
A allocator_type
export the allocator type
Definition: basearray.hh:536
iterator begin()
begin iterator
Definition: basearray.hh:660
const_iterator beforeEnd() const
Definition: basearray.hh:711
const_iterator begin() const
begin const_iterator
Definition: basearray.hh:698
constexpr decltype(auto) elementAt(Container &&c, Index &&i)
Get element at given position from container.
Definition: hybridutilities.hh:138
This file implements iterator facade classes for writing stl conformant iterators.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 23, 23:29, 2024)