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 () |
bool | operator== (const std::nullptr_t &) |
bool | operator!= (const std::nullptr_t &) |
void | retain (const T &typeRef) |
void | retain () |
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 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::exportItem(), ndn::security::tpm::getErrorMessage(), ndn::security::tpm::getFailureReason(), ndn::security::tpm::KeyHandleOsx::KeyHandleOsx(), 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 104 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 110 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 117 of file cf-releaser-osx.hpp.
Referenced by ndn::security::tpm::getKeyRef().
|
inline |
Definition at line 127 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 135 of file cf-releaser-osx.hpp.
Referenced by ndn::detail::CFReleaser< CFRunLoopSourceRef >::operator=(), ndn::detail::CFReleaser< CFRunLoopSourceRef >::retain(), and ndn::detail::CFReleaser< CFRunLoopSourceRef >::~CFReleaser().