The Sparta Modeling Framework
|
Class that alows queue elements to be accessed like a normal stl iterator. Queue iterator is a bidirectional sequential iterator isValid() method checks the validity of the iterator. This method can be used to check if the data in Queue has not yet been popped out Increment, decrement , dereferencing,less than and greater than operations are provided. More...
#include <Queue.hpp>
Public Member Functions | |
QueueIterator ()=default | |
Default constructor. | |
QueueIterator (const QueueIterator< false > &iter) | |
QueueIterator (const QueueIterator< true > &iter) | |
bool | isValid () const |
QueueIterator & | operator= (const QueueIterator &rhs)=default |
Assignment operator. | |
bool | operator< (const QueueIterator &rhs) const |
overload the comparison operator. | |
bool | operator> (const QueueIterator &rhs) const |
overload the comparison operator. | |
bool | operator== (const QueueIterator &rhs) const |
overload the comparison operator. | |
bool | operator!= (const QueueIterator &rhs) const |
overload the comparison operator. | |
QueueIterator & | operator++ () |
Pre-Increment operator. | |
QueueIterator | operator++ (int) |
Post-Increment iterator. | |
QueueIterator & | operator-- () |
Pre-decrement iterator. | |
QueueIterator | operator-- (int) |
Post-decrement iterator. | |
DataReferenceType | operator* () |
Dereferencing operator. | |
value_type * | operator-> () |
support -> operator | |
const value_type * | operator-> () const |
uint32_t | getIndex () const |
Friends | |
class | Queue< DataT > |
Only the Queue can attach itself. | |
class | QueueIterator< true > |
Additional Inherited Members | |
Public Types inherited from sparta::utils::IteratorTraits< std::bidirectional_iterator_tag, value_type > | |
using | difference_type = long |
using | value_type = value_type |
using | pointer = const value_type * |
using | reference = const value_type & |
using | iterator_category = std::bidirectional_iterator_tag |
Class that alows queue elements to be accessed like a normal stl iterator. Queue iterator is a bidirectional sequential iterator isValid() method checks the validity of the iterator. This method can be used to check if the data in Queue has not yet been popped out Increment, decrement , dereferencing,less than and greater than operations are provided.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |