The Sparta Modeling Framework
|
An iterator class for Pipeline class. More...
#include <Pipeline.hpp>
Public Member Functions | |
PipelineIterator (PipelinePointerType ptr) | |
Constructor. | |
PipelineIterator (PipelinePointerType ptr, uint32_t i) | |
Constructor. | |
PipelineIterator (const PipelineIterator< false > &rhs) | |
Copy constructor. | |
PipelineIterator (const PipelineIterator< true > &rhs) | |
Copy constructor. | |
PipelineIterator & | operator= (const PipelineIterator &rhs)=default |
Copy assignment operator. | |
DataReferenceType | operator* () |
Override the dereferencing operator*. | |
DataPointerType | operator-> () |
Override the dereferencing operator-> | |
PipelineIterator | operator++ () |
Override the pre-increment operator. | |
PipelineIterator | operator++ (int) |
Override the pre-increment operator. | |
bool | operator== (const PipelineIterator &rhs) const |
Override the comparison(equal) operator. | |
bool | operator!= (const PipelineIterator &rhs) const |
Override the comparison(not equal) operator. | |
bool | isValid () const |
Check the validity of the iterator. | |
Friends | |
class | PipelineIterator< true > |
class | Pipeline |
Additional Inherited Members | |
Public Types inherited from sparta::utils::IteratorTraits< std::forward_iterator_tag, DataT > | |
using | difference_type = long |
using | value_type = DataT |
using | pointer = const DataT * |
using | reference = const DataT & |
using | iterator_category = std::forward_iterator_tag |
An iterator class for Pipeline class.
The PipelineIterator is a forward iterator. It could be instantiated as either a const iterator or a non-const iterator.
If the iterator is dereferenced with operator*(), a data-reference type is returned. If the iterator is dereferenced with operator->(), a data-pointer type is returned.
An assertion error will fire if the itertaor is dereferenced, but the pipeline stage referred to by the iterator is not valid.
Definition at line 101 of file Pipeline.hpp.
|
inline |
|
inline |
Constructor.
Definition at line 130 of file Pipeline.hpp.
|
inline |
Copy constructor.
rhs | PipelineIterator(non-const) |
Definition at line 139 of file Pipeline.hpp.
|
inline |
Copy constructor.
rhs | PipelineIterator(const) |
Definition at line 151 of file Pipeline.hpp.
|
inline |
Check the validity of the iterator.
Definition at line 211 of file Pipeline.hpp.
|
inline |
Override the comparison(not equal) operator.
Definition at line 204 of file Pipeline.hpp.
|
inline |
Override the dereferencing operator*.
Definition at line 166 of file Pipeline.hpp.
|
inline |
Override the pre-increment operator.
Definition at line 180 of file Pipeline.hpp.
|
inline |
Override the pre-increment operator.
Definition at line 190 of file Pipeline.hpp.
|
inline |
Override the dereferencing operator->
Definition at line 173 of file Pipeline.hpp.
|
default |
Copy assignment operator.
rhs | PipelineIterator(const or non-const) |
|
inline |
Override the comparison(equal) operator.
Definition at line 198 of file Pipeline.hpp.
|
friend |
Definition at line 115 of file Pipeline.hpp.
|
friend |
Definition at line 1107 of file Pipeline.hpp.