StuBS
Queue< T, ContainerType >::Iterator Class Reference

A Queue Iterator. More...

#include <object/queue.h>

Public Member Functions

 Iterator ()
 
 Iterator (Queue< T, ContainerType > *queue)
 
bool operator!= (const Iterator &other)
 
T * operator* ()
 
Iteratoroperator++ ()
 

Private Attributes

T * first
 

Detailed Description

template<typename T, template< typename V > class ContainerType>
class Queue< T, ContainerType >::Iterator

A Queue Iterator.

This class provides an iterator for our Queue implementation. The Iterator class encapsulates the state when iterating over the queue, such as when using C++11 Range Loops. The Queue Iterators are implemented as forward iterators.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<typename T , template< typename V > class ContainerType>
Queue< T, ContainerType >::Iterator::Iterator ( )
inline

◆ Iterator() [2/2]

template<typename T , template< typename V > class ContainerType>
Queue< T, ContainerType >::Iterator::Iterator ( Queue< T, ContainerType > *  queue)
inlineexplicit

Member Function Documentation

◆ operator!=()

template<typename T , template< typename V > class ContainerType>
bool Queue< T, ContainerType >::Iterator::operator!= ( const Iterator other)
inline

◆ operator*()

template<typename T , template< typename V > class ContainerType>
T * Queue< T, ContainerType >::Iterator::operator* ( )
inline

◆ operator++()

template<typename T , template< typename V > class ContainerType>
Iterator & Queue< T, ContainerType >::Iterator::operator++ ( )
inline

Member Data Documentation

◆ first

template<typename T , template< typename V > class ContainerType>
T* Queue< T, ContainerType >::Iterator::first
private

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