OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <WriterDataSampleList.h>
Public Member Functions | |
WriterDataSampleList () | |
Default constructor clears the list. More... | |
~WriterDataSampleList () | |
void | reset () |
Reset to initial state. More... | |
ssize_t | size () const |
DataSampleElement * | head () const |
DataSampleElement * | tail () const |
void | enqueue_tail (const DataSampleElement *element) |
bool | dequeue_head (DataSampleElement *&stale) |
bool | dequeue (const DataSampleElement *stale) |
Protected Attributes | |
DataSampleElement * | head_ |
The first element of the list. More... | |
DataSampleElement * | tail_ |
The last element of the list. More... | |
ssize_t | size_ |
Number of elements in the list. More... | |
A list of DataSampleElement pointers to be queued by the order the samples are written to the DataWriter (within PRESENTATION.access_scope==TOPIC). Cache the number of elements in the list so that list traversal is not required to find this information. Manages DataSampleElement's previous_writer_sample/next_writer_sample pointers
Definition at line 29 of file WriterDataSampleList.h.
ACE_INLINE OpenDDS::DCPS::WriterDataSampleList::WriterDataSampleList | ( | ) |
Default constructor clears the list.
Definition at line 18 of file WriterDataSampleList.inl.
References ACE_INLINE.
|
inline |
Definition at line 34 of file WriterDataSampleList.h.
bool OpenDDS::DCPS::WriterDataSampleList::dequeue | ( | const DataSampleElement * | stale | ) |
Definition at line 22 of file WriterDataSampleList.cpp.
References dequeue_head(), head(), head_, OpenDDS::DCPS::DataSampleElement::next_writer_sample_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, OpenDDS::DCPS::DataSampleElement::previous_writer_sample_, size_, and tail_.
Referenced by OpenDDS::DCPS::WriteDataContainer::release_buffer().
ACE_INLINE bool OpenDDS::DCPS::WriterDataSampleList::dequeue_head | ( | DataSampleElement *& | stale | ) |
Definition at line 81 of file WriterDataSampleList.inl.
References head_, OpenDDS::DCPS::DataSampleElement::next_writer_sample_, OPENDDS_END_VERSIONED_NAMESPACE_DECL, OpenDDS::DCPS::DataSampleElement::previous_writer_sample_, size_, and tail_.
Referenced by dequeue().
ACE_INLINE void OpenDDS::DCPS::WriterDataSampleList::enqueue_tail | ( | const DataSampleElement * | element | ) |
Definition at line 55 of file WriterDataSampleList.inl.
References ACE_INLINE, head_, OpenDDS::DCPS::DataSampleElement::next_writer_sample_, OpenDDS::DCPS::DataSampleElement::previous_writer_sample_, size_, and tail_.
Referenced by OpenDDS::DCPS::WriteDataContainer::obtain_buffer().
ACE_INLINE DataSampleElement * OpenDDS::DCPS::WriterDataSampleList::head | ( | void | ) | const |
Definition at line 41 of file WriterDataSampleList.inl.
References ACE_INLINE, and head_.
Referenced by dequeue().
ACE_INLINE void OpenDDS::DCPS::WriterDataSampleList::reset | ( | void | ) |
Reset to initial state.
Definition at line 26 of file WriterDataSampleList.inl.
References ACE_INLINE, head_, size_, and tail_.
ACE_INLINE ssize_t OpenDDS::DCPS::WriterDataSampleList::size | ( | void | ) | const |
Definition at line 34 of file WriterDataSampleList.inl.
References ACE_INLINE, and size_.
ACE_INLINE DataSampleElement * OpenDDS::DCPS::WriterDataSampleList::tail | ( | void | ) | const |
Definition at line 48 of file WriterDataSampleList.inl.
References ACE_INLINE, and tail_.
|
protected |
The first element of the list.
Definition at line 52 of file WriterDataSampleList.h.
Referenced by dequeue(), dequeue_head(), enqueue_tail(), head(), and reset().
|
protected |
Number of elements in the list.
Definition at line 58 of file WriterDataSampleList.h.
Referenced by dequeue(), dequeue_head(), enqueue_tail(), reset(), and size().
|
protected |
The last element of the list.
Definition at line 55 of file WriterDataSampleList.h.
Referenced by dequeue(), dequeue_head(), enqueue_tail(), reset(), and tail().