22 #ifndef NDN_DETAIL_CF_RELEASER_OSX_HPP 23 #define NDN_DETAIL_CF_RELEASER_OSX_HPP 27 #ifndef NDN_CXX_HAVE_OSX_FRAMEWORKS 28 #error "This file should not be included ..." 31 #include <CoreFoundation/CoreFoundation.h> 65 retain(inReleaser.m_typeRef);
71 if (typeRef != m_typeRef) {
81 retain(inReleaser.m_typeRef);
106 return m_typeRef ==
nullptr;
112 return m_typeRef !=
nullptr;
119 if (typeRef !=
nullptr) {
129 T typeRef = m_typeRef;
137 if (m_typeRef !=
nullptr) {
138 CFRelease(m_typeRef);
150 #endif // NDN_DETAIL_CF_RELEASER_OSX_HPP
bool operator==(const std::nullptr_t &)
CFReleaser & operator=(const CFReleaser &inReleaser)
CFReleaser(const T &typeRef)
void retain(const T &typeRef)
CFReleaser & operator=(const T &typeRef)
import common constructs for ndn-cxx library internal use
Helper class to wrap CoreFoundation object pointers.
CFReleaser(const CFReleaser &inReleaser)
bool operator!=(const std::nullptr_t &)