PKIFScopedArray< T > Class Template Reference

#include <PKIFCNGUtils.h>

Collaboration diagram for PKIFScopedArray< T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T>
class PKIFScopedArray< T >

An overly simple scoped array class, which should probably be made available elsewhere

TSP-enforcing: No

Definition at line 45 of file PKIFCNGUtils.h.


Public Member Functions

 PKIFScopedArray (T *ptr)
 ~PKIFScopedArray ()
T * get () const
T & operator[] (std::ptrdiff_t i) const
 operator const T * () const
 operator T * ()
void clear ()
T * assign (T *ptr)
void reset (T *ptr)
T * release ()

Constructor & Destructor Documentation

template<typename T>
PKIFScopedArray< T >::PKIFScopedArray ( T *  ptr  )  [inline, explicit]

Interface: Subsystem

Explicit constructor

Returns:
None

Definition at line 55 of file PKIFCNGUtils.h.

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

Interface: Subsystem

Destructor

Returns:
None

Definition at line 66 of file PKIFCNGUtils.h.

References PKIFScopedArray< T >::clear().


Member Function Documentation

template<typename T>
T* PKIFScopedArray< T >::get (  )  const [inline]

Definition at line 71 of file PKIFCNGUtils.h.

Referenced by _CNGVerify(), CPKIFCNGCAPI::MakeKeyID(), and CPKIFCNGCAPI::Sign().

template<typename T>
T& PKIFScopedArray< T >::operator[] ( std::ptrdiff_t  i  )  const [inline]

Definition at line 76 of file PKIFCNGUtils.h.

template<typename T>
PKIFScopedArray< T >::operator const T * (  )  const [inline]

Interface: Subsystem

Allow the smart pointers to be passed as arguments where T * is required

Returns:
None

Definition at line 88 of file PKIFCNGUtils.h.

template<typename T>
PKIFScopedArray< T >::operator T * (  )  [inline]

Interface: Subsystem

Allow the smart pointers to be passed as arguments where T * is required

Returns:
None

Definition at line 99 of file PKIFCNGUtils.h.

template<typename T>
void PKIFScopedArray< T >::clear (  )  [inline]

Interface: Subsystem

Used to free the underlying pointer

Returns:
None

Definition at line 111 of file PKIFCNGUtils.h.

Referenced by _CNGVerify(), PKIFScopedArray< T >::reset(), and PKIFScopedArray< T >::~PKIFScopedArray().

template<typename T>
T* PKIFScopedArray< T >::assign ( T *  ptr  )  [inline]

Interface: Subsystem

replace the underlying pointer without cleaning it up. the old pointer is returned and the caller is responsible for cleaning

Returns:
None

Definition at line 127 of file PKIFCNGUtils.h.

template<typename T>
void PKIFScopedArray< T >::reset ( T *  ptr  )  [inline]

Interface: Subsystem

free the old pointer and take ownership of the new

Returns:
None

Definition at line 141 of file PKIFCNGUtils.h.

References PKIFScopedArray< T >::clear().

Referenced by _CNGVerify(), CPKIFBCryptPublicKey::Initialize(), and CPKIFCNGCAPI::MakeKeyID().

template<typename T>
T* PKIFScopedArray< T >::release (  )  [inline]

Interface: Subsystem

Break the association with the underlying pointer. the caller is responsible for freeing it after this

Returns:
None

Definition at line 156 of file PKIFCNGUtils.h.

Referenced by CPKIFCNGCAPIRaw::CryptInit().


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

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