#include <Cache_Entries_T.h>
Public Types | |
typedef TRANSPORT_TYPE | transport_type |
Public Member Functions | |
Cache_IntId_T (void) | |
Constructor. | |
Cache_IntId_T (transport_type *transport) | |
Constructor. | |
Cache_IntId_T (const Cache_IntId_T &rhs) | |
Copy constructor. | |
~Cache_IntId_T (void) | |
Destructor. | |
Cache_IntId_T & | operator= (const Cache_IntId_T &rhs) |
Assignment operator (does copy memory). | |
bool | operator== (const Cache_IntId_T &rhs) const |
Equality comparison operator (must match both id_ and kind_). | |
bool | operator!= (const Cache_IntId_T &rhs) const |
Inequality comparison operator. | |
transport_type * | transport (void) |
Return the underlying transport. | |
const transport_type * | transport (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. | |
transport_type * | relinquish_transport (void) |
bool | is_connected (void) const |
Get the connected flag. | |
void | is_connected (bool connected) |
Set the connected flag. | |
Static Public Member Functions | |
static const char * | state_name (Cache_Entries_State st) |
Private Attributes | |
transport_type * | transport_ |
The transport that needs to be cached. | |
Cache_Entries_State | recycle_state_ |
The state of the handle. | |
bool | is_connected_ |
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.
typedef TRANSPORT_TYPE TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport_type |
TAO::Cache_IntId_T< TRANSPORT_TYPE >::Cache_IntId_T | ( | void | ) | [inline] |
Constructor.
TAO::Cache_IntId_T< TRANSPORT_TYPE >::Cache_IntId_T | ( | transport_type * | transport | ) | [inline] |
Constructor.
TAO::Cache_IntId_T< TRANSPORT_TYPE >::Cache_IntId_T | ( | const Cache_IntId_T< TRANSPORT_TYPE > & | rhs | ) | [inline] |
Copy constructor.
TAO::Cache_IntId_T< TRANSPORT_TYPE >::~Cache_IntId_T | ( | void | ) | [inline] |
Destructor.
void TAO::Cache_IntId_T< TRANSPORT_TYPE >::is_connected | ( | bool | connected | ) | [inline] |
Set the connected flag.
bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::is_connected | ( | void | ) | const [inline] |
Get the connected flag.
bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::operator!= | ( | const Cache_IntId_T< TRANSPORT_TYPE > & | rhs | ) | const [inline] |
Inequality comparison operator.
Cache_IntId_T< TRANSPORT_TYPE > & TAO::Cache_IntId_T< TRANSPORT_TYPE >::operator= | ( | const Cache_IntId_T< TRANSPORT_TYPE > & | rhs | ) | [inline] |
Assignment operator (does copy memory).
bool TAO::Cache_IntId_T< TRANSPORT_TYPE >::operator== | ( | const Cache_IntId_T< TRANSPORT_TYPE > & | rhs | ) | const [inline] |
Equality comparison operator (must match both id_ and kind_).
Cache_Entries_State TAO::Cache_IntId_T< TRANSPORT_TYPE >::recycle_state | ( | void | ) | const [inline] |
Get recycle_state.
void TAO::Cache_IntId_T< TRANSPORT_TYPE >::recycle_state | ( | Cache_Entries_State | new_state | ) | [inline] |
Set recycle_state.
Cache_IntId_T< TRANSPORT_TYPE >::transport_type * TAO::Cache_IntId_T< TRANSPORT_TYPE >::relinquish_transport | ( | void | ) | [inline] |
Relinquish ownership of the TAO_Transport object associated with this Cache_IntId_T.
const char * TAO::Cache_IntId_T< TRANSPORT_TYPE >::state_name | ( | Cache_Entries_State | st | ) | [inline, static] |
const Cache_IntId_T< TRANSPORT_TYPE >::transport_type * TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport | ( | void | ) | const [inline] |
Return the underlying transport.
Cache_IntId_T< TRANSPORT_TYPE >::transport_type * TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport | ( | void | ) | [inline] |
Return the underlying transport.
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.
Cache_Entries_State TAO::Cache_IntId_T< TRANSPORT_TYPE >::recycle_state_ [private] |
The state of the handle.
transport_type* TAO::Cache_IntId_T< TRANSPORT_TYPE >::transport_ [private] |
The transport that needs to be cached.