TAO  2.3.3
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
TAO::Cache_IntId_T< TRANSPORT_TYPE > Class Template Reference

Helper class for TAO_Transport_Cache_Manager. More...

#include <Cache_Entries_T.h>

Public Types

typedef TRANSPORT_TYPE transport_type
 

Public Member Functions

 Cache_IntId_T (void)
 Constructor. More...
 
 Cache_IntId_T (transport_type *transport)
 Constructor. More...
 
 Cache_IntId_T (const Cache_IntId_T &rhs)
 Copy constructor. More...
 
 ~Cache_IntId_T (void)
 Destructor. More...
 
Cache_IntId_Toperator= (const Cache_IntId_T &rhs)
 Assignment operator (does copy memory). More...
 
bool operator== (const Cache_IntId_T &rhs) const
 Equality comparison operator (must match both id_ and kind_). More...
 
bool operator!= (const Cache_IntId_T &rhs) const
 Inequality comparison operator. More...
 
transport_typetransport (void)
 Return the underlying transport. More...
 
const transport_typetransport (void) const
 Return the underlying transport. More...
 
void recycle_state (Cache_Entries_State new_state)
 Set recycle_state. More...
 
Cache_Entries_State recycle_state (void) const
 Get recycle_state. More...
 
transport_typerelinquish_transport (void)
 
bool is_connected (void) const
 Get the connected flag. More...
 
void is_connected (bool connected)
 Set the connected flag. More...
 

Static Public Member Functions

static const char * state_name (Cache_Entries_State st)
 

Private Attributes

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

Detailed Description

template<typename TRANSPORT_TYPE>
class TAO::Cache_IntId_T< TRANSPORT_TYPE >

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.

Member Typedef Documentation

template<typename TRANSPORT_TYPE >
typedef TRANSPORT_TYPE TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport_type

Constructor & Destructor Documentation

template<typename TRANSPORT_TYPE >
ACE_INLINE TAO::Cache_IntId_T< TRANSPORT_TYPE >::Cache_IntId_T ( void  )

Constructor.

template<typename TRANSPORT_TYPE >
TAO::Cache_IntId_T< TRANSPORT_TYPE >::Cache_IntId_T ( transport_type transport)

Constructor.

template<typename TRANSPORT_TYPE >
ACE_INLINE TAO::Cache_IntId_T< TRANSPORT_TYPE >::Cache_IntId_T ( const Cache_IntId_T< TRANSPORT_TYPE > &  rhs)

Copy constructor.

template<typename TRANSPORT_TYPE >
TAO::Cache_IntId_T< TRANSPORT_TYPE >::~Cache_IntId_T ( void  )

Destructor.

Member Function Documentation

template<typename TRANSPORT_TYPE >
ACE_INLINE bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::is_connected ( void  ) const

Get the connected flag.

template<typename TRANSPORT_TYPE >
ACE_INLINE void TAO::Cache_IntId_T< TRANSPORT_TYPE >::is_connected ( bool  connected)

Set the connected flag.

template<typename TRANSPORT_TYPE >
ACE_INLINE bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::operator!= ( const Cache_IntId_T< TRANSPORT_TYPE > &  rhs) const

Inequality comparison operator.

template<typename TRANSPORT_TYPE >
Cache_IntId_T< TRANSPORT_TYPE > & TAO::Cache_IntId_T< TRANSPORT_TYPE >::operator= ( const Cache_IntId_T< TRANSPORT_TYPE > &  rhs)

Assignment operator (does copy memory).

template<typename TRANSPORT_TYPE >
ACE_INLINE bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::operator== ( const Cache_IntId_T< TRANSPORT_TYPE > &  rhs) const

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

template<typename TRANSPORT_TYPE >
void TAO::Cache_IntId_T< TRANSPORT_TYPE >::recycle_state ( Cache_Entries_State  new_state)

Set recycle_state.

template<typename TRANSPORT_TYPE >
ACE_INLINE Cache_Entries_State TAO::Cache_IntId_T< TRANSPORT_TYPE >::recycle_state ( void  ) const

Get recycle_state.

template<typename TRANSPORT_TYPE >
ACE_INLINE Cache_IntId_T< TRANSPORT_TYPE >::transport_type * TAO::Cache_IntId_T< TRANSPORT_TYPE >::relinquish_transport ( void  )

Relinquish ownership of the TAO_Transport object associated with this Cache_IntId_T.

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.
template<typename TRANSPORT_TYPE >
ACE_INLINE const char * TAO::Cache_IntId_T< TRANSPORT_TYPE >::state_name ( Cache_Entries_State  st)
static
template<typename TRANSPORT_TYPE >
ACE_INLINE Cache_IntId_T< TRANSPORT_TYPE >::transport_type * TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport ( void  )

Return the underlying transport.

template<typename TRANSPORT_TYPE >
ACE_INLINE const Cache_IntId_T< TRANSPORT_TYPE >::transport_type * TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport ( void  ) const

Return the underlying transport.

Member Data Documentation

template<typename TRANSPORT_TYPE >
bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::is_connected_
private

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

template<typename TRANSPORT_TYPE >
Cache_Entries_State TAO::Cache_IntId_T< TRANSPORT_TYPE >::recycle_state_
private

The state of the handle.

template<typename TRANSPORT_TYPE >
transport_type* TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport_
private

The transport that needs to be cached.


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