|
OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <GroupRakeData.h>
Classes | |
| class | SortedSetCmp |
Public Member Functions | |
| GroupRakeData () | |
| bool | insert_sample (ReceivedDataElement *sample, ReceivedDataElementList *rdel, SubscriptionInstance_rch i, size_t index_in_instance) |
| void | get_datareaders (DDS::DataReaderSeq &readers) |
| bool | copy_to_user () |
| void | reset () |
| RakeData | get_data () |
Private Member Functions | |
| GroupRakeData (const GroupRakeData &) | |
| GroupRakeData & | operator= (const GroupRakeData &) |
| typedef | OPENDDS_MULTISET_CMP (RakeData, SortedSetCmp) SortedSet |
Private Attributes | |
| SortedSet | sorted_ |
| SortedSet::iterator | current_sample_ |
Rake is an abbreviation for "read or take". This class manages the results from a read() or take() operation, which are the received_data and the info_seq sequences passed in by-reference from the user.
Definition at line 33 of file GroupRakeData.h.
| OpenDDS::DCPS::GroupRakeData::GroupRakeData | ( | ) |
Definition at line 19 of file GroupRakeData.cpp.
|
private |
| bool OpenDDS::DCPS::GroupRakeData::copy_to_user | ( | ) |
| RakeData OpenDDS::DCPS::GroupRakeData::get_data | ( | ) |
Definition at line 71 of file GroupRakeData.cpp.
References current_sample_, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.
| void OpenDDS::DCPS::GroupRakeData::get_datareaders | ( | DDS::DataReaderSeq & | readers | ) |
Definition at line 44 of file GroupRakeData.cpp.
References OpenDDS::DCPS::RcHandle< T >::in(), and sorted_.
Referenced by OpenDDS::DCPS::SubscriberImpl::get_datareaders().
| bool OpenDDS::DCPS::GroupRakeData::insert_sample | ( | ReceivedDataElement * | sample, |
| ReceivedDataElementList * | rdel, | ||
| SubscriptionInstance_rch | i, | ||
| size_t | index_in_instance | ||
| ) |
Returns false if the sample will definitely not be part of the resulting dataset, however if this returns true it still may be excluded (due to sorting and max_samples).
Definition at line 24 of file GroupRakeData.cpp.
References current_sample_, sorted_, and OpenDDS::DCPS::ReceivedDataElement::valid_data_.
Referenced by OpenDDS::DCPS::DataReaderImpl::get_ordered_data().
|
private |
|
private |
| void OpenDDS::DCPS::GroupRakeData::reset | ( | void | ) |
|
private |
Definition at line 82 of file GroupRakeData.h.
Referenced by get_data(), and insert_sample().
|
private |
Definition at line 80 of file GroupRakeData.h.
Referenced by get_datareaders(), insert_sample(), and reset().
1.8.13