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

Smart Pointer
[RAII - Resource Acquisition Is Initialization]

Collaboration diagram for Smart Pointer:

Detailed Description

A smart pointer is a generic term for an object that helps with RAII style 'scope based' designs. The 'smart pointer' usually takes ownership of a 'bare' pointer and takes responsibility for destroying the 'bare' pointer when the 'smart pointer' goes out of scope. See here for more details.

This section contains links to the code that implements this concept.


Classes

class  TConditionalSmartPointer
 A smart pointer to memory using the C++ new API. Calls delete on any memory that the TConditionalSmartPointer owns when it goes out of scope to aid in scope based designs. Note that the TConditionalSmartPointer can be told that it does NOT own the memory that it is given; this is useful if sometimes it holds dynamically allocated memory that it should own and delete and sometimes it holds a pointer to, for example, a static null object implementation. More...
class  TReferenceCountedSmartPointer
 A template smart pointer class that manages objects that support AddRef() and Release() style reference counting. More...
class  TReleaseOnlyReferenceCountedSmartPointer
 A template smart pointer class that manages objects that support Release() style reference counting. More...
class  CSmartHandle
 A smart pointer to a HANDLE. Calls CloseServiceHandle() on any SC_HANDLE that the it owns when the CSmartHandle goes out of scope to in scope based designs. More...
class  CSmartHandle
 A smart pointer to a HANDLE. Calls CloseHandle() on any HANDLE that the it owns when the CSmartHandle goes out of scope to aid in scope based designs. More...
class  CSmartHeapPointer
 A smart pointer to memory using the HeapAlloc() API. Calls HeapFree() on any memory that the CSmartHeapPointer owns when it goes out of scope to aid in scope based designs. More...
class  CSmartLocalPointer
 A smart pointer to memory using the LocalAlloc() API. Calls LocalFree() on any memory that the CSmartLocalPointer owns when it goes out of scope to aid in scope based designs. More...


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