OpenDDS::DCPS::DataDurabilityCache::key_type Class Reference

Key type for underlying maps. More...

#include <DataDurabilityCache.h>

List of all members.

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_typeoperator= (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_


Detailed Description

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 77 of file DataDurabilityCache.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::DataDurabilityCache::key_type::key_type (  )  [inline]

Definition at line 80 of file DataDurabilityCache.h.

00081       : domain_id_()
00082       , topic_name_()
00083       , type_name_()
00084     {}

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 86 of file DataDurabilityCache.h.

00090         : domain_id_(domain_id)
00091         , topic_name_(topic, allocator)
00092         , type_name_(type, allocator) {
00093     }

OpenDDS::DCPS::DataDurabilityCache::key_type::key_type ( key_type const &  rhs  )  [inline]

Definition at line 95 of file DataDurabilityCache.h.

00096         : domain_id_(rhs.domain_id_)
00097         , topic_name_(rhs.topic_name_)
00098         , type_name_(rhs.type_name_) {
00099     }


Member Function Documentation

u_long OpenDDS::DCPS::DataDurabilityCache::key_type::hash (  )  const [inline]

Definition at line 123 of file DataDurabilityCache.h.

References domain_id_, and type_name_.

00123                         {
00124       return
00125         static_cast<u_long>(this->domain_id_)
00126         + this->topic_name_.hash()
00127         + this->type_name_.hash();
00128     }

bool OpenDDS::DCPS::DataDurabilityCache::key_type::operator< ( key_type const &  rhs  )  const [inline]

Definition at line 116 of file DataDurabilityCache.h.

References domain_id_, topic_name_, and type_name_.

00116                                                {
00117       return
00118         this->domain_id_ < rhs.domain_id_
00119         && this->topic_name_ < rhs.topic_name_
00120         && this->type_name_ < rhs.type_name_;
00121     }

key_type& OpenDDS::DCPS::DataDurabilityCache::key_type::operator= ( key_type const &  rhs  )  [inline]

Definition at line 101 of file DataDurabilityCache.h.

References domain_id_, topic_name_, and type_name_.

00101                                                 {
00102       this->domain_id_ = rhs.domain_id_;
00103       this->topic_name_ = rhs.topic_name_;
00104       this->type_name_ = rhs.type_name_;
00105 
00106       return *this;
00107     }

bool OpenDDS::DCPS::DataDurabilityCache::key_type::operator== ( key_type const &  rhs  )  const [inline]

Definition at line 109 of file DataDurabilityCache.h.

References domain_id_, topic_name_, and type_name_.

00109                                                  {
00110       return
00111         this->domain_id_ == rhs.domain_id_
00112         && this->topic_name_ == rhs.topic_name_
00113         && this->type_name_ == rhs.type_name_;
00114     }


Member Data Documentation

DDS::DomainId_t OpenDDS::DCPS::DataDurabilityCache::key_type::domain_id_ [private]

Definition at line 132 of file DataDurabilityCache.h.

Referenced by hash(), operator<(), operator=(), and operator==().

ACE_CString OpenDDS::DCPS::DataDurabilityCache::key_type::topic_name_ [private]

Definition at line 133 of file DataDurabilityCache.h.

Referenced by operator<(), operator=(), and operator==().

ACE_CString OpenDDS::DCPS::DataDurabilityCache::key_type::type_name_ [private]

Definition at line 134 of file DataDurabilityCache.h.

Referenced by hash(), operator<(), operator=(), and operator==().


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:06:11 2016 for OpenDDS by  doxygen 1.4.7