ACE 8.0.5
Loading...
Searching...
No Matches
ACE_Refcounted_Hash_Recyclable< T > Class Template Reference

#include <Strategies_T.h>

Inheritance diagram for ACE_Refcounted_Hash_Recyclable< T >:
Collaboration diagram for ACE_Refcounted_Hash_Recyclable< T >:

Public Member Functions

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

Protected Member Functions

u_long hash_i () 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 ()=default
 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

◆ ACE_Refcounted_Hash_Recyclable() [1/2]

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

Default constructor.

◆ ACE_Refcounted_Hash_Recyclable() [2/2]

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.

◆ ~ACE_Refcounted_Hash_Recyclable()

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

Destructor.

Member Function Documentation

◆ hash_i()

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

Computes and returns hash value.

Implements ACE_Hashable.

◆ operator!=()

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

◆ operator==()

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

Compares two instances.

◆ subject()

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

Member Data Documentation

◆ t_

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

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