NAME

ACE_Hash_Addr - Internal class to compute hash values on addresses in ACE_Cached_Connect_Strategy.

SYNOPSIS

#include <ace/ACE_Strategies_T.h>

template<class ADDR_T> class ACE_Hash_Addr { public: ACE_Hash_Addr (void); ACE_Hash_Addr (const ADDR_T &a); ACE_Hash_Addr (const ADDR_T &a, int recyclable); u_long hash (void) const; int operator== (const ACE_Hash_Addr<ADDR_T> &rhs) const; int recyclable (void) const; void recyclable (int new_value); private: size_t hash_i (const ADDR_T &) const; u_long hash_value_; int recyclable_; ADDR_T addr_; };

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==().

Initialization methods.

ACE_Hash_Addr (void);

ACE_Hash_Addr (const ADDR_T &a);

ACE_Hash_Addr (const ADDR_T &a, int recyclable);

u_long hash (void) const;

int operator== (const ACE_Hash_Addr<ADDR_T> &rhs) const;

Set/Get the recyclable bit

int recyclable (void) const;

void recyclable (int new_value);

AUTHOR

Doug Schmidt

LIBRARY

ace