ACE_Refcounted_Hash_Recyclable< T > Class Template Reference

#include <Strategies_T.h>

Inheritance diagram for ACE_Refcounted_Hash_Recyclable< T >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Refcounted_Hash_Recyclable< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Refcounted_Hash_Recyclable (void)
 Default constructor.

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

virtual ~ACE_Refcounted_Hash_Recyclable (void)
 Destructor.

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

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

Protected Member Functions

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


Protected Attributes

t_

template<class T>
class ACE_Refcounted_Hash_Recyclable< T >


Constructor & Destructor Documentation

template<class T>
ACE_INLINE ACE_Refcounted_Hash_Recyclable< T >::ACE_Refcounted_Hash_Recyclable void   ) 
 

Default constructor.

Definition at line 185 of file Strategies_T.inl.

References ACE_RECYCLABLE_UNKNOWN.

00186   : ACE_Refcountable (0),
00187     ACE_Hashable (),
00188     ACE_Recyclable (ACE_RECYCLABLE_UNKNOWN),
00189     t_ ()
00190 {
00191 }

template<class T>
ACE_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 194 of file Strategies_T.inl.

00197   : ACE_Refcountable (refcount),
00198     ACE_Hashable (),
00199     ACE_Recyclable (state),
00200     t_ (t)
00201 {
00202 }

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

Destructor.

Definition at line 1431 of file Strategies_T.cpp.

01432 {
01433 }


Member Function Documentation

template<class T>
ACE_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 205 of file Strategies_T.inl.

00206 {
00207   return this->t_.hash ();
00208 }

template<class T>
ACE_INLINE bool ACE_Refcounted_Hash_Recyclable< T >::operator!= const ACE_Refcounted_Hash_Recyclable< T > &  rhs  )  const
 

Definition at line 225 of file Strategies_T.inl.

References ACE_Refcounted_Hash_Recyclable< T >::operator==().

00226 {
00227   return !this->operator== (rhs);
00228 }

template<class T>
ACE_INLINE bool ACE_Refcounted_Hash_Recyclable< T >::operator== const ACE_Refcounted_Hash_Recyclable< T > &  rhs  )  const
 

Compares two instances.

Definition at line 217 of file Strategies_T.inl.

References ACE_Recyclable::recycle_state(), and ACE_Refcounted_Hash_Recyclable< T >::t_.

Referenced by ACE_Refcounted_Hash_Recyclable< T >::operator!=().

00218 {
00219   return
00220     this->recycle_state () == rhs.recycle_state ()
00221     && this->t_ == rhs.t_;
00222 }

template<class T>
ACE_INLINE T & ACE_Refcounted_Hash_Recyclable< T >::subject  ) 
 

Definition at line 211 of file Strategies_T.inl.

00212 {
00213   return this->t_;
00214 }


Member Data Documentation

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

Definition at line 814 of file Strategies_T.h.

Referenced by ACE_Refcounted_Hash_Recyclable< T >::operator==().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:27:54 2006 for ACE by doxygen 1.3.6