ROSE 0.11.145.192
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 <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.
 
 ConstIterator (const Trace &trace)
 Construct iterator pointing to first element of the trace, if any.
 
 ConstIterator (const ConstIterator &other)
 Copy constructor.
 
bool isEnd () const
 Test whether iterator is at the end.
 
size_t position () const
 Position of iterator within trace.
 

Constructor & Destructor Documentation

◆ ConstIterator() [1/3]

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.

◆ ConstIterator() [2/3]

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().

◆ ConstIterator() [3/3]

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

◆ isEnd()

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.

◆ position()

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: