Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
fml::scoped_nsobject< NST > Class Template Reference

#include <scoped_nsobject.h>

Inheritance diagram for fml::scoped_nsobject< NST >:
fml::scoped_nsprotocol< NST > fml::ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > >

Public Types

using Traits = typename scoped_nsprotocol< NST * >::Traits
 
- Public Types inherited from fml::scoped_nsprotocol< NST >
using Traits = internal::ScopedNSProtocolTraits< NST >
 
- Public Types inherited from fml::ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > >
typedef NST element_type
 

Public Member Functions

 scoped_nsobject (NST *object=Traits::InvalidValue(), scoped_policy::OwnershipPolicy policy=scoped_policy::OwnershipPolicy::kAssume)
 
 scoped_nsobject (const scoped_nsobject< NST > &that)
 
template<typename NSR >
 scoped_nsobject (const scoped_nsobject< NSR > &that_as_subclass)
 
 scoped_nsobject (scoped_nsobject< NST > &&that)
 
scoped_nsobjectoperator= (const scoped_nsobject< NST > &that)
 
void reset (NST *object=Traits::InvalidValue(), scoped_policy::OwnershipPolicy policy=scoped_policy::OwnershipPolicy::kAssume)
 
- Public Member Functions inherited from fml::scoped_nsprotocol< NST >
 scoped_nsprotocol (NST object=Traits::InvalidValue(), scoped_policy::OwnershipPolicy policy=scoped_policy::OwnershipPolicy::kAssume)
 
 scoped_nsprotocol (const scoped_nsprotocol< NST > &that)
 
template<typename NSR >
 scoped_nsprotocol (const scoped_nsprotocol< NSR > &that_as_subclass)
 
 scoped_nsprotocol (scoped_nsprotocol< NST > &&that)
 
scoped_nsprotocoloperator= (const scoped_nsprotocol< NST > &that)
 
void reset (NST object=Traits::InvalidValue(), scoped_policy::OwnershipPolicy policy=scoped_policy::OwnershipPolicy::kAssume)
 
NST autorelease () __attribute((ns_returns_not_retained))
 
- Public Member Functions inherited from fml::ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > >
 ScopedTypeRef (__unsafe_unretained NST object=Traits::InvalidValue(), fml::scoped_policy::OwnershipPolicy policy=fml::scoped_policy::kAssume)
 
 ScopedTypeRef (const ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > > &that)
 
 ScopedTypeRef (const ScopedTypeRef< R, RTraits > &that_as_subclass)
 
 ScopedTypeRef (ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > > &&that)
 
 ~ScopedTypeRef ()
 
ScopedTypeRefoperator= (const ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > > &that)
 
NST * InitializeInto ()
 
void reset (__unsafe_unretained NST object=Traits::InvalidValue(), fml::scoped_policy::OwnershipPolicy policy=fml::scoped_policy::kAssume)
 
bool operator== (__unsafe_unretained NST that) const
 
bool operator!= (__unsafe_unretained NST that) const
 
 operator NST () const __attribute((ns_returns_not_retained))
 
NST get () const __attribute((ns_returns_not_retained))
 
void swap (ScopedTypeRef &that)
 

Additional Inherited Members

- Protected Member Functions inherited from fml::ScopedTypeRef< NST, internal::ScopedNSProtocolTraits< NST > >
NST release () __attribute((ns_returns_not_retained))
 

Detailed Description

template<typename NST>
class fml::scoped_nsobject< NST >

Definition at line 152 of file scoped_nsobject.h.

Member Typedef Documentation

◆ Traits

template<typename NST >
using fml::scoped_nsobject< NST >::Traits = typename scoped_nsprotocol<NST*>::Traits

Definition at line 154 of file scoped_nsobject.h.

Constructor & Destructor Documentation

◆ scoped_nsobject() [1/4]

template<typename NST >
fml::scoped_nsobject< NST >::scoped_nsobject ( NST *  object = Traits::InvalidValue(),
scoped_policy::OwnershipPolicy  policy = scoped_policy::OwnershipPolicy::kAssume 
)
inlineexplicit

Definition at line 157 of file scoped_nsobject.h.

160 : scoped_nsprotocol<NST*>(object, policy) {}

◆ scoped_nsobject() [2/4]

template<typename NST >
fml::scoped_nsobject< NST >::scoped_nsobject ( const scoped_nsobject< NST > &  that)
inline

Definition at line 167 of file scoped_nsobject.h.

168 : scoped_nsprotocol<NST*>(that) {}

◆ scoped_nsobject() [3/4]

template<typename NST >
template<typename NSR >
fml::scoped_nsobject< NST >::scoped_nsobject ( const scoped_nsobject< NSR > &  that_as_subclass)
inlineexplicit

Definition at line 171 of file scoped_nsobject.h.

172 : scoped_nsprotocol<NST*>(that_as_subclass) {}

◆ scoped_nsobject() [4/4]

template<typename NST >
fml::scoped_nsobject< NST >::scoped_nsobject ( scoped_nsobject< NST > &&  that)
inline

Definition at line 175 of file scoped_nsobject.h.

176 : scoped_nsprotocol<NST*>(std::move(that)) {}

Member Function Documentation

◆ operator=()

template<typename NST >
scoped_nsobject & fml::scoped_nsobject< NST >::operator= ( const scoped_nsobject< NST > &  that)
inline

Definition at line 178 of file scoped_nsobject.h.

178 {
180 return *this;
181 }
scoped_nsprotocol & operator=(const scoped_nsprotocol< NST > &that)

◆ reset()

template<typename NST >
void fml::scoped_nsobject< NST >::reset ( NST *  object = Traits::InvalidValue(),
scoped_policy::OwnershipPolicy  policy = scoped_policy::OwnershipPolicy::kAssume 
)
inline

Definition at line 184 of file scoped_nsobject.h.

186 {
187 scoped_nsprotocol<NST*>::reset(object, policy);
188 }
void reset(NST object=Traits::InvalidValue(), scoped_policy::OwnershipPolicy policy=scoped_policy::OwnershipPolicy::kAssume)

The documentation for this class was generated from the following file: