Helper class to wrap CoreFoundation object pointers. More...
#include <helper-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 48 of file helper-osx.hpp.
|
inline |
Definition at line 51 of file helper-osx.hpp.
|
inline |
Definition at line 56 of file helper-osx.hpp.
|
inline |
Definition at line 61 of file helper-osx.hpp.
|
inline |
Definition at line 84 of file helper-osx.hpp.
|
inline |
Definition at line 91 of file helper-osx.hpp.
|
inline |
Definition at line 97 of file helper-osx.hpp.
|
inline |
Definition at line 109 of file helper-osx.hpp.
|
inline |
Definition at line 68 of file helper-osx.hpp.
|
inline |
Definition at line 78 of file helper-osx.hpp.
|
inline |
Definition at line 103 of file helper-osx.hpp.
|
inline |
Definition at line 136 of file helper-osx.hpp.
|
inline |
Definition at line 118 of file helper-osx.hpp.
|
inline |
Definition at line 128 of file helper-osx.hpp.