Util Namespace Reference


Functions

template<typename Key>
int find (OpenDDS::DCPS::DomainParticipantImpl::TopicMap &c, const Key &key, OpenDDS::DCPS::DomainParticipantImpl::TopicMap::mapped_type *&value)
bool DescendingOwnershipStrengthSort (const OpenDDS::DCPS::OwnershipManager::WriterInfo &w1, const OpenDDS::DCPS::OwnershipManager::WriterInfo &w2)


Function Documentation

template<typename Key>
int Util::find ( OpenDDS::DCPS::DomainParticipantImpl::TopicMap &  c,
const Key &  key,
OpenDDS::DCPS::DomainParticipantImpl::TopicMap::mapped_type *&  value 
)

Definition at line 44 of file DomainParticipantImpl.cpp.

Referenced by OpenDDS::DCPS::DomainParticipantImpl::create_topic_i(), OpenDDS::DCPS::DomainParticipantImpl::delete_topic_i(), OpenDDS::DCPS::DomainParticipantImpl::find_topic(), TAO_DDS_DCPSInfo_i::init_transport(), OpenDDS::DCPS::DataDurabilityCache::insert(), and OpenDDS::DCPS::DomainParticipantImpl::lookup_topicdescription().

00048 {
00049   OpenDDS::DCPS::DomainParticipantImpl::TopicMap::iterator iter =
00050     c.find(key);
00051 
00052   if (iter == c.end()) {
00053     return -1;
00054   }
00055 
00056   value = &iter->second;
00057   return 0;
00058 }

bool Util::DescendingOwnershipStrengthSort ( const OpenDDS::DCPS::OwnershipManager::WriterInfo w1,
const OpenDDS::DCPS::OwnershipManager::WriterInfo w2 
)

Definition at line 21 of file OwnershipManager.cpp.

References OpenDDS::DCPS::OwnershipManager::WriterInfo::ownership_strength_.

Referenced by OpenDDS::DCPS::OwnershipManager::remove_owner(), and OpenDDS::DCPS::OwnershipManager::select_owner().

00022 {
00023   return w1.ownership_strength_ > w2.ownership_strength_;
00024 };


Generated on Fri Feb 12 20:06:52 2016 for OpenDDS by  doxygen 1.4.7