Dune Core Modules (2.4.2)
basearray.hh
Go to the documentation of this file.
Facade class for stl conformant bidirectional iterators.
Definition: iteratorfacades.hh:272
Base class for stl conformant forward iterators.
Definition: iteratorfacades.hh:430
bool equals(const RealIterator< const ValueType > &other) const
equality
Definition: basearray.hh:116
size_type index() const
return index
Definition: basearray.hh:103
RealIterator()
constructor
Definition: basearray.hh:91
remove_const< T >::type ValueType
The unqualified value type.
Definition: basearray.hh:83
bool equals(const RealIterator< ValueType > &other) const
equality
Definition: basearray.hh:109
A simple array container for objects of type B.
Definition: basearray.hh:41
RealIterator< B > iterator
iterator type for sequential access
Definition: basearray.hh:156
const_iterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: basearray.hh:224
const_iterator begin() const
begin const_iterator
Definition: basearray.hh:198
A allocator_type
export the allocator type
Definition: basearray.hh:50
B & operator[](size_type i)
random access to blocks
Definition: basearray.hh:59
RealIterator< const B > const_iterator
iterator class for sequential access
Definition: basearray.hh:195
B member_type
export the type representing the components
Definition: basearray.hh:47
base_array_unmanaged()
makes empty array
Definition: basearray.hh:243
size_type size() const
number of blocks in the array (are of size 1 here)
Definition: basearray.hh:236
const_iterator beforeBegin() const
Definition: basearray.hh:218
base_array_unmanaged(size_type n_, B *p_)
make an initialized array
Definition: basearray.hh:247
iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: basearray.hh:186
const_iterator end() const
end const_iterator
Definition: basearray.hh:204
A::size_type size_type
the type for the index access
Definition: basearray.hh:53
Extend base_array_unmanaged by functions to manipulate.
Definition: basearray.hh:272
void advance(difference_type newsize)
advance pointer by newsize elements and then set size to new size
Definition: basearray.hh:317
base_array_unmanaged< B, A >::iterator iterator
make iterators available as types
Definition: basearray.hh:284
base_array_unmanaged< B, A >::size_type size_type
The type used for the index access.
Definition: basearray.hh:290
void move(difference_type offset, size_type newsize)
increment pointer by offset and set size
Definition: basearray.hh:324
A::difference_type difference_type
The type used for the difference between two iterator positions.
Definition: basearray.hh:293
B member_type
export the type representing the components
Definition: basearray.hh:278
base_array_window()
makes empty array
Definition: basearray.hh:298
base_array_unmanaged< B, A >::const_iterator const_iterator
make iterators available as types
Definition: basearray.hh:287
void move(difference_type offset)
increment pointer by offset, leave size
Definition: basearray.hh:331
base_array_window(B *_p, size_type _n)
make array from given pointer and size
Definition: basearray.hh:303
A allocator_type
export the allocator type
Definition: basearray.hh:281
void set(size_type _n, B *_p)
set pointer and length
Definition: basearray.hh:310
This container extends base_array_unmanaged by memory management with the usual copy semantics provid...
Definition: basearray.hh:362
base_array_unmanaged< B, A >::const_iterator const_iterator
make iterators available as types
Definition: basearray.hh:377
base_array & operator=(const base_array &a)
assignment
Definition: basearray.hh:480
base_array(const base_array &a)
copy constructor
Definition: basearray.hh:407
B member_type
export the type representing the components
Definition: basearray.hh:368
base_array_unmanaged< B, A >::iterator iterator
make iterators available as types
Definition: basearray.hh:374
void resize(size_type _n)
reallocate array to given size, any data is lost
Definition: basearray.hh:458
A allocator_type
export the allocator type
Definition: basearray.hh:371
base_array_unmanaged< B, A >::size_type size_type
The type used for the index access.
Definition: basearray.hh:380
base_array(size_type _n)
make array with _n components
Definition: basearray.hh:393
base_array(const base_array_unmanaged< B, A > &_a)
construct from base class object
Definition: basearray.hh:426
A::difference_type difference_type
The type used for the difference between two iterator positions.
Definition: basearray.hh:383
iterator class for sequential access
Definition: basearray.hh:582
RealIterator(const RealIterator< ValueType > &it)
Copy constructor from mutable iterator.
Definition: basearray.hh:605
bool equals(const RealIterator< ValueType > &it) const
equality
Definition: basearray.hh:611
RealIterator()
constructor
Definition: basearray.hh:593
remove_const< T >::type ValueType
The unqualified value type.
Definition: basearray.hh:585
RealIterator(B *_p, size_type *_j, size_type _i)
constructor
Definition: basearray.hh:598
bool equals(const RealIterator< const ValueType > &it) const
equality
Definition: basearray.hh:618
size_type offset() const
offset from the first entry.
Definition: basearray.hh:644
void setindex(size_type k)
Set index corresponding to pointer.
Definition: basearray.hh:632
size_type index() const
return index corresponding to pointer
Definition: basearray.hh:626
A simple array container with non-consecutive index set.
Definition: basearray.hh:544
const_iterator beforeBegin() const
Definition: basearray.hh:735
const_iterator end() const
end const_iterator
Definition: basearray.hh:721
RealIterator< const B > const_iterator
const_iterator class for sequential access
Definition: basearray.hh:712
RealIterator< B > iterator
The iterator type.
Definition: basearray.hh:674
A::size_type size_type
The type used for the index access.
Definition: basearray.hh:556
iterator find(size_type i)
random access returning iterator (end if not contained)
Definition: basearray.hh:703
iterator beforeBegin()
Definition: basearray.hh:697
B member_type
export the type representing the components
Definition: basearray.hh:550
compressed_base_array_unmanaged()
makes empty array
Definition: basearray.hh:759
B & operator[](size_type i)
random access to blocks, assumes ascending ordering
Definition: basearray.hh:561
size_type size() const
number of blocks in the array (are of size 1 here)
Definition: basearray.hh:752
const_iterator find(size_type i) const
random access returning iterator (end if not contained)
Definition: basearray.hh:741
A allocator_type
export the allocator type
Definition: basearray.hh:553
iterator begin()
begin iterator
Definition: basearray.hh:677
const_iterator beforeEnd() const
Definition: basearray.hh:728
const_iterator begin() const
begin const_iterator
Definition: basearray.hh:715
This file implements iterator facade classes for writing stl conformant iterators.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 21, 23:30, 2024)