Helper class to wrap CoreFoundation object pointers. More...
#include <cf-releaser-osx.hpp>
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 | retain () |
void | release () |
Friends | |
bool | operator== (const CFReleaser &lhs, std::nullptr_t) |
bool | operator!= (const CFReleaser &lhs, 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 49 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 52 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 57 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 62 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 85 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 69 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 79 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 92 of file cf-releaser-osx.hpp.
Referenced by ndn::security::tpm::BackEndOsx::decrypt(), ndn::security::tpm::BackEndOsx::derivePublicKey(), ndn::security::tpm::exportItem(), ndn::security::tpm::getErrorMessage(), ndn::security::tpm::getFailureReason(), ndn::security::tpm::KeyHandleOsx::KeyHandleOsx(), ndn::net::NetworkMonitorImplOsx::listNetworkInterfaces(), ndn::net::NetworkMonitorImplOsx::NetworkMonitorImplOsx(), ndn::security::tpm::BackEndOsx::sign(), and ndn::net::NetworkMonitorImplOsx::~NetworkMonitorImplOsx().
|
inline |
Definition at line 98 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 105 of file cf-releaser-osx.hpp.
Referenced by ndn::security::tpm::BackEndOsx::derivePublicKey(), and ndn::security::tpm::getKeyRef().
|
inline |
Definition at line 115 of file cf-releaser-osx.hpp.
Referenced by ndn::detail::CFReleaser< CFRunLoopSourceRef >::CFReleaser(), ndn::detail::CFReleaser< CFRunLoopSourceRef >::operator=(), and ndn::detail::CFReleaser< CFRunLoopSourceRef >::retain().
|
inline |
Definition at line 123 of file cf-releaser-osx.hpp.
Referenced by ndn::detail::CFReleaser< CFRunLoopSourceRef >::operator=(), ndn::detail::CFReleaser< CFRunLoopSourceRef >::retain(), and ndn::detail::CFReleaser< CFRunLoopSourceRef >::~CFReleaser().
|
friend |
Definition at line 133 of file cf-releaser-osx.hpp.
|
friend |
Definition at line 139 of file cf-releaser-osx.hpp.