A input iterator.
More...
#include <nds_data_iterator.hh>
A input iterator.
This is the iterator type used by NDS::data_iterable.
- Note
- Due to the demands of iterators, and to keep the number of times buffers are copied, the iteration is done in terms of std::shared_ptr<NDS::buffers_type>. As such the current value is tracked by the data_iterable object and by the iterators. It is important to complete the iteration, and allow the iterators to go out of scope (or be assigned to the sentinal/empty value) to allow the internal buffers to be released.
◆ data_stream_iterator() [1/3]
NDS::abi_0::data_stream_iterator::data_stream_iterator |
( |
| ) |
|
Default constructor.
The iterator is defined in an empty/end state.
◆ data_stream_iterator() [2/3]
Copy constructor.
A data_stream_iterator can be safely copied. When done the two iterators will refer to the same iteration and reference the same data.
- Parameters
-
other | The iterator to copy from. |
◆ data_stream_iterator() [3/3]
Move constructor.
A data_stream_iterator can be safely moved. When done other will be in an empty/end state.
- Parameters
-
other | The iterator to move from. |
◆ operator*()
data_stream_iterator::reference NDS::abi_0::data_stream_iterator::operator* |
( |
| ) |
|
Access the data at the current location of the iteration.
- Returns
- A reference to the current data.
- Note
- While the iterator is not in an end/empty state and the iteration is not complete this will never return a null shared_ptr.
◆ operator++() [1/2]
- Note
- This updates the state of the associated data_iterable object.
◆ operator++() [2/2]
- Note
- This updates the state of the associated data_iterable object.
◆ operator=() [1/2]
Copy operator.
A data_stream_iterator can be safely copied. When done the two iterators will refer to the same iteration and reference the same data.
- Parameters
-
other | The iterator to copy from. |
◆ operator=() [2/2]
Move operator.
A data_stream_iterator can be safely moved. When done other will be in an empty/end state.
- Parameters
-
other | The iterator to move from. |
The documentation for this class was generated from the following files: