14 #if !defined (__ACE_INLINE__) 37 if (
find(
map_, local_id, listener) == -1) {
40 ACE_TEXT(
"(%P|%t) ReceiveListenerSet::exist: ")
41 ACE_TEXT(
"could not find local %C.\n"),
50 ACE_TEXT(
"(%P|%t) ReceiveListenerSet::exist: ")
51 ACE_TEXT(
"listener for local %C is nil.\n"),
57 last =
map_.size() == 1;
66 for (MapType::iterator iter =
map_.begin();
67 iter !=
map_.end(); ++ iter) {
76 return map_.count(local_id) > 0;
95 handles.reserve(
map_.size());
96 for (MapType::iterator itr =
map_.begin(); itr !=
map_.end(); ++itr) {
98 if (itr->second && incl_excl.count(itr->first) == 0) {
99 handles.push_back(itr->second);
102 if (itr->second && incl_excl.count(itr->first) != 0) {
103 handles.push_back(itr->second);
106 ACE_ERROR((
LM_ERROR,
"(%P|%t) ERROR: ReceiveListenerSet::data_received - NOTHING\n"));
111 for (
size_t i = 0; i < handles.size(); ++i) {
115 if (i < handles.size() - 1 && sample.
has_data()) {
130 DBG_ENTRY_LVL(
"ReceiveListenerSet",
"data_received(sample, readerId)", 6);
134 MapType::iterator itr =
map_.find(readerId);
135 if (itr !=
map_.end() && itr->second) {
virtual ~ReceiveListenerSet()
bool has_data() const
true if at least one Data Block is stored (even if it has 0 useable bytes)
bool exist(const GUID_t &key, bool &last)
const char * c_str() const
sequence< GUID_t > ReaderIdSeq
void get_keys(ReaderIdSeq &ids)
LockType lock_
This lock will protect the map.
void data_received(const ReceivedDataSample &sample, const RepoIdSet &incl_excl, ConstrainReceiveSet constrain)
Holds a data sample received by the transport.
virtual void data_received(const ReceivedDataSample &sample)=0
void push_back(Seq &seq, const typename Seq::value_type &val)
std::vector-style push_back() for CORBA Sequences
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
RcHandle< T > lock() const
typedef OPENDDS_VECTOR(ActionConnectionRecord) ConnectionRecords
The Internal API and Implementation of OpenDDS.
int find(Container &c, const Key &key, typename Container::mapped_type *&value)