CNGFlagsPtr< T, R, F, > Class Template Reference

#include <PKIFCNGUtils.h>

Inheritance diagram for CNGFlagsPtr< T, R, F, >:

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

Collaboration graph
[legend]

List of all members.


Detailed Description

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

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

TSP-enforcing: No

Definition at line 350 of file PKIFCNGUtils.h.


Public Member Functions

 CNGFlagsPtr (T ptr=0, F flags=0)
 ~CNGFlagsPtr ()
void clear ()

Constructor & Destructor Documentation

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

Interface: Subsystem

Explicit constructor

Returns:
None

Definition at line 360 of file PKIFCNGUtils.h.

References HandleGuard< T >::m_ptr.

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

Interface: Subsystem

Destructor

Returns:
None

Definition at line 372 of file PKIFCNGUtils.h.

References CNGFlagsPtr< T, R, F, >::clear().


Member Function Documentation

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

Interface: Subsystem

Free the underlying pointer

Returns:
None

Implements HandleGuard< T >.

Definition at line 384 of file PKIFCNGUtils.h.

References HandleGuard< T >::m_ptr.

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


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