OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <ReceiveListenerSet.h>
Public Types | |
enum | ConstrainReceiveSet { SET_EXCLUDED, SET_INCLUDED } |
Public Member Functions | |
typedef | OPENDDS_MAP_CMP (GUID_t, TransportReceiveListener_wrch, GUID_tKeyLessThan) MapType |
ReceiveListenerSet () | |
ReceiveListenerSet (const ReceiveListenerSet &) | |
ReceiveListenerSet & | operator= (const ReceiveListenerSet &) |
virtual | ~ReceiveListenerSet () |
int | insert (GUID_t subscriber_id, const TransportReceiveListener_wrch &listener) |
int | remove (GUID_t subscriber_id) |
void | remove_all (const GUIDSeq &to_remove) |
ssize_t | size () const |
void | data_received (const ReceivedDataSample &sample, const RepoIdSet &incl_excl, ConstrainReceiveSet constrain) |
void | data_received (const ReceivedDataSample &sample, const GUID_t &readerId) |
MapType & | map () |
Give access to the underlying map for iteration purposes. More... | |
const MapType & | map () const |
bool | exist (const GUID_t &key, bool &last) |
bool | exist (const GUID_t &local_id) |
void | get_keys (ReaderIdSeq &ids) |
void | clear () |
![]() | |
virtual | ~RcObject () |
virtual void | _add_ref () |
virtual void | _remove_ref () |
long | ref_count () const |
WeakObject * | _get_weak_object () const |
Private Types | |
typedef ACE_SYNCH_MUTEX | LockType |
typedef ACE_Guard< LockType > | GuardType |
Private Attributes | |
LockType | lock_ |
This lock will protect the map. More... | |
MapType | map_ |
Additional Inherited Members | |
![]() | |
RcObject () | |
Definition at line 27 of file ReceiveListenerSet.h.
|
private |
Definition at line 71 of file ReceiveListenerSet.h.
|
private |
Definition at line 70 of file ReceiveListenerSet.h.
ACE_INLINE OpenDDS::DCPS::ReceiveListenerSet::ReceiveListenerSet | ( | ) |
ACE_INLINE OpenDDS::DCPS::ReceiveListenerSet::ReceiveListenerSet | ( | const ReceiveListenerSet & | rhs | ) |
Definition at line 26 of file ReceiveListenerSet.inl.
References ACE_INLINE, and DBG_ENTRY_LVL.
|
virtual |
void OpenDDS::DCPS::ReceiveListenerSet::clear | ( | void | ) |
Definition at line 80 of file ReceiveListenerSet.cpp.
void OpenDDS::DCPS::ReceiveListenerSet::data_received | ( | const ReceivedDataSample & | sample, |
const RepoIdSet & | incl_excl, | ||
ConstrainReceiveSet | constrain | ||
) |
Definition at line 87 of file ReceiveListenerSet.cpp.
References ACE_ERROR, OpenDDS::DCPS::TransportReceiveListener::data_received(), DBG_ENTRY_LVL, OpenDDS::DCPS::ReceivedDataSample::has_data(), LM_ERROR, lock_, map_, OpenDDS::DCPS::OPENDDS_VECTOR(), SET_EXCLUDED, and SET_INCLUDED.
void OpenDDS::DCPS::ReceiveListenerSet::data_received | ( | const ReceivedDataSample & | sample, |
const GUID_t & | readerId | ||
) |
Definition at line 127 of file ReceiveListenerSet.cpp.
References OpenDDS::DCPS::TransportReceiveListener::data_received(), DBG_ENTRY_LVL, OpenDDS::DCPS::WeakRcHandle< T >::lock(), lock_, map_, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.
bool OpenDDS::DCPS::ReceiveListenerSet::exist | ( | const GUID_t & | key, |
bool & | last | ||
) |
Check if the key is in the map and if it's the only left entry in the map.
Definition at line 29 of file ReceiveListenerSet.cpp.
References ACE_ERROR, ACE_TEXT(), OpenDDS::DCPS::LogGuid::c_str(), OpenDDS::DCPS::find(), LM_ERROR, lock_, and map_.
bool OpenDDS::DCPS::ReceiveListenerSet::exist | ( | const GUID_t & | local_id | ) |
Definition at line 73 of file ReceiveListenerSet.cpp.
void OpenDDS::DCPS::ReceiveListenerSet::get_keys | ( | ReaderIdSeq & | ids | ) |
Definition at line 62 of file ReceiveListenerSet.cpp.
References lock_, map_, and OpenDDS::DCPS::push_back().
ACE_INLINE int OpenDDS::DCPS::ReceiveListenerSet::insert | ( | GUID_t | subscriber_id, |
const TransportReceiveListener_wrch & | listener | ||
) |
Definition at line 48 of file ReceiveListenerSet.inl.
References ACE_INLINE, DBG_ENTRY_LVL, lock_, and map_.
ACE_INLINE ReceiveListenerSet::MapType & OpenDDS::DCPS::ReceiveListenerSet::map | ( | void | ) |
Give access to the underlying map for iteration purposes.
Definition at line 102 of file ReceiveListenerSet.inl.
References ACE_INLINE, and map_.
ACE_INLINE const ReceiveListenerSet::MapType & OpenDDS::DCPS::ReceiveListenerSet::map | ( | void | ) | const |
Definition at line 108 of file ReceiveListenerSet.inl.
References map_, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.
typedef OpenDDS::DCPS::ReceiveListenerSet::OPENDDS_MAP_CMP | ( | GUID_t | , |
TransportReceiveListener_wrch | , | ||
GUID_tKeyLessThan | |||
) |
ACE_INLINE ReceiveListenerSet & OpenDDS::DCPS::ReceiveListenerSet::operator= | ( | const ReceiveListenerSet & | rhs | ) |
Definition at line 36 of file ReceiveListenerSet.inl.
References ACE_INLINE, DBG_ENTRY_LVL, lock_, and map_.
ACE_INLINE int OpenDDS::DCPS::ReceiveListenerSet::remove | ( | GUID_t | subscriber_id | ) |
Definition at line 67 of file ReceiveListenerSet.inl.
References ACE_ERROR_RETURN, ACE_INLINE, DBG_ENTRY_LVL, LM_ERROR, lock_, map_, and OpenDDS::DCPS::unbind().
ACE_INLINE void OpenDDS::DCPS::ReceiveListenerSet::remove_all | ( | const GUIDSeq & | to_remove | ) |
Definition at line 83 of file ReceiveListenerSet.inl.
References ACE_INLINE, DBG_ENTRY_LVL, lock_, map_, and OpenDDS::DCPS::unbind().
Referenced by OpenDDS::DCPS::DataLink::data_received_i().
ACE_INLINE ssize_t OpenDDS::DCPS::ReceiveListenerSet::size | ( | void | ) | const |
Definition at line 94 of file ReceiveListenerSet.inl.
References ACE_INLINE, DBG_ENTRY_LVL, lock_, and map_.
|
mutableprivate |
This lock will protect the map.
Definition at line 74 of file ReceiveListenerSet.h.
Referenced by clear(), data_received(), exist(), get_keys(), insert(), operator=(), remove(), remove_all(), and size().
|
private |
Definition at line 76 of file ReceiveListenerSet.h.
Referenced by clear(), data_received(), exist(), get_keys(), insert(), map(), operator=(), remove(), remove_all(), and size().