Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Refcounted_Hash_Recyclable Class Template Reference

#include <Strategies_T.h>

Inheritance diagram for ACE_Refcounted_Hash_Recyclable:

Inheritance graph
[legend]
Collaboration diagram for ACE_Refcounted_Hash_Recyclable:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Refcounted_Hash_Recyclable (void)
 Default constructor. More...

 ACE_Refcounted_Hash_Recyclable (const T &t, int refcount=0, ACE_Recyclable_State state=ACE_RECYCLABLE_UNKNOWN)
 Constructor. More...

virtual ~ACE_Refcounted_Hash_Recyclable (void)
 Destructor. More...

int operator== (const ACE_Refcounted_Hash_Recyclable< T > &rhs) const
 Compares two instances. More...

int operator!= (const ACE_Refcounted_Hash_Recyclable< T > &rhs) const
T & subject ()

Protected Methods

u_long hash_i (void) const
 Computes and returns hash value. More...


Protected Attributes

t_

template<class T>
class ACE_Refcounted_Hash_Recyclable< T >


Constructor & Destructor Documentation

template<class T>
ASYS_INLINE ACE_Refcounted_Hash_Recyclable< T >::ACE_Refcounted_Hash_Recyclable void   
 

Default constructor.

Definition at line 349 of file Strategies_T.i.

References ACE_RECYCLABLE_UNKNOWN.

00350   : ACE_Refcountable (0),
00351     ACE_Hashable (),
00352     ACE_Recyclable (ACE_RECYCLABLE_UNKNOWN),
00353     t_ ()
00354 {
00355 }

template<class T>
ASYS_INLINE ACE_Refcounted_Hash_Recyclable< T >::ACE_Refcounted_Hash_Recyclable const T &    t,
int    refcount = 0,
ACE_Recyclable_State    state = ACE_RECYCLABLE_UNKNOWN
 

Constructor.

Definition at line 358 of file Strategies_T.i.

References ACE_Recyclable_State.

00361   : ACE_Refcountable (refcount),
00362     ACE_Hashable (),
00363     ACE_Recyclable (state),
00364     t_ (t)
00365 {
00366 }

template<class T>
ASYS_INLINE ACE_Refcounted_Hash_Recyclable< T >::~ACE_Refcounted_Hash_Recyclable void    [virtual]
 

Destructor.

Definition at line 369 of file Strategies_T.i.

00370 {
00371 }


Member Function Documentation

template<class T>
ASYS_INLINE u_long ACE_Refcounted_Hash_Recyclable< T >::hash_i void    const [protected, virtual]
 

Computes and returns hash value.

Implements ACE_Hashable.

Definition at line 374 of file Strategies_T.i.

References t_.

00375 {
00376   return this->t_.hash ();
00377 }

template<class T>
ASYS_INLINE int ACE_Refcounted_Hash_Recyclable< T >::operator!= const ACE_Refcounted_Hash_Recyclable< T > &    rhs const
 

Definition at line 393 of file Strategies_T.i.

References operator==.

00394 {
00395   return !this->operator== (rhs);
00396 }

template<class T>
ASYS_INLINE int ACE_Refcounted_Hash_Recyclable< T >::operator== const ACE_Refcounted_Hash_Recyclable< T > &    rhs const
 

Compares two instances.

Definition at line 386 of file Strategies_T.i.

References ACE_Recyclable::recycle_state, and t_.

Referenced by operator!=.

00387 {
00388   return this->recycle_state () == rhs.recycle_state () &&
00389          this->t_ == rhs.t_;
00390 }

template<class T>
ASYS_INLINE T & ACE_Refcounted_Hash_Recyclable< T >::subject  
 

Definition at line 380 of file Strategies_T.i.

References t_.

Referenced by ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::check_hint_i, and ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::find.

00381 {
00382   return this->t_;
00383 }


Member Data Documentation

template<class T>
T ACE_Refcounted_Hash_Recyclable::t_ [protected]
 

Definition at line 810 of file Strategies_T.h.

Referenced by hash_i, operator==, and subject.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:55:02 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002