Helper class to wrap CoreFoundation object pointers. More...
Public Member Functions | |
CFReleaser () | |
CFReleaser (const T &typeRef) | |
CFReleaser (const CFReleaser &inReleaser) | |
CFReleaser & | operator= (const T &typeRef) |
CFReleaser & | operator= (const CFReleaser &inReleaser) |
~CFReleaser () | |
const T & | get () const |
T & | get () |
void | retain (const T &typeRef) |
void | release () |
bool | operator== (std::nullptr_t) |
bool | operator!= (std::nullptr_t) |
Helper class to wrap CoreFoundation object pointers.
The class is similar in spirit to shared_ptr, but uses CoreFoundation mechanisms to retain/release object.
Original implementation by Christopher Hunt and it was borrowed from http://www.cocoabuilder.com/archive/cocoa/130776-auto-cfrelease-and.html
Definition at line 62 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 68 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 73 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 78 of file sec-tpm-osx.cpp.
References ndn::security::CFReleaser< T >::retain().
|
inline |
Definition at line 101 of file sec-tpm-osx.cpp.
References ndn::security::CFReleaser< T >::release().
|
inline |
Definition at line 85 of file sec-tpm-osx.cpp.
References ndn::security::CFReleaser< T >::release().
|
inline |
Definition at line 95 of file sec-tpm-osx.cpp.
References ndn::security::CFReleaser< T >::retain().
|
inline |
Definition at line 120 of file sec-tpm-osx.cpp.
Referenced by ndn::security::SecTpmOsx::addAppToAcl(), ndn::security::SecTpmOsx::deleteKeyPairInTpmInternal(), ndn::security::SecTpmOsx::doesKeyExistInTpm(), ndn::security::SecTpmOsx::exportPrivateKeyPkcs8FromTpmInternal(), ndn::security::SecTpmOsx::generateKeyPairInTpmInternal(), ndn::security::SecTpmOsx::getPublicKeyFromTpm(), ndn::security::SecTpmOsx::importPrivateKeyPkcs8IntoTpmInternal(), ndn::security::SecTpmOsx::importPublicKeyPkcs1IntoTpm(), and ndn::security::SecTpmOsx::signInTpmInternal().
|
inline |
Definition at line 126 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 135 of file sec-tpm-osx.cpp.
References ndn::security::CFReleaser< T >::release().
Referenced by ndn::security::CFReleaser< T >::CFReleaser(), and ndn::security::CFReleaser< T >::operator=().
|
inline |
Definition at line 145 of file sec-tpm-osx.cpp.
Referenced by ndn::security::CFReleaser< T >::operator=(), ndn::security::CFReleaser< T >::retain(), and ndn::security::CFReleaser< T >::~CFReleaser().
|
inline |
Definition at line 154 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 160 of file sec-tpm-osx.cpp.