ROSE  0.11.145.0
Public Member Functions | List of all members
Sawyer::Container::Trace< T, IndexTag >::ConstIterator Class Reference

Description

template<class T, class IndexTag = TraceMapIndexTag>
class Sawyer::Container::Trace< T, IndexTag >::ConstIterator

Forward iterator.

This iterator traverses the elements of the trace in the order they were inserted, returning a label at each step.

Definition at line 294 of file Trace.h.

#include <util/Sawyer/Trace.h>

Inheritance diagram for Sawyer::Container::Trace< T, IndexTag >::ConstIterator:
Inheritance graph
[legend]
Collaboration diagram for Sawyer::Container::Trace< T, IndexTag >::ConstIterator:
Collaboration graph
[legend]

Public Member Functions

 ConstIterator ()
 Construct iterator point to end of any trace. More...
 
 ConstIterator (const Trace &trace)
 Construct iterator pointing to first element of the trace, if any. More...
 
 ConstIterator (const ConstIterator &other)
 Copy constructor. More...
 
bool isEnd () const
 Test whether iterator is at the end. More...
 
size_t position () const
 Position of iterator within trace. More...
 

Constructor & Destructor Documentation

template<class T, class IndexTag = TraceMapIndexTag>
Sawyer::Container::Trace< T, IndexTag >::ConstIterator::ConstIterator ( )
inline

Construct iterator point to end of any trace.

Definition at line 303 of file Trace.h.

template<class T, class IndexTag = TraceMapIndexTag>
Sawyer::Container::Trace< T, IndexTag >::ConstIterator::ConstIterator ( const Trace trace)
inlineexplicit

Construct iterator pointing to first element of the trace, if any.

Definition at line 307 of file Trace.h.

References Sawyer::Container::Trace< T, IndexTag >::front(), and Sawyer::Container::Trace< T, IndexTag >::isEmpty().

template<class T, class IndexTag = TraceMapIndexTag>
Sawyer::Container::Trace< T, IndexTag >::ConstIterator::ConstIterator ( const ConstIterator other)
inline

Copy constructor.

Definition at line 314 of file Trace.h.

Member Function Documentation

template<class T, class IndexTag = TraceMapIndexTag>
bool Sawyer::Container::Trace< T, IndexTag >::ConstIterator::isEnd ( ) const
inline

Test whether iterator is at the end.

Definition at line 319 of file Trace.h.

template<class T, class IndexTag = TraceMapIndexTag>
size_t Sawyer::Container::Trace< T, IndexTag >::ConstIterator::position ( ) const
inline

Position of iterator within trace.

The position starts at zero and is incremented each time this iterator is incremented.

Definition at line 326 of file Trace.h.


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