CNGPtrCF< T > Class Template Reference

#include <PKIFCNGUtils.h>

Inheritance diagram for CNGPtrCF< T >:

Inheritance graph
[legend]
Collaboration diagram for CNGPtrCF< T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T>
class CNGPtrCF< T >

This one allows a functor, for handles whose cleanup functions don't work with either of the above signatures. Gives a more RAII-like pattern and is easier to debug than the CLEANUP macros

TSP-enforcing: No

Definition at line 408 of file PKIFCNGUtils.h.


Public Member Functions

 CNGPtrCF (T ptr=0, CleanupFunctor< T > *cf=new LocalFreeFunctor< T >())
 ~CNGPtrCF ()
void clear ()

Constructor & Destructor Documentation

template<typename T>
CNGPtrCF< T >::CNGPtrCF ( ptr = 0,
CleanupFunctor< T > *  cf = new LocalFreeFunctor<T>() 
) [inline, explicit]

Interface: Subsystem

Explicit constructor

Returns:
None

Definition at line 418 of file PKIFCNGUtils.h.

References HandleGuard< T >::m_ptr.

template<typename T>
CNGPtrCF< T >::~CNGPtrCF (  )  [inline]

Interface: Subsystem

Destructor

Returns:
None

Definition at line 431 of file PKIFCNGUtils.h.

References CNGPtrCF< T >::clear().


Member Function Documentation

template<typename T>
void CNGPtrCF< T >::clear (  )  [inline, virtual]

Interface: Subsystem

Free the underlying pointer

Returns:
None

Implements HandleGuard< T >.

Definition at line 443 of file PKIFCNGUtils.h.

References HandleGuard< T >::m_ptr.

Referenced by CNGPtrCF< T >::~CNGPtrCF().


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