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 () |
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 61 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 67 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 72 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 77 of file sec-tpm-osx.cpp.
References ndn::CFReleaser< T >::retain().
|
inline |
Definition at line 100 of file sec-tpm-osx.cpp.
References ndn::CFReleaser< T >::release().
|
inline |
Definition at line 84 of file sec-tpm-osx.cpp.
References ndn::CFReleaser< T >::release().
|
inline |
Definition at line 94 of file sec-tpm-osx.cpp.
References ndn::CFReleaser< T >::retain().
|
inline |
Definition at line 119 of file sec-tpm-osx.cpp.
Referenced by ndn::SecTpmOsx::addAppToAcl(), ndn::SecTpmOsx::deleteKeyPairInTpmInternal(), ndn::SecTpmOsx::doesKeyExistInTpm(), ndn::SecTpmOsx::exportPrivateKeyPkcs8FromTpmInternal(), ndn::SecTpmOsx::generateKeyPairInTpmInternal(), ndn::SecTpmOsx::Impl::getKey(), ndn::SecTpmOsx::getPublicKeyFromTpm(), ndn::SecTpmOsx::importPrivateKeyPkcs8IntoTpmInternal(), ndn::SecTpmOsx::importPublicKeyPkcs1IntoTpm(), and ndn::SecTpmOsx::signInTpmInternal().
|
inline |
Definition at line 125 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 134 of file sec-tpm-osx.cpp.
References ndn::CFReleaser< T >::release().
Referenced by ndn::CFReleaser< T >::CFReleaser(), and ndn::CFReleaser< T >::operator=().
|
inline |
Definition at line 143 of file sec-tpm-osx.cpp.
Referenced by ndn::CFReleaser< T >::operator=(), ndn::CFReleaser< T >::retain(), and ndn::CFReleaser< T >::~CFReleaser().