ROSE  0.11.96.11
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 <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. More...
 

Member Function Documentation

◆ 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: