Const iterator type for List.
More...
#include <list.hh>
|
|
typedef bool(const_iterator::* | unspecified_bool_type) () const |
| |
template<typename T,
List_member< T > T::* member>
class List< T, member >::const_iterator
Const iterator type for List.
◆ const_iterator() [1/4]
| List< T, member >::const_iterator::const_iterator |
( |
| ) |
|
|
inline |
Construct an invalid iterator.
◆ const_iterator() [2/4]
| List< T, member >::const_iterator::const_iterator |
( |
const T * |
x | ) |
|
|
inline |
Construct an iterator pointing at x.
◆ const_iterator() [3/4]
| List< T, member >::const_iterator::const_iterator |
( |
const List< T, member > * |
list | ) |
|
|
inline |
Construct an end iterator for list.
◆ const_iterator() [4/4]
| List< T, member >::const_iterator::const_iterator |
( |
const T * |
x, |
|
|
const List< T, member > * |
list |
|
) |
| |
|
inline |
Construct an iterator pointing at x in list.
◆ operator unspecified_bool_type()
| List< T, member >::const_iterator::operator unspecified_bool_type |
( |
| ) |
const |
|
inline |
Test if this iterator points to a valid list element.
◆ live()
| bool List< T, member >::const_iterator::live |
( |
| ) |
const |
|
inline |
Test if this iterator points to a valid list element.
◆ get()
| const T * List< T, member >::const_iterator::get |
( |
| ) |
const |
|
inline |
Return the current list element or null.
◆ operator->()
| const T * List< T, member >::const_iterator::operator-> |
( |
| ) |
const |
|
inline |
Return the current list element or null.
◆ operator*()
| const T & List< T, member >::const_iterator::operator* |
( |
| ) |
const |
|
inline |
Return the current list element.
◆ operator++() [1/2]
| void List< T, member >::const_iterator::operator++ |
( |
| ) |
|
|
inline |
Advance this iterator to the next element.
◆ operator++() [2/2]
| void List< T, member >::const_iterator::operator++ |
( |
int |
| ) |
|
|
inline |
Advance this iterator to the next element.
◆ operator--() [1/2]
| void List< T, member >::const_iterator::operator-- |
( |
| ) |
|
|
inline |
Advance this iterator to the previous element.
◆ operator--() [2/2]
| void List< T, member >::const_iterator::operator-- |
( |
int |
| ) |
|
|
inline |
Advance this iterator to the previous element.
◆ operator+=()
Move this iterator forward by x positions.
- Returns
- reference to this iterator
- Note
- This function takes O(abs(x)) time.
◆ operator-=()
Move this iterator backward by x positions.
- Returns
- reference to this iterator
- Note
- This function takes O(abs(x)) time.
◆ operator+()
Return an iterator x positions ahead.
◆ operator-()
Return an iterator x positions behind.
◆ operator==()
Test if this iterator equals x.
◆ operator!=()
Test if this iterator does not equal x.
The documentation for this class was generated from the following file: