OpenDDS
Snapshot(2023/04/07-19:43)
|
SendStateDataSampleList
STL-style const iterator implementation.
More...
#include <SendStateDataSampleList.h>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef const DataSampleElement | value_type |
typedef std::ptrdiff_t | difference_type |
typedef const DataSampleElement * | pointer |
typedef const DataSampleElement & | reference |
Public Member Functions | |
SendStateDataSampleListConstIterator () | |
Default constructor required by ForwardIterator concept. More... | |
SendStateDataSampleListConstIterator (const DataSampleElement *head, const DataSampleElement *tail, const DataSampleElement *current) | |
SendStateDataSampleListConstIterator (const SendStateDataSampleListIterator &iterator) | |
SendStateDataSampleListConstIterator & | operator++ () |
SendStateDataSampleListConstIterator | operator++ (int) |
SendStateDataSampleListConstIterator & | operator-- () |
SendStateDataSampleListConstIterator | operator-- (int) |
reference | operator* () const |
pointer | operator-> () const |
bool | operator== (const SendStateDataSampleListConstIterator &rhs) const |
bool | operator!= (const SendStateDataSampleListConstIterator &rhs) const |
Private Attributes | |
const DataSampleElement * | head_ |
const DataSampleElement * | tail_ |
const DataSampleElement * | current_ |
SendStateDataSampleList
STL-style const iterator implementation.
This class implements a STL-style const iterator for the OpenDDS SendStateDataSampleList
class. The resulting iterator may be used with
the STL generic algorithms. It is meant for iteration over
the "send samples" in a SendStateDataSampleList
.
Definition at line 99 of file SendStateDataSampleList.h.
typedef std::ptrdiff_t OpenDDS::DCPS::SendStateDataSampleListConstIterator::difference_type |
Definition at line 103 of file SendStateDataSampleList.h.
typedef std::bidirectional_iterator_tag OpenDDS::DCPS::SendStateDataSampleListConstIterator::iterator_category |
Definition at line 101 of file SendStateDataSampleList.h.
Definition at line 104 of file SendStateDataSampleList.h.
Definition at line 105 of file SendStateDataSampleList.h.
Definition at line 102 of file SendStateDataSampleList.h.
|
inline |
Default constructor required by ForwardIterator concept.
Definition at line 108 of file SendStateDataSampleList.h.
References OpenDDS::DCPS::operator*().
OpenDDS::DCPS::SendStateDataSampleListConstIterator::SendStateDataSampleListConstIterator | ( | const DataSampleElement * | head, |
const DataSampleElement * | tail, | ||
const DataSampleElement * | current | ||
) |
Definition at line 174 of file SendStateDataSampleList.cpp.
OpenDDS::DCPS::SendStateDataSampleListConstIterator::SendStateDataSampleListConstIterator | ( | const SendStateDataSampleListIterator & | iterator | ) |
Definition at line 184 of file SendStateDataSampleList.cpp.
|
inline |
Definition at line 131 of file SendStateDataSampleList.h.
SendStateDataSampleListConstIterator::reference OpenDDS::DCPS::SendStateDataSampleListConstIterator::operator* | ( | void | ) | const |
Definition at line 231 of file SendStateDataSampleList.cpp.
References current_.
SendStateDataSampleListConstIterator & OpenDDS::DCPS::SendStateDataSampleListConstIterator::operator++ | ( | void | ) |
Definition at line 193 of file SendStateDataSampleList.cpp.
References current_, and OpenDDS::DCPS::DataSampleElement::next_send_sample_.
SendStateDataSampleListConstIterator OpenDDS::DCPS::SendStateDataSampleListConstIterator::operator++ | ( | int | ) |
Definition at line 203 of file SendStateDataSampleList.cpp.
SendStateDataSampleListConstIterator & OpenDDS::DCPS::SendStateDataSampleListConstIterator::operator-- | ( | void | ) |
Definition at line 211 of file SendStateDataSampleList.cpp.
References current_, OpenDDS::DCPS::DataSampleElement::previous_send_sample_, and tail_.
SendStateDataSampleListConstIterator OpenDDS::DCPS::SendStateDataSampleListConstIterator::operator-- | ( | int | ) |
Definition at line 223 of file SendStateDataSampleList.cpp.
SendStateDataSampleListConstIterator::pointer OpenDDS::DCPS::SendStateDataSampleListConstIterator::operator-> | ( | void | ) | const |
Definition at line 242 of file SendStateDataSampleList.cpp.
References current_, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.
|
inline |
Definition at line 124 of file SendStateDataSampleList.h.
References current_, head_, head_, and tail_.
|
private |
Definition at line 138 of file SendStateDataSampleList.h.
Referenced by operator*(), operator++(), operator--(), operator->(), and operator==().
|
private |
Definition at line 136 of file SendStateDataSampleList.h.
Referenced by operator==().
|
private |
Definition at line 137 of file SendStateDataSampleList.h.
Referenced by operator--(), and operator==().