GNet::MultiServerPtr Class Reference

A private implementation class used by GNet::MultiServer. More...

#include <gmultiserver.h>

List of all members.

Public Types

typedef GNet::MultiServerImp ServerImp

Public Member Functions

 MultiServerPtr (ServerImp *=NULL)
 Constructor.
 ~MultiServerPtr ()
 Destructor.
void swap (MultiServerPtr &)
 Swaps internals with the other.
MultiServerImpget ()
 Returns the raw pointer.
const MultiServerImpget () const
 Returns the raw const pointer.
 MultiServerPtr (const MultiServerPtr &)
 Copy constructor.
void operator= (const MultiServerPtr &)
 Assignment operator.


Detailed Description

A private implementation class used by GNet::MultiServer.

The implementation is unusual in that only has proper value semantics if the contained pointer is null; it is used in a way that makes allowances for that restriction.

Definition at line 67 of file gmultiserver.h.


Member Typedef Documentation

Definition at line 70 of file gmultiserver.h.


Constructor & Destructor Documentation

GNet::MultiServerPtr::MultiServerPtr ( ServerImp p = NULL  )  [explicit]

Constructor.

Definition at line 174 of file gmultiserver.cpp.

GNet::MultiServerPtr::~MultiServerPtr (  ) 

Destructor.

Definition at line 184 of file gmultiserver.cpp.

GNet::MultiServerPtr::MultiServerPtr ( const MultiServerPtr other  ) 

Copy constructor.

Definition at line 179 of file gmultiserver.cpp.


Member Function Documentation

void GNet::MultiServerPtr::swap ( MultiServerPtr other  ) 

Swaps internals with the other.

Definition at line 194 of file gmultiserver.cpp.

References m_p.

GNet::MultiServerImp * GNet::MultiServerPtr::get (  ) 

Returns the raw pointer.

Definition at line 199 of file gmultiserver.cpp.

const GNet::MultiServerImp * GNet::MultiServerPtr::get (  )  const

Returns the raw const pointer.

Definition at line 204 of file gmultiserver.cpp.

void GNet::MultiServerPtr::operator= ( const MultiServerPtr rhs  ) 

Assignment operator.

Definition at line 189 of file gmultiserver.cpp.

References m_p.


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

Generated on Fri Apr 18 15:56:13 2008 for E-MailRelay by  doxygen 1.5.5