#include <mac_cfhelpers.h>
Reference for a ObjC object which was created (and hence implicitely retained). The object will released when the NSStrongRef will be destructed.
Public Member Functions | |
NSStrongRef ()=default | |
MAXON_IMPLICIT | NSStrongRef (T *o) |
NSStrongRef (const NSStrongRef &src)=default | |
NSStrongRef (NSStrongRef &&src)=default | |
NSStrongRef & | operator= (T *src) |
NSStrongRef & | operator= (const NSStrongRef &src)=default |
NSStrongRef & | operator= (NSStrongRef &&src)=default |
NSStrongRef & | operator= (std::nullptr_t src) |
![]() | |
BaseRef () | |
MAXON_IMPLICIT | BaseRef (std::nullptr_t)=delete |
MAXON_IMPLICIT | BaseRef (T *o) |
BaseRef (ForwardResultPtr< PTR > o) | |
BaseRef (ResultPtr< T > o, Int) | |
BaseRef (const BaseRef &src) | |
MAXON_IMPLICIT | BaseRef (const REF &src) |
MAXON_IMPLICIT | BaseRef (REF &src) |
BaseRef (BaseRef &&src) | |
MAXON_IMPLICIT | BaseRef (REF &&src) |
T * | GetPointer () |
ConstReferencedType * | GetPointer () const |
T * | operator-> () |
ConstReferencedType * | operator-> () const |
std::conditional< std::is_void< T >::value, DeleteReturnType01, T >::type & | operator* () |
std::conditional< std::is_void< ConstReferencedType >::value, DeleteReturnType01, T >::type & | operator* () const |
operator T* () | |
operator ConstReferencedType * () const | |
operator Bool () const | |
operator Bool () | |
const std::conditional< std::is_void< T >::value, DeleteReturnType01, T >::type & | operator[] (Int) const=delete |
ResultRef< typename std::remove_const< T >::type > | MakeWritable (Bool resetOnError=true) |
ResultRef< typename std::remove_const< T >::type > | MakeWritableDontCopy () |
Bool | HasMultipleReferences () const |
std::conditional< std::is_void< T >::value, DeleteReturnType01, T >::type & | GetOrDefault () const |
BaseRef & | operator= (T *src) |
BaseRef & | operator= (std::nullptr_t src) |
BaseRef & | operator= (const BaseRef &src) |
BaseRef & | operator= (const REF &src) |
BaseRef & | operator= (REF &src) |
BaseRef & | operator= (BaseRef &&src) |
BaseRef & | operator= (REF &&src) |
~BaseRef () | |
Bool | operator== (const BaseRef &b) const |
Bool | operator== (const T *b) const |
Bool | operator== (typename std::remove_const< T >::type *b) const |
Bool | operator== (std::nullptr_t) const |
Bool | operator!= (const BaseRef &b) const |
Bool | operator!= (const T *b) const |
Bool | operator!= (typename std::remove_const< T >::type *b) const |
Bool | operator!= (std::nullptr_t) const |
Bool | operator< (const BaseRef &b) const |
MAXON_OPERATOR_INEQUALITY (BaseRef) | |
HashInt | GetHashCode () const |
UniqueHash | GetUniqueHashCode () const |
std::conditional< Bool(HANDLER::KIND &VALUEKIND::COW_MASK), typename std::remove_const< T >::type, T >::type * | Disconnect () |
void | PrivateSetTarget (ResultPtr< T > src) |
void | PrivateSetPointer (T *ptr) |
Private Types | |
using | Super = BaseRef< T, NSCreatedPointerHandler > |
|
private |
|
default |
MAXON_IMPLICIT NSStrongRef | ( | T * | o | ) |
Assignment of an already retained object (returned by a alloc, new or copy method). Objects which are returned by other methods have to be retained before assigning them to a NSStrongRef. See https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html#//apple_ref/doc/uid/20000994-BAJHFBGH.
|
default |
|
default |
NSStrongRef& operator= | ( | T * | src | ) |
Assignment of an already retained object (returned by a alloc, new or copy method). Objects which are returned by other methods have to be retained before assigning them to a NSStrongRef. See https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html#//apple_ref/doc/uid/20000994-BAJHFBGH.
|
default |
|
default |
NSStrongRef& operator= | ( | std::nullptr_t | src | ) |