theCore C++ embedded framework
ecl::weak_ptr< T > Class Template Reference

#include </home/travis/build/forGGe/theCore/lib/cpp/export/ecl/memory.hpp>

Public Member Functions

constexpr weak_ptr ()
 
virtual ~weak_ptr ()
 
 weak_ptr (const weak_ptr &other)
 
 weak_ptr (weak_ptr &&other)
 
 weak_ptr (const shared_ptr< T > &other)
 
weak_ptroperator= (weak_ptr other)
 
weak_ptroperator= (weak_ptr &&other)=default
 
weak_ptroperator= (const shared_ptr< T > &other)
 
void swap (weak_ptr &other)
 
shared_ptr< T > lock () const
 
bool expired () const
 
void reset () const
 

Constructor & Destructor Documentation

◆ weak_ptr() [1/4]

template<typename T >
constexpr ecl::weak_ptr< T >::weak_ptr ( )

◆ ~weak_ptr()

template<typename T >
ecl::weak_ptr< T >::~weak_ptr ( )
virtual

◆ weak_ptr() [2/4]

template<typename T >
ecl::weak_ptr< T >::weak_ptr ( const weak_ptr< T > &  other)

◆ weak_ptr() [3/4]

template<typename T >
ecl::weak_ptr< T >::weak_ptr ( weak_ptr< T > &&  other)

◆ weak_ptr() [4/4]

template<typename T>
ecl::weak_ptr< T >::weak_ptr ( const shared_ptr< T > &  other)

Member Function Documentation

◆ operator=() [1/3]

template<typename T >
weak_ptr< T > & ecl::weak_ptr< T >::operator= ( weak_ptr< T >  other)

◆ operator=() [2/3]

template<typename T>
weak_ptr& ecl::weak_ptr< T >::operator= ( weak_ptr< T > &&  other)
default

◆ operator=() [3/3]

template<typename T>
weak_ptr< T > & ecl::weak_ptr< T >::operator= ( const shared_ptr< T > &  other)

◆ swap()

template<typename T >
void ecl::weak_ptr< T >::swap ( weak_ptr< T > &  other)

◆ lock()

template<typename T >
shared_ptr< T > ecl::weak_ptr< T >::lock ( ) const

◆ expired()

template<typename T >
bool ecl::weak_ptr< T >::expired ( ) const

◆ reset()

template<typename T >
void ecl::weak_ptr< T >::reset ( ) const

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