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

Key type for underlying maps. More...

#include <DataDurabilityCache.h>

Collaboration diagram for OpenDDS::DCPS::DataDurabilityCache::key_type:
Collaboration graph
[legend]

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


Constructor & Destructor Documentation

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     }


Member Function Documentation

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     }

Here is the call graph for this function:

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     }

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

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     }


Member Data Documentation

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==().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1