void OpenDDS::DCPS::RepoIdSetMap::operator= (const RepoIdSetMap & rh) { DBG_ENTRY_LVL("RepoIdSetMap","operator=",6); const MapType& map = rh.map(); for (MapType::const_iterator itr = map.begin(); itr != map.end(); ++itr) { RepoIdSet_rch set = itr->second; RepoIdSet::MapType& smap = set->map(); for (RepoIdSet::MapType::iterator sitr = smap.begin(); sitr != smap.end(); ++sitr) { this->insert(itr->first, sitr->first); } } }
void OpenDDS::DCPS::RepoIdSetMap::dump() { DBG_ENTRY_LVL("RepoIdSetMap","dump",6); for (MapType::iterator itr = map_.begin(); itr != map_.end(); ++itr) { RepoIdSet_rch set = itr->second; for (RepoIdSet::MapType::iterator it = set->map().begin(); it != set->map().end(); ++it) { std::stringstream buffer; buffer << "key " << itr->first << " - value " << it->first; ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t) %C \n"), buffer.str().c_str())); } } }
// This version removes an entire RepoIdSet from the map_. OpenDDS::DCPS::RepoIdSet* OpenDDS::DCPS::RepoIdSetMap::remove_set(RepoId key) { DBG_ENTRY_LVL("RepoIdSetMap","remove_set",6); RepoIdSet_rch value; if (unbind(map_, key, value) != 0) { if (DCPS_debug_level > 4) { RepoIdConverter converter(key); ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t) RepeIdSetMap::remove_set: ") ACE_TEXT("RepoId %C not found in map.\n"), std::string(converter).c_str())); } return 0; } return value._retn(); }
bool OpenDDS::DCPS::TransportImpl::acked(RepoId pub_id, RepoId sub_id) { int ret = false; RepoIdSet_rch set = this->acked_sub_map_.find(pub_id); if (!set.is_nil()) { bool last = false; ret = set->exist(sub_id, last); } if (OpenDDS::DCPS::Transport_debug_level > 8) { std::stringstream buffer; buffer << " pub " << pub_id << " - sub " << sub_id; ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t) %C %C \n"), ret ? "acked" : "pending", buffer.str().c_str())); } return ret; }
void OpenDDS::DCPS::RepoIdSetMap::dump() { DBG_ENTRY_LVL("RepoIdSetMap","dump",6); for (MapType::iterator itr = map_.begin(); itr != map_.end(); ++itr) { RepoIdSet_rch set = itr->second; for (RepoIdSet::MapType::iterator it = set->map().begin(); it != set->map().end(); ++it) { OPENDDS_STRING buffer; buffer + "key "; buffer += to_string(itr->first); buffer + " - value "; buffer += to_string(it->first); ACE_DEBUG((LM_DEBUG, ACE_TEXT("(%P|%t) %C \n"), buffer.c_str())); } } }