summaryrefslogtreecommitdiff
path: root/ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2011-03-28 08:49:11 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2011-03-28 08:49:11 +0000
commit2f651f316ef1df8d5286bf9f1e414ad56e57867b (patch)
treef2771cf8a54a88db40719d90bf2d385b87052c04 /ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h
parent28cda3369d797a9d14c2f42bec09982068c7cbb4 (diff)
downloadATCD-2f651f316ef1df8d5286bf9f1e414ad56e57867b.tar.gz
Mon Mar 28 07:41:37 UTC 2011 Johnny Willemsen <jwillemsen@remedy.nl>
* bin/fuzz.pl: Extended to check for old documentation style Converted to doxygen * ASNMP/agent/agent_impl.h: * ASNMP/agent/snmp_agent.h: * ASNMP/asnmp/address.cpp: * ASNMP/asnmp/asn1.cpp: * ASNMP/asnmp/counter.cpp: * ASNMP/asnmp/ctr64.cpp: * ASNMP/asnmp/gauge.cpp: * ASNMP/asnmp/integer.cpp: * ASNMP/asnmp/octet.cpp: * ASNMP/asnmp/oid.cpp: * ASNMP/asnmp/pdu.cpp: * ASNMP/asnmp/sagent.cpp: * ASNMP/asnmp/snmp.cpp: * ASNMP/asnmp/target.cpp: * ASNMP/asnmp/timetick.cpp: * ASNMP/asnmp/transaction.cpp: * ASNMP/asnmp/vb.cpp: * ASNMP/asnmp/wpdu.cpp: * ASNMP/examples/get/get.cpp: * ASNMP/examples/get/get_async.cpp: * ASNMP/examples/next/next.cpp: * ASNMP/examples/set/set.cpp: * ASNMP/examples/trap/trap.cpp: * ASNMP/examples/walk/walk.cpp: * ASNMP/tests/Address_Test.cpp: * ASNMP/tests/Counter64_Test.cpp: * ASNMP/tests/Counter_Test.cpp: * ASNMP/tests/Gauge_Test.cpp: * ASNMP/tests/Integer_Test.cpp: * ASNMP/tests/Octet_Test.cpp: * ASNMP/tests/Oid_Test.cpp: * ASNMP/tests/Target_Test.cpp: * ASNMP/tests/Varbind_Test.cpp: * ASNMP/tests/test_config.h: * Kokyu/Kokyu_dsrt.h: * ace/Codeset_Registry.h: * ace/Codeset_Registry.inl: * ace/ETCL/ETCL_l.cpp: * ace/ETCL/ETCL_y.cpp: * ace/OS_NS_signal.inl: * apps/Gateway/Gateway/Concrete_Connection_Handlers.h: * apps/Gateway/Gateway/Config_Files.h: * apps/Gateway/Gateway/Connection_Handler.h: * apps/Gateway/Gateway/Connection_Handler_Acceptor.h: * apps/Gateway/Gateway/Connection_Handler_Connector.h: * apps/Gateway/Gateway/Consumer_Dispatch_Set.h: * apps/Gateway/Gateway/Event.h: * apps/Gateway/Gateway/Event_Channel.h: * apps/Gateway/Gateway/Event_Forwarding_Discriminator.h: * apps/Gateway/Gateway/File_Parser.h: * apps/Gateway/Gateway/Gateway.h: * apps/Gateway/Gateway/Options.h: * apps/Gateway/Gateway/gatewayd.cpp: * apps/Gateway/Peer/Options.h: * apps/Gateway/Peer/Peer.h: * apps/Gateway/Peer/peerd.cpp: * apps/JAWS/clients/Blobby/Blob.h: * apps/JAWS/clients/Blobby/Blob_Handler.h: * apps/JAWS/clients/Blobby/Options.h: * apps/JAWS/clients/Blobby/blobby.cpp: * apps/JAWS/clients/Caching/ID_Generator.h: * apps/JAWS/clients/Caching/Local_Locator.h: * apps/JAWS/clients/Caching/Locator_Request_Reply.h: * apps/JAWS/clients/Caching/URL_Array_Helper.h: * apps/JAWS/clients/Caching/URL_Locator.h: * apps/JAWS/clients/Caching/URL_Properties.h: * apps/JAWS/clients/Caching/http_client.cpp: * apps/JAWS/clients/Caching/http_handler.h: * apps/JAWS/clients/Caching/http_handler.cpp: * apps/JAWS2/JAWS/IO_Handler.h: * apps/JAWS2/JAWS/Jaws_IO.h: * apps/drwho/BS_Client.h: * apps/drwho/BS_Server.h: * apps/drwho/Binary_Search.h: * apps/drwho/CM_Client.h: * apps/drwho/CM_Server.h: * apps/drwho/Comm_Manager.h: * apps/drwho/Drwho_Node.h: * apps/drwho/File_Manager.h: * apps/drwho/HT_Client.h: * apps/drwho/HT_Server.h: * apps/drwho/Hash_Table.h: * apps/drwho/Multicast_Manager.h: * apps/drwho/Options.h: * apps/drwho/PMC_All.h: * apps/drwho/PMC_Flo.h: * apps/drwho/PMC_Ruser.h: * apps/drwho/PMC_Usr.h: * apps/drwho/PMS_All.h: * apps/drwho/PMS_Flo.h: * apps/drwho/PMS_Ruser.h: * apps/drwho/PMS_Usr.h: * apps/drwho/PM_Client.h: * apps/drwho/PM_Server.h: * apps/drwho/Protocol_Manager.h: * apps/drwho/Protocol_Record.h: * apps/drwho/Rwho_DB_Manager.h: * apps/drwho/SL_Client.h: * apps/drwho/SL_Server.h: * apps/drwho/SML_Client.h: * apps/drwho/SML_Server.h: * apps/drwho/SMR_Client.h: * apps/drwho/SMR_Server.h: * apps/drwho/SM_Client.h: * apps/drwho/SM_Server.h: * apps/drwho/Search_Struct.h: * apps/drwho/Select_Manager.h: * apps/drwho/Single_Lookup.h: * apps/drwho/client.cpp: * apps/drwho/global.h: * apps/drwho/server.cpp: * netsvcs/clients/Tokens/collection/collection.cpp: * netsvcs/clients/Tokens/deadlock/deadlock_detection_test.cpp: * netsvcs/clients/Tokens/invariant/invariant.cpp: * netsvcs/clients/Tokens/manual/manual.cpp: * netsvcs/clients/Tokens/mutex/test_mutex.cpp: * netsvcs/clients/Tokens/rw_lock/rw_locks.cpp: * performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.h: * performance-tests/Synch-Benchmarks/Synch_Lib/Benchmark_Base.cpp: * protocols/tests/HTBP/Send_Recv_Tests/client.cpp: * protocols/tests/HTBP/Send_Recv_Tests/server.cpp: * websvcs/lib/URL_Addr.h:
Diffstat (limited to 'ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h')
-rw-r--r--ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h53
1 files changed, 28 insertions, 25 deletions
diff --git a/ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h b/ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h
index 2a83a53a584..a30d48da7d0 100644
--- a/ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h
+++ b/ACE/apps/Gateway/Gateway/Event_Forwarding_Discriminator.h
@@ -1,18 +1,15 @@
/* -*- C++ -*- */
-// $Id$
-// ============================================================================
-//
-// = LIBRARY
-// gateway
-//
-// = FILENAME
-// Event_Forwarding_Discriminator.h
-//
-// = AUTHOR
-// Doug Schmidt
-//
-// ============================================================================
+//=============================================================================
+/**
+ * @file Event_Forwarding_Discriminator.h
+ *
+ * $Id$
+ *
+ * @author Doug Schmidt
+ */
+//=============================================================================
+
#ifndef _CONSUMER_MAP_H
#define _CONSUMER_MAP_H
@@ -27,39 +24,45 @@
#include "Event.h"
#include "Consumer_Dispatch_Set.h"
+/**
+ * @class Event_Forwarding_Discriminator
+ *
+ * @brief Map events to the set of Consumer_Proxies that have subscribed
+ * to receive the event.
+ */
class Event_Forwarding_Discriminator
{
- // = TITLE
- // Map events to the set of Consumer_Proxies that have subscribed
- // to receive the event.
public:
+ /// Associate Event with the Consumer_Dispatch_Set.
int bind (Event_Key event, Consumer_Dispatch_Set *cds);
- // Associate Event with the Consumer_Dispatch_Set.
+ /// Locate EXID and pass out parameter via INID. If found,
+ /// return 0, else -1.
int unbind (Event_Key event);
- // Locate EXID and pass out parameter via INID. If found,
- // return 0, else -1.
+ /// Break any association of EXID.
int find (Event_Key event, Consumer_Dispatch_Set *&cds);
- // Break any association of EXID.
public:
+ /// Map that associates <Event_Key>s (external ids) with
+ /// <Consumer_Dispatch_Set> *'s <internal IDs>.
ACE_Map_Manager<Event_Key, Consumer_Dispatch_Set *, ACE_Null_Mutex> map_;
- // Map that associates <Event_Key>s (external ids) with
- // <Consumer_Dispatch_Set> *'s <internal IDs>.
};
+/**
+ * @class Event_Forwarding_Discriminator_Iterator
+ *
+ * @brief Define an iterator for the Consumer Map.
+ */
class Event_Forwarding_Discriminator_Iterator
{
- // = TITLE
- // Define an iterator for the Consumer Map.
public:
Event_Forwarding_Discriminator_Iterator (Event_Forwarding_Discriminator &mm);
int next (Consumer_Dispatch_Set *&);
int advance (void);
private:
+ /// Map we are iterating over.
ACE_Map_Iterator<Event_Key, Consumer_Dispatch_Set *, ACE_Null_Mutex> map_iter_;
- // Map we are iterating over.
};
#endif /* _CONSUMER_MAP_H */