The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CSmartHGlobal Class Reference

Collaboration diagram for CSmartHGlobal:

List of all members.

Public Member Functions

 CSmartHGlobal ()
 Construct a CSmartHGlobal that doesn't, currently, own any memory.
 CSmartHGlobal (HGLOBAL hGlobal)
 Construct a CSmartHandle that takes ownership of the supplied HGLOBAL.
 CSmartHGlobal (const CSmartHGlobal &rhs)
 ~CSmartHGlobal ()
CSmartHGlobaloperator= (HGLOBAL hGlobal)
CSmartHGlobaloperator= (const CSmartHGlobal &rhs)
 operator HGLOBAL () const
 Access the HGLOBAL... We should remove this...
void Attach (HGLOBAL hGlobal)
 Take ownership of the supplied HGLOBAL.
HGLOBAL Detach ()
 No longer manage ownership of the HGLOBAL and return it.
bool IsValid () const
 Returns true if the CSmartHandle currently has ownership of a HGLOBAL.
size_t GetSize () const
 Returns the size of the HGLOBAL.


Constructor & Destructor Documentation

CSmartHGlobal (  ) 

Construct a CSmartHGlobal that doesn't, currently, own any memory.

CSmartHGlobal ( HGLOBAL  hGlobal  )  [explicit]

Construct a CSmartHandle that takes ownership of the supplied HGLOBAL.

CSmartHGlobal ( const CSmartHGlobal rhs  ) 

~CSmartHGlobal (  ) 


Member Function Documentation

CSmartHGlobal & operator= ( HGLOBAL  hGlobal  ) 

CSmartHGlobal& operator= ( const CSmartHGlobal rhs  ) 

operator HGLOBAL (  )  const

Access the HGLOBAL... We should remove this...

void Attach ( HGLOBAL  hGlobal  ) 

Take ownership of the supplied HGLOBAL.

HGLOBAL Detach (  ) 

No longer manage ownership of the HGLOBAL and return it.

bool IsValid (  )  const

Returns true if the CSmartHandle currently has ownership of a HGLOBAL.

size_t GetSize (  )  const

Returns the size of the HGLOBAL.


Generated on Sun Sep 12 19:11:49 2021 for The Server Framework - v7.4 by doxygen 1.5.3