ACE  6.1.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

Public Member Functions

 ACE_Refcounted_Hash_Recyclable (void)
 Default constructor.
 
 ACE_Refcounted_Hash_Recyclable (const T &t, long 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 ()
 
- Public Member Functions inherited from ACE_Refcountable_T< ACE_Null_Mutex >
virtual ~ACE_Refcountable_T (void)
 Destructor.
 
long increment (void)
 Increment refcount.
 
long decrement (void)
 Decrement refcount.
 
long refcount (void) const
 Returns the current refcount.
 
- Public Member Functions inherited from ACE_Hashable
virtual ~ACE_Hashable (void)
 Destructor.
 
virtual unsigned long hash (void) const
 
- Public Member Functions inherited from ACE_Recyclable
virtual ~ACE_Recyclable (void)
 Destructor.
 
ACE_Recyclable_State recycle_state (void) const
 Get the recyclable bit.
 
void recycle_state (ACE_Recyclable_State new_state)
 Set the recyclable bit.
 

Protected Member Functions

u_long hash_i (void) const
 Computes and returns hash value.
 
- Protected Member Functions inherited from ACE_Refcountable_T< ACE_Null_Mutex >
 ACE_Refcountable_T (long refcount)
 Protected constructor.
 
- Protected Member Functions inherited from ACE_Hashable
 ACE_Hashable (void)
 Protected constructor.
 
- Protected Member Functions inherited from ACE_Recyclable
 ACE_Recyclable (ACE_Recyclable_State initial_state)
 Constructor.
 

Protected Attributes

t_
 
- Protected Attributes inherited from ACE_Refcountable_T< ACE_Null_Mutex >
ACE_Atomic_Op< ACE_Null_Mutex,
long > 
refcount_
 Current refcount.
 
- Protected Attributes inherited from ACE_Hashable
unsigned long hash_value_
 Pre-computed hash-value.
 
- Protected Attributes inherited from ACE_Recyclable
ACE_Recyclable_State recycle_state_
 Our state.
 

Constructor & Destructor Documentation

template<class T >
ACE_Refcounted_Hash_Recyclable< T >::ACE_Refcounted_Hash_Recyclable ( void  )
inline

Default constructor.

template<class T >
ACE_Refcounted_Hash_Recyclable< T >::ACE_Refcounted_Hash_Recyclable ( const T &  t,
long  refcount = 0,
ACE_Recyclable_State  state = ACE_RECYCLABLE_UNKNOWN 
)
inline

Constructor.

template<class T >
ACE_Refcounted_Hash_Recyclable< T >::~ACE_Refcounted_Hash_Recyclable ( void  )
virtual

Destructor.

Member Function Documentation

template<class T >
u_long ACE_Refcounted_Hash_Recyclable< T >::hash_i ( void  ) const
inlineprotectedvirtual

Computes and returns hash value.

Implements ACE_Hashable.

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

Compares two instances.

template<class T >
T & ACE_Refcounted_Hash_Recyclable< T >::subject ( void  )
inline

Member Data Documentation

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

The documentation for this class was generated from the following files: