Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::weak_ptr< T > Singleton Reference

#include <memory.hpp>

Inheritance diagram for boost::weak_ptr< T >:

Public Types

typedef
boost::detail::sp_element< T >
::type 
element_type
 

Public Member Functions

 weak_ptr () BOOST_NOEXCEPT
 
 weak_ptr (weak_ptr const &r) BOOST_NOEXCEPT
 
weak_ptroperator= (weak_ptr const &r) BOOST_NOEXCEPT
 
template<class Y >
 weak_ptr (weak_ptr< Y > const &r, typename boost::detail::sp_enable_if_convertible< Y, T >::type=boost::detail::sp_empty()) BOOST_NOEXCEPT
 
template<class Y >
 weak_ptr (weak_ptr< Y > &&r, typename boost::detail::sp_enable_if_convertible< Y, T >::type=boost::detail::sp_empty()) BOOST_NOEXCEPT
 
 weak_ptr (weak_ptr &&r) BOOST_NOEXCEPT
 
weak_ptroperator= (weak_ptr &&r) BOOST_NOEXCEPT
 
template<class Y >
 weak_ptr (shared_ptr< Y > const &r, typename boost::detail::sp_enable_if_convertible< Y, T >::type=boost::detail::sp_empty()) BOOST_NOEXCEPT
 
template<class Y >
weak_ptroperator= (weak_ptr< Y > const &r) BOOST_NOEXCEPT
 
template<class Y >
weak_ptroperator= (weak_ptr< Y > &&r) BOOST_NOEXCEPT
 
template<class Y >
weak_ptroperator= (shared_ptr< Y > const &r) BOOST_NOEXCEPT
 
shared_ptr< Tlock () const BOOST_NOEXCEPT
 
long use_count () const BOOST_NOEXCEPT
 
bool expired () const BOOST_NOEXCEPT
 
bool _empty () const
 
void reset () BOOST_NOEXCEPT
 
void swap (this_type &other) BOOST_NOEXCEPT
 
template<typename Y >
void _internal_aliasing_assign (weak_ptr< Y > const &r, element_type *px2)
 
template<class Y >
bool owner_before (weak_ptr< Y > const &rhs) const BOOST_NOEXCEPT
 
template<class Y >
bool owner_before (shared_ptr< Y > const &rhs) const BOOST_NOEXCEPT
 

Friends

template<class Y >
class weak_ptr
 
template<class Y >
class shared_ptr
 

Member Typedef Documentation

template<class T>
typedef boost::detail::sp_element< T >::type boost::weak_ptr< T >::element_type

Constructor & Destructor Documentation

template<class T>
boost::weak_ptr< T >::weak_ptr ( )
inline
template<class T>
boost::weak_ptr< T >::weak_ptr ( weak_ptr< T > const &  r)
inline
template<class T>
template<class Y >
boost::weak_ptr< T >::weak_ptr ( weak_ptr< Y > const &  r,
typename boost::detail::sp_enable_if_convertible< Y, T >::type  = boost::detail::sp_empty() 
)
inline
template<class T>
template<class Y >
boost::weak_ptr< T >::weak_ptr ( weak_ptr< Y > &&  r,
typename boost::detail::sp_enable_if_convertible< Y, T >::type  = boost::detail::sp_empty() 
)
inline
template<class T>
boost::weak_ptr< T >::weak_ptr ( weak_ptr< T > &&  r)
inline
template<class T>
template<class Y >
boost::weak_ptr< T >::weak_ptr ( shared_ptr< Y > const &  r,
typename boost::detail::sp_enable_if_convertible< Y, T >::type  = boost::detail::sp_empty() 
)
inline

Member Function Documentation

template<class T>
bool boost::weak_ptr< T >::_empty ( ) const
inline
template<class T>
template<typename Y >
void boost::weak_ptr< T >::_internal_aliasing_assign ( weak_ptr< Y > const &  r,
element_type px2 
)
inline

Referenced by boost::weak_from_raw().

template<class T>
bool boost::weak_ptr< T >::expired ( ) const
inline
template<class T>
weak_ptr& boost::weak_ptr< T >::operator= ( weak_ptr< T > const &  r)
inline
template<class T>
weak_ptr& boost::weak_ptr< T >::operator= ( weak_ptr< T > &&  r)
inline
template<class T>
template<class Y >
weak_ptr& boost::weak_ptr< T >::operator= ( weak_ptr< Y > const &  r)
inline
template<class T>
template<class Y >
weak_ptr& boost::weak_ptr< T >::operator= ( weak_ptr< Y > &&  r)
inline
template<class T>
template<class Y >
weak_ptr& boost::weak_ptr< T >::operator= ( shared_ptr< Y > const &  r)
inline
template<class T>
template<class Y >
bool boost::weak_ptr< T >::owner_before ( weak_ptr< Y > const &  rhs) const
inline
template<class T>
template<class Y >
bool boost::weak_ptr< T >::owner_before ( shared_ptr< Y > const &  rhs) const
inline
template<class T>
void boost::weak_ptr< T >::reset ( void  )
inline
template<class T>
void boost::weak_ptr< T >::swap ( this_type other)
inline
template<class T>
long boost::weak_ptr< T >::use_count ( ) const
inline

Friends And Related Function Documentation

template<class T>
template<class Y >
friend class weak_ptr
friend
template<class T>
template<class Y >
friend class shared_ptr
friend

The documentation for this singleton was generated from the following files: