diff options
Diffstat (limited to 'ACE/ace/Strategies_T.h')
-rw-r--r-- | ACE/ace/Strategies_T.h | 81 |
1 files changed, 40 insertions, 41 deletions
diff --git a/ACE/ace/Strategies_T.h b/ACE/ace/Strategies_T.h index c505b413799..9e46fd5f228 100644 --- a/ACE/ace/Strategies_T.h +++ b/ACE/ace/Strategies_T.h @@ -47,14 +47,13 @@ template<class SVC_HANDLER> class ACE_Recycling_Strategy { public: - // Useful STL-style traits. typedef typename SVC_HANDLER::addr_type addr_type; typedef SVC_HANDLER handler_type; typedef typename SVC_HANDLER::stream_type stream_type; /// Virtual Destructor - virtual ~ACE_Recycling_Strategy (void); + virtual ~ACE_Recycling_Strategy (); /// Tell the Svc_Handler something about the recycler, so that it can /// reach the recycler when necessary. @@ -96,7 +95,7 @@ public: int open (ACE_Thread_Manager * = 0, ACE_Reactor * = ACE_Reactor::instance ()); - virtual ~ACE_Creation_Strategy (void); + virtual ~ACE_Creation_Strategy (); // = Factory method. /** @@ -108,7 +107,7 @@ public: virtual int make_svc_handler (SVC_HANDLER *&sh); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -143,7 +142,7 @@ public: ACE_Thread_Manager * = 0); int open (SVC_HANDLER *, ACE_Thread_Manager * = 0); - virtual ~ACE_Singleton_Strategy (void); + virtual ~ACE_Singleton_Strategy (); // = Factory method. /// Create a Singleton SVC_HANDLER by always returning the same @@ -151,7 +150,7 @@ public: virtual int make_svc_handler (SVC_HANDLER *&); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -181,7 +180,7 @@ public: // = Intialization and termination methods. /// "Do-nothing" constructor. - ACE_DLL_Strategy (void); + ACE_DLL_Strategy (); /// Initialize the DLL strategy based upon the service's DLL /// information contained in the <svc_dll_info> string. @@ -205,7 +204,7 @@ public: virtual int make_svc_handler (SVC_HANDLER *&); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -263,10 +262,10 @@ public: virtual int activate_svc_handler (SVC_HANDLER *svc_handler, void *arg = 0); - virtual ~ACE_Concurrency_Strategy (void); + virtual ~ACE_Concurrency_Strategy (); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -311,7 +310,7 @@ public: int flags = 0); /// Destructor. - virtual ~ACE_Reactive_Strategy (void); + virtual ~ACE_Reactive_Strategy (); // = Factory method. /// Activate the @a svc_handler by registering it with the <Reactor> @@ -320,7 +319,7 @@ public: void *arg = 0); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -372,7 +371,7 @@ public: int n_threads = 1, int flags = 0); - virtual ~ACE_Thread_Strategy (void); + virtual ~ACE_Thread_Strategy (); // = Factory method. /** @@ -385,7 +384,7 @@ public: void *arg = 0); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -439,7 +438,7 @@ public: ACE_Reactor * = 0, int avoid_zombies = 0); - virtual ~ACE_Process_Strategy (void); + virtual ~ACE_Process_Strategy (); // = Factory method. /** @@ -452,7 +451,7 @@ public: void *arg = 0); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -511,12 +510,12 @@ public: bool reuse_addr = false); /// Return the underlying ACE_HANDLE of the <peer_acceptor_>. - virtual ACE_HANDLE get_handle (void) const; + virtual ACE_HANDLE get_handle () const; /// Return a reference to the <peer_acceptor_>. - virtual ACE_PEER_ACCEPTOR &acceptor (void) const; + virtual ACE_PEER_ACCEPTOR &acceptor () const; - virtual ~ACE_Accept_Strategy (void); + virtual ~ACE_Accept_Strategy (); // = Factory method. /// The default behavior delegates to the <accept> method of the @@ -524,7 +523,7 @@ public: virtual int accept_svc_handler (SVC_HANDLER *); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -563,12 +562,12 @@ public: typedef typename SVC_HANDLER::stream_type stream_type; /// Default constructor. - ACE_Connect_Strategy (void); + ACE_Connect_Strategy (); /// Return a reference to the <peer_connector_>. - virtual ACE_PEER_CONNECTOR &connector (void) const; + virtual ACE_PEER_CONNECTOR &connector () const; - virtual ~ACE_Connect_Strategy (void); + virtual ~ACE_Connect_Strategy (); // = Factory method. /// The default behavior delegates to the <connect> method of the @@ -596,7 +595,7 @@ public: int perms); /// Dump the state of an object. - void dump (void) const; + void dump () const; /// Declare the dynamic allocation hooks. ACE_ALLOC_HOOK_DECLARE; @@ -629,18 +628,18 @@ public: ACE_Scheduling_Strategy (SVC_HANDLER * = 0); /// Destructor - virtual ~ACE_Scheduling_Strategy (void); + virtual ~ACE_Scheduling_Strategy (); // = Scheduling methods /// Suspend hook. - virtual int suspend (void); + virtual int suspend (); /// Resume hook. - virtual int resume (void); + virtual int resume (); /// Dump the state of the object. - virtual void dump (void) const; + virtual void dump () const; }; /** @@ -666,13 +665,13 @@ public: // = Scheduling methods /// Suspend hook. - virtual int suspend (void); + virtual int suspend (); /// Resume hook. - virtual int resume (void); + virtual int resume (); /// Dump the state of the object. - virtual void dump (void) const; + virtual void dump () const; protected: @@ -703,13 +702,13 @@ public: // = Scheduling methods /// Suspend hook. - virtual int suspend (void); + virtual int suspend (); /// Resume hook. - virtual int resume (void); + virtual int resume (); /// Dump the state of the object. - virtual void dump (void) const; + virtual void dump () const; protected: @@ -773,7 +772,7 @@ class ACE_Refcounted_Hash_Recyclable : public ACE_Refcountable_T<ACE_Null_Mutex { public: /// Default constructor. - ACE_Refcounted_Hash_Recyclable (void); + ACE_Refcounted_Hash_Recyclable (); /// Constructor. ACE_Refcounted_Hash_Recyclable (const T &t, @@ -781,7 +780,7 @@ public: ACE_Recyclable_State state = ACE_RECYCLABLE_UNKNOWN); /// Destructor - virtual ~ACE_Refcounted_Hash_Recyclable (void); + virtual ~ACE_Refcounted_Hash_Recyclable (); /// Compares two instances. bool operator== (const ACE_Refcounted_Hash_Recyclable<T> &rhs) const; @@ -791,7 +790,7 @@ public: protected: /// Computes and returns hash value. - u_long hash_i (void) const; + u_long hash_i () const; T t_; }; @@ -846,7 +845,7 @@ public: bool delete_lock = false); /// Destructor - virtual ~ACE_Cached_Connect_Strategy (void); + virtual ~ACE_Cached_Connect_Strategy (); /// This methods allow you to change the strategies used by the /// cached connector. @@ -936,9 +935,9 @@ public: typedef ACE_Reverse_Lock<MUTEX> REVERSE_MUTEX; // = Strategy accessors - virtual ACE_Creation_Strategy<SVC_HANDLER> *creation_strategy (void) const; - virtual ACE_Recycling_Strategy<SVC_HANDLER> *recycling_strategy (void) const; - virtual ACE_Concurrency_Strategy<SVC_HANDLER> *concurrency_strategy (void) const; + virtual ACE_Creation_Strategy<SVC_HANDLER> *creation_strategy () const; + virtual ACE_Recycling_Strategy<SVC_HANDLER> *recycling_strategy () const; + virtual ACE_Concurrency_Strategy<SVC_HANDLER> *concurrency_strategy () const; protected: |