Helper class to wrap CoreFoundation object pointers. More...
#include <ndn-cxx/detail/cf-releaser-osx.hpp>
Public Member Functions | |
CFReleaser () | |
CFReleaser (const T &typeRef) | |
CFReleaser (const CFReleaser &inReleaser) | |
~CFReleaser () | |
const T & | get () const |
T & | get () |
bool | operator!= (const std::nullptr_t &) |
CFReleaser & | operator= (const T &typeRef) |
CFReleaser & | operator= (const CFReleaser &inReleaser) |
bool | operator== (const std::nullptr_t &) |
void | release () |
void | retain (const T &typeRef) |
void | retain () |
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 92 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 98 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 110 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 104 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 135 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 117 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 127 of file cf-releaser-osx.hpp.