GATE
gate::Ptr< T > Class Template Reference
Inheritance diagram for gate::Ptr< T >:
gate::SafeBoolBase< Ptr< T > >

Public Types

typedef Ptr< T > self_t
 
typedef T value_t
 
typedef T const * const_ptr_t
 
typedef T * ptr_t
 
typedef T const & const_ref_t
 
typedef T & ref_t
 
- Public Types inherited from gate::SafeBoolBase< Ptr< T > >
typedef void(SafeBoolBase::* bool_type) () const
 

Public Member Functions

 Ptr (ptr_t newInstance=NULL) noexcept
 
void reset (ptr_t newInstance=NULL) noexcept
 
void swap (self_t &that) noexcept
 
ptr_t release () noexcept
 
ptr_t get () const noexcept
 
const_ptr_t operator-> () const noexcept
 
ptr_t operator-> () noexcept
 
const_ref_t operator* () const noexcept
 
ref_t operator* () noexcept
 
bool_t empty () const noexcept
 
bool_t hasValue () const noexcept
 
self_t const & andThen (Delegate1< value_t & > const &callback) const
 
self_t const & orElse (Delegate0 const &callback) const
 
self_t const & orThrow () const
 
ref_t value () noexcept
 
const_ref_t value () const noexcept
 
const_ref_t value (const_ref_t defaultValue) const
 
bool_t operator! () const noexcept
 
 Ptr (self_t const &src) noexcept
 
self_toperator= (self_t const &src) noexcept
 
- Public Member Functions inherited from gate::SafeBoolBase< Ptr< T > >
 operator bool_type () const
 

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