#include <ConnectionCache.h>
Public Types | |
enum | State { CST_NONE, CST_INIT, CST_IDLE, CST_BUSY, CST_CLOSED } |
typedef ConnectionHolder | connection_type |
Public Member Functions | |
ConnectionCacheValue () | |
ConnectionCacheValue (connection_type *connection) | |
ConnectionCacheValue (const ConnectionCacheValue &cacheval) | |
ConnectionCacheValue & | operator= (const ConnectionCacheValue &cacheval) |
bool | operator== (const ConnectionCacheValue &cacheval) const |
bool | operator!= (const ConnectionCacheValue &cacheval) const |
connection_type * | connection () |
const connection_type * | connection () const |
void | connection (connection_type *conn) |
State | state () const |
void | state (State st) |
Private Attributes | |
State | state_ |
connection_type * | connection_ |
Definition at line 119 of file ConnectionCache.h.
Definition at line 131 of file ConnectionCache.h.
Definition at line 122 of file ConnectionCache.h.
{ public: enum State
ACE::INet::ConnectionCacheValue::ConnectionCacheValue | ( | ) |
Definition at line 80 of file ConnectionCache.cpp.
: state_ (CST_INIT), connection_ (0) { }
ACE::INet::ConnectionCacheValue::ConnectionCacheValue | ( | connection_type * | connection | ) | [explicit] |
Definition at line 86 of file ConnectionCache.cpp.
: state_ (connection ? CST_IDLE : CST_INIT), connection_ (connection) { }
ACE::INet::ConnectionCacheValue::ConnectionCacheValue | ( | const ConnectionCacheValue & | cacheval | ) |
Definition at line 92 of file ConnectionCache.cpp.
{
*this = cacheval;
}
ConnectionCacheValue::connection_type * ACE::INet::ConnectionCacheValue::connection | ( | ) | [inline] |
Definition at line 56 of file ConnectionCache.inl.
{ return this->connection_; }
const ConnectionCacheValue::connection_type * ACE::INet::ConnectionCacheValue::connection | ( | ) | const [inline] |
Definition at line 62 of file ConnectionCache.inl.
{ return this->connection_; }
void ACE::INet::ConnectionCacheValue::connection | ( | connection_type * | conn | ) | [inline] |
Definition at line 68 of file ConnectionCache.inl.
{ this->connection_ = conn; }
bool ACE::INet::ConnectionCacheValue::operator!= | ( | const ConnectionCacheValue & | cacheval | ) | const [inline] |
Definition at line 50 of file ConnectionCache.inl.
{
return !((*this) == cacheval);
}
ConnectionCacheValue & ACE::INet::ConnectionCacheValue::operator= | ( | const ConnectionCacheValue & | cacheval | ) |
Definition at line 97 of file ConnectionCache.cpp.
{ if (this != &cacheval) { this->state_ = cacheval.state (); this->connection_ = const_cast<connection_type*> (cacheval.connection ()); } return *this; }
bool ACE::INet::ConnectionCacheValue::operator== | ( | const ConnectionCacheValue & | cacheval | ) | const [inline] |
Definition at line 43 of file ConnectionCache.inl.
{ return this->connection () == cacheval.connection () && this->state () == cacheval.state (); }
void ACE::INet::ConnectionCacheValue::state | ( | State | st | ) | [inline] |
Definition at line 80 of file ConnectionCache.inl.
{ this->state_ = st; }
ConnectionCacheValue::State ACE::INet::ConnectionCacheValue::state | ( | void | ) | const [inline] |
Definition at line 74 of file ConnectionCache.inl.
{ return this->state_; }
Definition at line 155 of file ConnectionCache.h.
State ACE::INet::ConnectionCacheValue::state_ [private] |
Definition at line 154 of file ConnectionCache.h.