#include <PKIFCNGUtils.h>


TSP-enforcing: No
Definition at line 175 of file PKIFCNGUtils.h.
Public Member Functions | |
| HandleGuard (T ptr=0) | |
| virtual | ~HandleGuard () |
| virtual void | clear ()=0 |
| T | get () const |
| T | operator-> () const |
| operator const T () const | |
| operator T () | |
| T * | operator & () const |
| T | assign (T ptr) |
| void | reset (T ptr) |
| T | release () |
Protected Attributes | |
| T | m_ptr |
| HandleGuard< T >::HandleGuard | ( | T | ptr = 0 |
) | [inline, explicit] |
Interface: Subsystem
Explicit constructor
Definition at line 185 of file PKIFCNGUtils.h.
| virtual HandleGuard< T >::~HandleGuard | ( | ) | [inline, virtual] |
| virtual void HandleGuard< T >::clear | ( | ) | [pure virtual] |
Implemented in CNGPtr< T, R, >, CNGFlagsPtr< T, R, F, >, and CNGPtrCF< T >.
Referenced by HandleGuard< T >::reset().
| T HandleGuard< T >::get | ( | ) | const [inline] |
| T HandleGuard< T >::operator-> | ( | ) | const [inline] |
| HandleGuard< T >::operator const T | ( | ) | const [inline] |
Interface: Subsystem
Allow the smart pointers to be passed as arguments where const T & is required
Definition at line 219 of file PKIFCNGUtils.h.
References HandleGuard< T >::m_ptr.
| HandleGuard< T >::operator T | ( | ) | [inline] |
| T* HandleGuard< T >::operator & | ( | ) | const [inline] |
| T HandleGuard< 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 242 of file PKIFCNGUtils.h.
References HandleGuard< T >::m_ptr.
Referenced by HandleGuard< T >::reset().
| void HandleGuard< T >::reset | ( | T | ptr | ) | [inline] |
Interface: Subsystem
Clean and replace the underlying pointer
Definition at line 256 of file PKIFCNGUtils.h.
References HandleGuard< T >::assign(), and HandleGuard< T >::clear().
| T HandleGuard< T >::release | ( | ) | [inline] |
Interface: Subsystem
Break the association with the underlying pointer. the caller is responsible for freeing it after this
Definition at line 270 of file PKIFCNGUtils.h.
References HandleGuard< T >::m_ptr.
T HandleGuard< T >::m_ptr [protected] |
Definition at line 278 of file PKIFCNGUtils.h.
Referenced by HandleGuard< T >::assign(), CNGPtrCF< T >::clear(), CNGFlagsPtr< T, R, F, >::clear(), CNGPtr< T, R, >::clear(), CNGFlagsPtr< T, R, F, >::CNGFlagsPtr(), CNGPtr< T, R, >::CNGPtr(), CNGPtrCF< T >::CNGPtrCF(), HandleGuard< T >::get(), HandleGuard< T >::operator &(), HandleGuard< T >::operator const T(), HandleGuard< T >::operator T(), HandleGuard< T >::operator->(), and HandleGuard< T >::release().
1.5.6