ROSE 0.11.145.192
Public Member Functions | List of all members
Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator Class Reference

Description

template<class T, class Alloc = DefaultAllocator>
class Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator

List const value bidirectional iterator.

This iterator traverse the elements of the list in the order they are stored in the list and returns a reference to the user-defined const value when dereferenced. If one wants to traverse elements in the order of the ID numbers instead, just use a "for" loop to iterate from zero to the number of items in the list and make use of the constant-time lookup-by-ID feature.

Iterators are stable across insertion and erasure. In other words, an iterator is guaranteed to not become invalid when other elements are added to or removed from the container. Added elements will become part of any existing iterator traversals when they are inserted between that iterator's current and ending position.

Definition at line 285 of file IndexedList.h.

#include <Sawyer/IndexedList.h>

Inheritance diagram for Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator:
Collaboration graph
[legend]

Public Member Functions

 ConstValueIterator (const ConstValueIterator &other)
 
 ConstValueIterator (const NodeIterator &other)
 
 ConstValueIterator (const ConstNodeIterator &other)
 
 ConstValueIterator (const ValueIterator &other)
 
ConstValueIteratoroperator= (const ConstValueIterator &other)
 
const Valueoperator* () const
 
const Valueoperator-> () const
 

Constructor & Destructor Documentation

◆ ConstValueIterator() [1/5]

template<class T , class Alloc = DefaultAllocator>
Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::ConstValueIterator ( )
inline

Definition at line 288 of file IndexedList.h.

◆ ConstValueIterator() [2/5]

template<class T , class Alloc = DefaultAllocator>
Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::ConstValueIterator ( const ConstValueIterator other)
inline

Definition at line 289 of file IndexedList.h.

◆ ConstValueIterator() [3/5]

template<class T , class Alloc = DefaultAllocator>
Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::ConstValueIterator ( const NodeIterator other)
inline

Definition at line 290 of file IndexedList.h.

◆ ConstValueIterator() [4/5]

template<class T , class Alloc = DefaultAllocator>
Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::ConstValueIterator ( const ConstNodeIterator other)
inline

Definition at line 291 of file IndexedList.h.

◆ ConstValueIterator() [5/5]

template<class T , class Alloc = DefaultAllocator>
Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::ConstValueIterator ( const ValueIterator other)
inline

Definition at line 292 of file IndexedList.h.

Member Function Documentation

◆ operator=()

template<class T , class Alloc = DefaultAllocator>
ConstValueIterator & Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::operator= ( const ConstValueIterator other)
inline

Definition at line 293 of file IndexedList.h.

◆ operator*()

template<class T , class Alloc = DefaultAllocator>
const Value & Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::operator* ( ) const
inline

Definition at line 294 of file IndexedList.h.

◆ operator->()

template<class T , class Alloc = DefaultAllocator>
const Value * Sawyer::Container::IndexedList< T, Alloc >::ConstValueIterator::operator-> ( ) const
inline

Definition at line 295 of file IndexedList.h.


The documentation for this class was generated from the following file: