OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <ReceivedDataElementList.h>
Public Member Functions | |
ReceivedDataElement (const DataSampleHeader &header, void *received_data, ACE_Recursive_Thread_Mutex *mx) | |
virtual | ~ReceivedDataElement () |
void | dec_ref () |
void | inc_ref () |
long | ref_count () |
void * | operator new (size_t size, ACE_New_Allocator &pool) |
void | operator delete (void *memory) |
void | operator delete (void *memory, ACE_New_Allocator &pool) |
Public Attributes | |
GUID_t | pub_ |
void *const | registered_data_ |
DDS::SampleStateKind | sample_state_ |
DDS::Time_t | source_timestamp_ |
Source time stamp for this data sample. More... | |
DDS::Time_t | destination_timestamp_ |
Reception time stamp for this data sample. More... | |
bool | coherent_change_ |
Sample belongs to an active coherent change set. More... | |
bool | group_coherent_ |
Sample belongs to a group coherent changes. More... | |
GUID_t | publisher_id_ |
Publisher id represent group identifier. More... | |
bool | valid_data_ |
Do we contain valid data. More... | |
size_t | disposed_generation_count_ |
size_t | no_writers_generation_count_ |
Atomic< long > | zero_copy_cnt_ |
SequenceNumber | sequence_ |
The data sample's sequence number. More... | |
ReceivedDataElement * | previous_data_sample_ |
the previous data sample in the ReceivedDataElementList More... | |
ReceivedDataElement * | next_data_sample_ |
the next data sample in the ReceivedDataElementList More... | |
Protected Attributes | |
ACE_Recursive_Thread_Mutex * | mx_ |
Private Attributes | |
Atomic< long > | ref_count_ |
Definition at line 33 of file ReceivedDataElementList.h.
|
inline |
Definition at line 35 of file ReceivedDataElementList.h.
References OpenDDS::DCPS::TimePoint_T< SystemClock >::now(), DDS::Time_t::sec, OpenDDS::DCPS::DataSampleHeader::source_timestamp_nanosec_, OpenDDS::DCPS::DataSampleHeader::source_timestamp_sec_, OpenDDS::DCPS::TimePoint_T< AceClock >::to_dds_time(), and OpenDDS::DCPS::DataSampleHeader::valid_data().
|
inlinevirtual |
Definition at line 68 of file ReceivedDataElementList.h.
|
inline |
Definition at line 70 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::purge_data(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_next_sample().
|
inline |
Definition at line 77 of file ReceivedDataElementList.h.
Referenced by TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::assign_ptr().
void OpenDDS::DCPS::ReceivedDataElement::operator delete | ( | void * | memory | ) |
Definition at line 44 of file ReceivedDataElementList.cpp.
References OpenDDS::DCPS::ReceivedDataElementMemoryBlock::allocator_, and ACE_New_Allocator::free().
void OpenDDS::DCPS::ReceivedDataElement::operator delete | ( | void * | memory, |
ACE_New_Allocator & | pool | ||
) |
Definition at line 52 of file ReceivedDataElementList.cpp.
void * OpenDDS::DCPS::ReceivedDataElement::operator new | ( | size_t | size, |
ACE_New_Allocator & | pool | ||
) |
Definition at line 37 of file ReceivedDataElementList.cpp.
References OpenDDS::DCPS::ReceivedDataElementMemoryBlock::allocator_.
|
inline |
Definition at line 82 of file ReceivedDataElementList.h.
bool OpenDDS::DCPS::ReceivedDataElement::coherent_change_ |
Sample belongs to an active coherent change set.
Definition at line 107 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::accept_coherent_change(), OpenDDS::DCPS::ReceivedDataElementList::add(), OpenDDS::DCPS::ReceivedDataElementList::add_by_timestamp(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data(), OpenDDS::DCPS::ReceivedDataElementList::get_next_match(), OpenDDS::DCPS::ReceivedDataElementList::mark_read(), and OpenDDS::DCPS::ReceivedDataElementList::remove().
DDS::Time_t OpenDDS::DCPS::ReceivedDataElement::destination_timestamp_ |
Reception time stamp for this data sample.
Definition at line 103 of file ReceivedDataElementList.h.
size_t OpenDDS::DCPS::ReceivedDataElement::disposed_generation_count_ |
The data sample's instance's disposed_generation_count_ at the time the sample was received
Definition at line 121 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data(), OpenDDS::DCPS::InstanceState::most_recent_generation(), OpenDDS::DCPS::InstanceState::sample_info(), and OpenDDS::DCPS::DataReaderImpl::sample_info().
bool OpenDDS::DCPS::ReceivedDataElement::group_coherent_ |
Sample belongs to a group coherent changes.
Definition at line 110 of file ReceivedDataElementList.h.
|
protected |
Definition at line 147 of file ReceivedDataElementList.h.
ReceivedDataElement* OpenDDS::DCPS::ReceivedDataElement::next_data_sample_ |
the next data sample in the ReceivedDataElementList
Definition at line 138 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::add(), OpenDDS::DCPS::ReceivedDataElementList::add_by_timestamp(), OpenDDS::DCPS::ReceivedDataElementList::apply_all(), OpenDDS::DCPS::ReceivedDataElementList::get_next_match(), OpenDDS::DCPS::ReceivedDataElementList::has_zero_copies(), OpenDDS::DCPS::ReceivedDataElementList::remove(), and OpenDDS::DCPS::ReceivedDataElementList::sanity_check().
size_t OpenDDS::DCPS::ReceivedDataElement::no_writers_generation_count_ |
The data sample's instance's no_writers_generation_count_ at the time the sample was received
Definition at line 125 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data(), OpenDDS::DCPS::InstanceState::most_recent_generation(), OpenDDS::DCPS::InstanceState::sample_info(), and OpenDDS::DCPS::DataReaderImpl::sample_info().
ReceivedDataElement* OpenDDS::DCPS::ReceivedDataElement::previous_data_sample_ |
the previous data sample in the ReceivedDataElementList
Definition at line 135 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::add(), OpenDDS::DCPS::ReceivedDataElementList::add_by_timestamp(), OpenDDS::DCPS::ReceivedDataElementList::remove(), and OpenDDS::DCPS::ReceivedDataElementList::sanity_check().
GUID_t OpenDDS::DCPS::ReceivedDataElement::pub_ |
Definition at line 87 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::InstanceState::sample_info().
GUID_t OpenDDS::DCPS::ReceivedDataElement::publisher_id_ |
Publisher id represent group identifier.
Definition at line 113 of file ReceivedDataElementList.h.
|
private |
Definition at line 145 of file ReceivedDataElementList.h.
void* const OpenDDS::DCPS::ReceivedDataElement::registered_data_ |
Data sample received, could only be the key fields in case we received dispose and/or unregister message.
Definition at line 93 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::RakeResults< MessageType >::insert_sample(), OpenDDS::DCPS::RakeResults< MessageType >::SortedSetCmp::operator()(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_i(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_next_sample().
DDS::SampleStateKind OpenDDS::DCPS::ReceivedDataElement::sample_state_ |
Sample state for this data sample: DDS::NOT_READ_SAMPLE_STATE/DDS::READ_SAMPLE_STATE
Definition at line 97 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::add(), OpenDDS::DCPS::ReceivedDataElementList::add_by_timestamp(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data(), OpenDDS::DCPS::ReceivedDataElementList::get_next_match(), OpenDDS::DCPS::ReceivedDataElementList::mark_read(), OpenDDS::DCPS::ReceivedDataElementList::remove(), and OpenDDS::DCPS::InstanceState::sample_info().
SequenceNumber OpenDDS::DCPS::ReceivedDataElement::sequence_ |
The data sample's sequence number.
Definition at line 132 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::InstanceState::sample_info(), and OpenDDS::DCPS::DataReaderImpl::sample_info().
DDS::Time_t OpenDDS::DCPS::ReceivedDataElement::source_timestamp_ |
Source time stamp for this data sample.
Definition at line 100 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::add_by_timestamp(), OpenDDS::DCPS::GroupRakeData::SortedSetCmp::operator()(), OpenDDS::DCPS::RakeResults< MessageType >::SortedSetCmp::operator()(), and OpenDDS::DCPS::InstanceState::sample_info().
bool OpenDDS::DCPS::ReceivedDataElement::valid_data_ |
Do we contain valid data.
Definition at line 117 of file ReceivedDataElementList.h.
Referenced by OpenDDS::DCPS::GroupRakeData::insert_sample(), OpenDDS::DCPS::RakeResults< MessageType >::insert_sample(), and OpenDDS::DCPS::InstanceState::sample_info().
Atomic<long> OpenDDS::DCPS::ReceivedDataElement::zero_copy_cnt_ |
This is needed to know if delete DataReader should fail with PRECONDITION_NOT_MET because there are outstanding loans.
Definition at line 129 of file ReceivedDataElementList.h.
Referenced by TAO::DCPS::ZeroCopyDataSeq< Sample_T, DEF_MAX >::assign_ptr().