Public Types | Public Member Functions | Private Attributes

ACE::INet::ConnectionCacheValue Class Reference

#include <ConnectionCache.h>

Collaboration diagram for ACE::INet::ConnectionCacheValue:
Collaboration graph
[legend]

List of all members.

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)
ConnectionCacheValueoperator= (const ConnectionCacheValue &cacheval)
bool operator== (const ConnectionCacheValue &cacheval) const
bool operator!= (const ConnectionCacheValue &cacheval) const
connection_typeconnection ()
const connection_typeconnection () const
void connection (connection_type *conn)
State state () const
void state (State st)

Private Attributes

State state_
connection_typeconnection_

Detailed Description

Definition at line 119 of file ConnectionCache.h.


Member Typedef Documentation

Definition at line 131 of file ConnectionCache.h.


Member Enumeration Documentation

Enumerator:
CST_NONE 
CST_INIT 
CST_IDLE 
CST_BUSY 
CST_CLOSED 

Definition at line 122 of file ConnectionCache.h.

          {
            public:
              enum State


Constructor & Destructor Documentation

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.

ACE::INet::ConnectionCacheValue::ConnectionCacheValue ( const ConnectionCacheValue cacheval  ) 

Definition at line 92 of file ConnectionCache.cpp.

      {
        *this = cacheval;
      }


Member Function Documentation

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_;
      }


Member Data Documentation

Definition at line 155 of file ConnectionCache.h.

Definition at line 154 of file ConnectionCache.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines