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 63 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 69 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 74 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 79 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 102 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 121 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 127 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 161 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 86 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 96 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 155 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 146 of file sec-tpm-osx.cpp.
|
inline |
Definition at line 136 of file sec-tpm-osx.cpp.