OpenDDS
Snapshot(2023/04/28-20:55)
|
Sample list data type for all samples. More...
#include <DataDurabilityCache.h>
Public Member Functions | |
sample_data_type () | |
sample_data_type (DataSampleElement &element, ACE_Allocator *allocator) | |
sample_data_type (DDS::Time_t timestamp, const ACE_Message_Block &mb, ACE_Allocator *allocator) | |
sample_data_type (sample_data_type const &rhs) | |
~sample_data_type () | |
sample_data_type & | operator= (sample_data_type const &rhs) |
void | get_sample (char const *&s, size_t &len, DDS::Time_t &source_timestamp) |
void | set_allocator (ACE_Allocator *allocator) |
Private Member Functions | |
void | init (const ACE_Message_Block *data) |
Private Attributes | |
size_t | length_ |
char * | sample_ |
DDS::Time_t | source_timestamp_ |
ACE_Allocator * | allocator_ |
Sample list data type for all samples.
Definition at line 147 of file DataDurabilityCache.h.
OpenDDS::DCPS::DataDurabilityCache::sample_data_type::sample_data_type | ( | ) |
Definition at line 170 of file DataDurabilityCache.cpp.
References DDS::Time_t::nanosec, DDS::Time_t::sec, and source_timestamp_.
OpenDDS::DCPS::DataDurabilityCache::sample_data_type::sample_data_type | ( | DataSampleElement & | element, |
ACE_Allocator * | allocator | ||
) |
Definition at line 179 of file DataDurabilityCache.cpp.
References ACE_Message_Block::cont(), OpenDDS::DCPS::DataSampleElement::get_header(), OpenDDS::DCPS::DataSampleElement::get_sample(), init(), DDS::Time_t::nanosec, DDS::Time_t::sec, source_timestamp_, OpenDDS::DCPS::DataSampleHeader::source_timestamp_nanosec_, and OpenDDS::DCPS::DataSampleHeader::source_timestamp_sec_.
OpenDDS::DCPS::DataDurabilityCache::sample_data_type::sample_data_type | ( | DDS::Time_t | timestamp, |
const ACE_Message_Block & | mb, | ||
ACE_Allocator * | allocator | ||
) |
Definition at line 199 of file DataDurabilityCache.cpp.
References init().
OpenDDS::DCPS::DataDurabilityCache::sample_data_type::sample_data_type | ( | sample_data_type const & | rhs | ) |
Definition at line 229 of file DataDurabilityCache.cpp.
References ACE_ALLOCATOR, allocator_, length_, ACE_Allocator::malloc(), ACE_OS::memcpy(), DDS::Time_t::nanosec, sample_, DDS::Time_t::sec, and source_timestamp_.
OpenDDS::DCPS::DataDurabilityCache::sample_data_type::~sample_data_type | ( | ) |
Definition at line 246 of file DataDurabilityCache.cpp.
References allocator_, ACE_Allocator::free(), and sample_.
void OpenDDS::DCPS::DataDurabilityCache::sample_data_type::get_sample | ( | char const *& | s, |
size_t & | len, | ||
DDS::Time_t & | source_timestamp | ||
) |
Definition at line 269 of file DataDurabilityCache.cpp.
References length_, DDS::Time_t::nanosec, sample_, DDS::Time_t::sec, and source_timestamp_.
Referenced by OpenDDS::DCPS::DataDurabilityCache::get_data(), and OpenDDS::DCPS::DataDurabilityCache::insert().
|
private |
Definition at line 211 of file DataDurabilityCache.cpp.
References ACE_ALLOCATOR, allocator_, ACE_Message_Block::cont(), length_, ACE_Allocator::malloc(), ACE_OS::memcpy(), sample_, and ACE_Message_Block::total_length().
Referenced by sample_data_type().
OpenDDS::DCPS::DataDurabilityCache::sample_data_type & OpenDDS::DCPS::DataDurabilityCache::sample_data_type::operator= | ( | sample_data_type const & | rhs | ) |
Definition at line 253 of file DataDurabilityCache.cpp.
References allocator_, length_, DDS::Time_t::nanosec, sample_, DDS::Time_t::sec, source_timestamp_, and OpenDDS::DCPS::swap().
void OpenDDS::DCPS::DataDurabilityCache::sample_data_type::set_allocator | ( | ACE_Allocator * | allocator | ) |
Definition at line 281 of file DataDurabilityCache.cpp.
References allocator_.
|
private |
Definition at line 174 of file DataDurabilityCache.h.
Referenced by init(), operator=(), sample_data_type(), set_allocator(), and ~sample_data_type().
|
private |
Definition at line 171 of file DataDurabilityCache.h.
Referenced by get_sample(), init(), operator=(), and sample_data_type().
|
private |
Definition at line 172 of file DataDurabilityCache.h.
Referenced by get_sample(), init(), operator=(), sample_data_type(), and ~sample_data_type().
|
private |
Definition at line 173 of file DataDurabilityCache.h.
Referenced by get_sample(), operator=(), and sample_data_type().