MADARA  3.2.3
madara::utility::LQueueConstIterator< T > Class Template Reference

Implements a forward iterator for LQueue type classes. More...

#include <LQueue.h>

Public Types

typedef int difference_type
 
typedef ::std::forward_iterator_tag iterator_category
 
typedef T * pointer
 
typedef T & reference
 
typedef T value_type
 

Public Member Functions

 LQueueConstIterator (const LQueue< T > &queue, size_t pos=0)
 Construct an LQueueIterator at position pos. More...
 
 LQueueConstIterator (const LQueue< T > &queue, LQueueNode< T > *pos)
 Construct an LQueueIterator at node pos. More...
 
bool operator!= (const LQueueConstIterator< T > &lhs) const
 Nonequality operator. More...
 
const T & operator* (void) const
 Dereference operator returns a const reference to the item contained at the current position. More...
 
const LQueueConstIterator< T > & operator++ (void) const
 Preincrement operator. More...
 
LQueueConstIterator< T > operator++ (int) const
 Postincrement operator. More...
 
bool operator== (const LQueueConstIterator< T > &rhs) const
 Equality operator. More...
 

Private Attributes

LQueueNode< T > * pos_
 
const LQueue< T > & queue_
 the queue we are dealing with More...
 

Detailed Description

template<typename T>
class madara::utility::LQueueConstIterator< T >

Implements a forward iterator for LQueue type classes.

Note: Having a const ExpressionTreeIterator does not guarantee that the current position that it points to will not change, it only guarantees that you cannot change the underlying queue!

Definition at line 22 of file LQueue.h.

Member Typedef Documentation

template<typename T>
typedef int madara::utility::LQueueConstIterator< T >::difference_type

Definition at line 237 of file LQueue.h.

template<typename T>
typedef ::std::forward_iterator_tag madara::utility::LQueueConstIterator< T >::iterator_category

Definition at line 233 of file LQueue.h.

template<typename T>
typedef T* madara::utility::LQueueConstIterator< T >::pointer

Definition at line 235 of file LQueue.h.

template<typename T>
typedef T& madara::utility::LQueueConstIterator< T >::reference

Definition at line 236 of file LQueue.h.

template<typename T>
typedef T madara::utility::LQueueConstIterator< T >::value_type

Definition at line 234 of file LQueue.h.

Constructor & Destructor Documentation

template<typename T >
madara::utility::LQueueConstIterator< T >::LQueueConstIterator ( const LQueue< T > &  queue,
size_t  pos = 0 
)

Construct an LQueueIterator at position pos.

Definition at line 578 of file LQueue.cpp.

template<typename T >
madara::utility::LQueueConstIterator< T >::LQueueConstIterator ( const LQueue< T > &  queue,
LQueueNode< T > *  pos 
)

Construct an LQueueIterator at node pos.

Definition at line 595 of file LQueue.cpp.

Member Function Documentation

template<typename T >
bool madara::utility::LQueueConstIterator< T >::operator!= ( const LQueueConstIterator< T > &  lhs) const

Nonequality operator.

Definition at line 571 of file LQueue.cpp.

template<typename T >
const T & madara::utility::LQueueConstIterator< T >::operator* ( void  ) const

Dereference operator returns a const reference to the item contained at the current position.

Definition at line 535 of file LQueue.cpp.

template<typename T >
const madara::utility::LQueueConstIterator< T > & madara::utility::LQueueConstIterator< T >::operator++ ( void  ) const

Preincrement operator.

Definition at line 541 of file LQueue.cpp.

template<typename T >
madara::utility::LQueueConstIterator< T > madara::utility::LQueueConstIterator< T >::operator++ ( int  ) const

Postincrement operator.

Definition at line 550 of file LQueue.cpp.

template<typename T >
bool madara::utility::LQueueConstIterator< T >::operator== ( const LQueueConstIterator< T > &  rhs) const

Equality operator.

Definition at line 563 of file LQueue.cpp.

Member Data Documentation

template<typename T>
LQueueNode<T>* madara::utility::LQueueConstIterator< T >::pos_
mutableprivate

Definition at line 244 of file LQueue.h.

template<typename T>
const LQueue<T>& madara::utility::LQueueConstIterator< T >::queue_
private

the queue we are dealing with

Definition at line 241 of file LQueue.h.


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