TAO::Cache_IntId Class Reference

Helper class for TAO_Transport_Cache_Manager. More...

#include <Cache_Entries.h>

Collaboration diagram for TAO::Cache_IntId:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Cache_IntId (void)
 Constructor.
 Cache_IntId (TAO_Transport *transport)
 Constructor.
 Cache_IntId (const Cache_IntId &rhs)
 Copy constructor.
 ~Cache_IntId (void)
 Destructor.
Cache_IntIdoperator= (const Cache_IntId &rhs)
 Assignment operator (does copy memory).
bool operator== (const Cache_IntId &rhs) const
 Equality comparison operator (must match both id_ and kind_).
bool operator!= (const Cache_IntId &rhs) const
 Inequality comparison operator.
TAO_Transporttransport (void)
 Return the underlying transport.
const TAO_Transporttransport (void) const
 Return the underlying transport.
void recycle_state (Cache_Entries_State new_state)
 Set <recycle_state>.
Cache_Entries_State recycle_state (void) const
 Get <recycle_state>.
TAO_Transportrelinquish_transport (void)

Static Private Member Functions

static const char * state_name (Cache_Entries_State st)

Private Attributes

TAO_Transporttransport_
 The transport that needs to be cached.
Cache_Entries_State recycle_state_
 The state of the handle.
bool is_connected_

Friends

class TAO::Transport_Cache_Manager


Detailed Description

Helper class for TAO_Transport_Cache_Manager.

Helper class that wraps the

part of the Map or table holding the Transport state.: unifies data items, so they can be stored together as a

for a <key> in a table holding the state of the Transport Cache.


Constructor & Destructor Documentation

ACE_INLINE TAO::Cache_IntId::Cache_IntId ( void   ) 

Constructor.

TAO::Cache_IntId::Cache_IntId ( TAO_Transport transport  ) 

Constructor.

ACE_INLINE TAO::Cache_IntId::Cache_IntId ( const Cache_IntId rhs  ) 

Copy constructor.

TAO::Cache_IntId::~Cache_IntId ( void   ) 

Destructor.


Member Function Documentation

Cache_IntId & TAO::Cache_IntId::operator= ( const Cache_IntId rhs  ) 

Assignment operator (does copy memory).

ACE_INLINE bool TAO::Cache_IntId::operator== ( const Cache_IntId rhs  )  const

Equality comparison operator (must match both id_ and kind_).

ACE_INLINE bool TAO::Cache_IntId::operator!= ( const Cache_IntId rhs  )  const

Inequality comparison operator.

ACE_INLINE TAO_Transport * TAO::Cache_IntId::transport ( void   ) 

Return the underlying transport.

ACE_INLINE const TAO_Transport * TAO::Cache_IntId::transport ( void   )  const

Return the underlying transport.

ACE_INLINE void TAO::Cache_IntId::recycle_state ( Cache_Entries_State  new_state  ) 

Set <recycle_state>.

ACE_INLINE Cache_Entries_State TAO::Cache_IntId::recycle_state ( void   )  const

Get <recycle_state>.

ACE_INLINE TAO_Transport * TAO::Cache_IntId::relinquish_transport ( void   ) 

Relinquish ownership of the TAO_Transport object associated with this Cache_IntId.

Note:
This method should go away once the Transport_Cache_Map_Manager is improved so that it returns TAO_Transport objects when performing a find() operation. This method really only exists to get around inadequacies in the Transport_Cache_Map_Manager interface.

ACE_INLINE const char * TAO::Cache_IntId::state_name ( Cache_Entries_State  st  )  [static, private]


Friends And Related Function Documentation

friend class TAO::Transport_Cache_Manager [friend]


Member Data Documentation

TAO_Transport* TAO::Cache_IntId::transport_ [private]

The transport that needs to be cached.

Cache_Entries_State TAO::Cache_IntId::recycle_state_ [private]

The state of the handle.

bool TAO::Cache_IntId::is_connected_ [private]

This is an analog for the transport::is_connected(), which is guarded by a mutex.


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

Generated on Thu Nov 27 05:12:32 2008 for TAO by  doxygen 1.5.6