Key type for underlying maps. More...
#include <DataDurabilityCache.h>
Public Member Functions | |
key_type () | |
key_type (DDS::DomainId_t domain_id, char const *topic, char const *type, ACE_Allocator *allocator) | |
key_type (key_type const &rhs) | |
key_type & | operator= (key_type const &rhs) |
bool | operator== (key_type const &rhs) const |
bool | operator< (key_type const &rhs) const |
u_long | hash () const |
Private Attributes | |
DDS::DomainId_t | domain_id_ |
ACE_CString | topic_name_ |
ACE_CString | type_name_ |
Key type for underlying maps.
Each sample may be uniquely identified by its domain ID, topic name and type name. We use that property to establish a map key type.
Definition at line 81 of file DataDurabilityCache.h.
OpenDDS::DCPS::DataDurabilityCache::key_type::key_type | ( | void | ) | [inline] |
Definition at line 84 of file DataDurabilityCache.h.
00085 : domain_id_() 00086 , topic_name_() 00087 , type_name_() 00088 {}
OpenDDS::DCPS::DataDurabilityCache::key_type::key_type | ( | DDS::DomainId_t | domain_id, | |
char const * | topic, | |||
char const * | type, | |||
ACE_Allocator * | allocator | |||
) | [inline] |
Definition at line 90 of file DataDurabilityCache.h.
00094 : domain_id_(domain_id) 00095 , topic_name_(topic, allocator) 00096 , type_name_(type, allocator) { 00097 }
OpenDDS::DCPS::DataDurabilityCache::key_type::key_type | ( | key_type const & | rhs | ) | [inline] |
Definition at line 99 of file DataDurabilityCache.h.
00100 : domain_id_(rhs.domain_id_) 00101 , topic_name_(rhs.topic_name_) 00102 , type_name_(rhs.type_name_) { 00103 }
u_long OpenDDS::DCPS::DataDurabilityCache::key_type::hash | ( | void | ) | const [inline] |
Definition at line 127 of file DataDurabilityCache.h.
References domain_id_, ACE_String_Base< ACE_CHAR_T >::hash(), topic_name_, and type_name_.
00127 { 00128 return 00129 static_cast<u_long>(this->domain_id_) 00130 + this->topic_name_.hash() 00131 + this->type_name_.hash(); 00132 }
bool OpenDDS::DCPS::DataDurabilityCache::key_type::operator< | ( | key_type const & | rhs | ) | const [inline] |
Definition at line 120 of file DataDurabilityCache.h.
References domain_id_, topic_name_, and type_name_.
00120 { 00121 return 00122 this->domain_id_ < rhs.domain_id_ 00123 && this->topic_name_ < rhs.topic_name_ 00124 && this->type_name_ < rhs.type_name_; 00125 }
Definition at line 105 of file DataDurabilityCache.h.
References domain_id_, topic_name_, and type_name_.
00105 { 00106 this->domain_id_ = rhs.domain_id_; 00107 this->topic_name_ = rhs.topic_name_; 00108 this->type_name_ = rhs.type_name_; 00109 00110 return *this; 00111 }
bool OpenDDS::DCPS::DataDurabilityCache::key_type::operator== | ( | key_type const & | rhs | ) | const [inline] |
Definition at line 113 of file DataDurabilityCache.h.
References domain_id_, topic_name_, and type_name_.
00113 { 00114 return 00115 this->domain_id_ == rhs.domain_id_ 00116 && this->topic_name_ == rhs.topic_name_ 00117 && this->type_name_ == rhs.type_name_; 00118 }
Definition at line 136 of file DataDurabilityCache.h.
Referenced by hash(), operator<(), operator=(), and operator==().
Definition at line 137 of file DataDurabilityCache.h.
Referenced by hash(), operator<(), operator=(), and operator==().
Definition at line 138 of file DataDurabilityCache.h.
Referenced by hash(), operator<(), operator=(), and operator==().