CNGPtr< T, R, > Class Template Reference

#include <PKIFCNGUtils.h>

Inheritance diagram for CNGPtr< T, R, >:

Inheritance graph
[legend]
Collaboration diagram for CNGPtr< T, R, >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T, typename R, R(__stdcall *cleanupFunc)(T)>
class CNGPtr< T, R, >

like a scoped_ptr but for shuttling around the opaque handles found in CAPI and CNG. Gives a more RAII-like pattern and is easier to debug than the CLEANUP macros This class is like a scoped_ptr but for shuttling around the opaque handles found in CAPI and CNG. Gives a more RAII-like pattern and is easier to debug than the CLEANUP macros

TSP-enforcing: No

Definition at line 294 of file PKIFCNGUtils.h.


Public Member Functions

 CNGPtr (T ptr=0)
 ~CNGPtr ()
void clear ()

Constructor & Destructor Documentation

template<typename T, typename R, R(__stdcall *cleanupFunc)(T) >
CNGPtr< T, R, >::CNGPtr ( ptr = 0  )  [inline, explicit]

Interface: Subsystem

Explicit constructor

Returns:
None

Definition at line 304 of file PKIFCNGUtils.h.

References HandleGuard< T >::m_ptr.

template<typename T, typename R, R(__stdcall *cleanupFunc)(T) >
CNGPtr< T, R, >::~CNGPtr (  )  [inline]

Interface: Subsystem

Destructor

Returns:
None

Definition at line 316 of file PKIFCNGUtils.h.

References CNGPtr< T, R, >::clear().


Member Function Documentation

template<typename T, typename R, R(__stdcall *cleanupFunc)(T) >
void CNGPtr< T, R, >::clear (  )  [inline, virtual]

Interface: Subsystem

Free the underlying pointer

Returns:
None

Implements HandleGuard< T >.

Definition at line 328 of file PKIFCNGUtils.h.

References HandleGuard< T >::m_ptr.

Referenced by CNGPtr< T, R, >::~CNGPtr().


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

Generated on Mon Nov 15 11:19:49 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6