neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_weak_ref_ptr< Interface > Class Template Referenceabstract

#include <i_reference_counted.hpp>

Inheritance diagram for neolib::i_weak_ref_ptr< Interface >:
neolib::i_ref_ptr< Interface > neolib::weak_ref_ptr< neogfx::i_widget >

Classes

struct  bad_release
 
struct  wrong_object
 

Public Member Functions

virtual bool expired () const noexcept=0
 
- Public Member Functions inherited from neolib::i_ref_ptr< Interface >
virtual ~i_ref_ptr ()=default
 
virtual bool reference_counted () const noexcept=0
 
virtual int32_t use_count () const noexcept=0
 
virtual void reset ()=0
 
virtual void reset (Interface *aPtr)=0
 
virtual void reset (Interface *aPtr, Interface *aManagedPtr)=0
 
virtual void reset (Interface *aPtr, Interface *aManagedPtr, bool aReferenceCounted, bool aAddRef)=0
 
virtual Interface * release ()=0
 
virtual Interface * detach ()=0
 
virtual bool valid () const noexcept=0
 
virtual bool managing () const noexcept=0
 
virtual Interface * ptr () const noexcept=0
 
virtual Interface * managed_ptr () const noexcept=0
 
virtual Interface * operator-> () const =0
 
virtual Interface & operator* () const =0
 
i_ref_ptroperator= (const i_ref_ptr &aOther)
 
template<typename Interface2 >
i_ref_ptroperator= (const i_ref_ptr< Interface2 > &aOther)
 
 operator bool () const noexcept
 
bool operator== (std::nullptr_t) const noexcept
 
bool operator!= (std::nullptr_t) const noexcept
 
template<typename Interface2 >
bool operator== (const i_ref_ptr< Interface2 > &aOther) const noexcept
 
template<typename Interface2 >
bool operator!= (const i_ref_ptr< Interface2 > &aOther) const noexcept
 
template<typename Interface2 >
bool operator< (const i_ref_ptr< Interface2 > &aOther) const noexcept
 

Additional Inherited Members

- Public Types inherited from neolib::i_ref_ptr< Interface >
typedef self_type abstract_type
 

Detailed Description

template<typename Interface>
class neolib::i_weak_ref_ptr< Interface >

Definition at line 154 of file i_reference_counted.hpp.

Member Function Documentation

◆ expired()

template<typename Interface >
virtual bool neolib::i_weak_ref_ptr< Interface >::expired ( ) const
pure virtualnoexcept

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