summaryrefslogtreecommitdiff
path: root/ace/Strategies_T.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-28 20:24:15 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-06-28 20:24:15 +0000
commit6513df71c3368e9b25107c897073c031e2af76ff (patch)
treeffd5b383ddfcf3520f12ddee82d9603912be14b7 /ace/Strategies_T.h
parent66d2451bab0eacca0ef6790a7272d8a04334b047 (diff)
downloadATCD-6513df71c3368e9b25107c897073c031e2af76ff.tar.gz
Mon Jun 28 15:10:50 1999 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/Strategies_T.h')
-rw-r--r--ace/Strategies_T.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/ace/Strategies_T.h b/ace/Strategies_T.h
index 703ad95dfa1..0b18518c718 100644
--- a/ace/Strategies_T.h
+++ b/ace/Strategies_T.h
@@ -638,47 +638,6 @@ public:
// This is a no-op.
};
-template <class ADDR_T>
-class ACE_Hash_Addr
-{
- // = TITLE
- // Internal class to compute hash values on addresses in
- // <ACE_Cached_Connect_Strategy>.
- //
- // = DESCRIPTION
- // Intended to be used as a key to an <ACE_Hash_Map_Manager>.
- // <ADDR_T> parameter/subclass is typically <ACE_INET_Addr>. It
- // is expected to implement operator==().
-public:
- // = Initialization methods.
- ACE_Hash_Addr (void);
- // Default constructor.
-
- ACE_Hash_Addr (const ADDR_T &a);
- // Pre-compute hash value.
-
- ~ACE_Hash_Addr (void);
- // Destructor.
-
- u_long hash (void) const;
- // Computes and returns hash value. This "caches" the hash value to
- // improve performance.
-
- int operator== (const ACE_Hash_Addr<ADDR_T> &rhs) const;
- // Compares two hash values.
-
-private:
- u_long hash_i (const ADDR_T &) const;
- // This is the method that actually performs the non-cached hash
- // computation. It should typically be specialized.
-
- u_long hash_value_;
- // Pre-computed hash-value.
-
- ADDR_T addr_;
- // The underlying address.
-};
-
template <class T>
class ACE_Refcounted_Hash_Recyclable : public ACE_Refcountable,
public ACE_Hashable,
@@ -721,25 +680,6 @@ class ACE_Cached_Connect_Strategy : public ACE_Connection_Recycling_Strategy, pu
// <ACE_Cached_Connect_Strategy> is intended to be used as a
// plug-in connection strategy for <ACE_Strategy_Connector>.
// It's added value is re-use of established connections.
- //
- // = USAGE
- // In order to use this appropriately, the user must provide
- // a template specialization for <ACE_Hash_Addr::compare_i()> and
- // <ACE_Hash_Addr::hash_i()> based on the address type and the
- // service handler type. For example, a specialization using
- // <ACE_INET_Addr> and <My_Service_Handler> might be:
- // = BEGIN<NOFILL>
- // = BEGIN<CODE>
- // size_t
- // ACE_Hash_Addr<ACE_INET_Addr, My_Service_Handler>::hash_i(const ACE_INET_Addr &a)
- // {
- // return ...;
- // }
- // = END<CODE>
- // = END<NOFILL>
- //
- // = SEE ALSO
- // <ACE_Hash_Addr>.
public:
ACE_Cached_Connect_Strategy (ACE_Creation_Strategy<SVC_HANDLER> *cre_s = 0,