#include <PKIFCNGUtils.h>
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 () |
PKIFScopedArray< T >::PKIFScopedArray | ( | T * | ptr | ) | [inline, explicit] |
Interface: Subsystem
Explicit constructor
Definition at line 55 of file PKIFCNGUtils.h.
PKIFScopedArray< T >::~PKIFScopedArray | ( | ) | [inline] |
Interface: Subsystem
Destructor
Definition at line 66 of file PKIFCNGUtils.h.
References PKIFScopedArray< T >::clear().
T* PKIFScopedArray< T >::get | ( | ) | const [inline] |
Definition at line 71 of file PKIFCNGUtils.h.
Referenced by _CNGVerify(), CPKIFCNGCAPI::MakeKeyID(), and CPKIFCNGCAPI::Sign().
T& PKIFScopedArray< T >::operator[] | ( | std::ptrdiff_t | i | ) | const [inline] |
Definition at line 76 of file PKIFCNGUtils.h.
PKIFScopedArray< T >::operator const T * | ( | ) | const [inline] |
Interface: Subsystem
Allow the smart pointers to be passed as arguments where T * is required
Definition at line 88 of file PKIFCNGUtils.h.
PKIFScopedArray< T >::operator T * | ( | ) | [inline] |
Interface: Subsystem
Allow the smart pointers to be passed as arguments where T * is required
Definition at line 99 of file PKIFCNGUtils.h.
void PKIFScopedArray< T >::clear | ( | ) | [inline] |
Interface: Subsystem
Used to free the underlying pointer
Definition at line 111 of file PKIFCNGUtils.h.
Referenced by _CNGVerify(), PKIFScopedArray< T >::reset(), and PKIFScopedArray< T >::~PKIFScopedArray().
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
Definition at line 127 of file PKIFCNGUtils.h.
void PKIFScopedArray< T >::reset | ( | T * | ptr | ) | [inline] |
Interface: Subsystem
free the old pointer and take ownership of the new
Definition at line 141 of file PKIFCNGUtils.h.
References PKIFScopedArray< T >::clear().
Referenced by _CNGVerify(), CPKIFBCryptPublicKey::Initialize(), and CPKIFCNGCAPI::MakeKeyID().
T* PKIFScopedArray< T >::release | ( | ) | [inline] |
Interface: Subsystem
Break the association with the underlying pointer. the caller is responsible for freeing it after this
Definition at line 156 of file PKIFCNGUtils.h.
Referenced by CPKIFCNGCAPIRaw::CryptInit().