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 () |
CFReleaser & | operator= (const T &typeRef) |
CFReleaser & | operator= (const CFReleaser &inReleaser) |
void | release () |
void | retain (const T &typeRef) |
void | retain () |
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 92 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 98 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 123 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 105 of file cf-releaser-osx.hpp.
|
inline |
Definition at line 115 of file cf-releaser-osx.hpp.
|
friend |
Definition at line 139 of file cf-releaser-osx.hpp.
|
friend |
Definition at line 133 of file cf-releaser-osx.hpp.