Public Types | Public Member Functions | Private Types | Private Attributes | Friends
boost::weak_ptr< T > Class Template Reference

#include <weak_ptr.hpp>

List of all members.

Public Types

typedef T element_type

Public Member Functions

void _internal_assign (T *px2, boost::detail::shared_count const &pn2)
template<class Y >
bool _internal_less (weak_ptr< Y > const &rhs) const
bool expired () const
shared_ptr< T > lock () const
template<class Y >
weak_ptroperator= (weak_ptr< Y > const &r)
template<class Y >
weak_ptroperator= (shared_ptr< Y > const &r)
void reset ()
void swap (this_type &other)
long use_count () const
 weak_ptr ()
template<class Y >
 weak_ptr (weak_ptr< Y > const &r, typename detail::sp_enable_if_convertible< Y, T >::type=detail::sp_empty())
template<class Y >
 weak_ptr (shared_ptr< Y > const &r, typename detail::sp_enable_if_convertible< Y, T >::type=detail::sp_empty())

Private Types

typedef weak_ptr< T > this_type

Private Attributes

boost::detail::weak_count pn
T * px

Friends

class shared_ptr
class weak_ptr

Detailed Description

template<class T>
class boost::weak_ptr< T >

Definition at line 28 of file weak_ptr.hpp.


Member Typedef Documentation

template<class T>
typedef T boost::weak_ptr< T >::element_type

Definition at line 37 of file weak_ptr.hpp.

template<class T>
typedef weak_ptr<T> boost::weak_ptr< T >::this_type [private]

Definition at line 33 of file weak_ptr.hpp.


Constructor & Destructor Documentation

template<class T>
boost::weak_ptr< T >::weak_ptr ( ) [inline]

Definition at line 39 of file weak_ptr.hpp.

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

Definition at line 66 of file weak_ptr.hpp.

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

Definition at line 81 of file weak_ptr.hpp.


Member Function Documentation

template<class T>
void boost::weak_ptr< T >::_internal_assign ( T *  px2,
boost::detail::shared_count const &  pn2 
) [inline]

Definition at line 138 of file weak_ptr.hpp.

template<class T>
template<class Y >
bool boost::weak_ptr< T >::_internal_less ( weak_ptr< Y > const &  rhs) const [inline]

Definition at line 144 of file weak_ptr.hpp.

template<class T>
bool boost::weak_ptr< T >::expired ( ) const [inline]

Definition at line 122 of file weak_ptr.hpp.

template<class T>
shared_ptr<T> boost::weak_ptr< T >::lock ( ) const [inline]

Definition at line 112 of file weak_ptr.hpp.

template<class T>
template<class Y >
weak_ptr& boost::weak_ptr< T >::operator= ( weak_ptr< Y > const &  r) [inline]

Definition at line 95 of file weak_ptr.hpp.

template<class T>
template<class Y >
weak_ptr& boost::weak_ptr< T >::operator= ( shared_ptr< Y > const &  r) [inline]

Definition at line 103 of file weak_ptr.hpp.

template<class T>
void boost::weak_ptr< T >::reset ( ) [inline]

Definition at line 127 of file weak_ptr.hpp.

template<class T>
void boost::weak_ptr< T >::swap ( this_type other) [inline]

Definition at line 132 of file weak_ptr.hpp.

template<class T>
long boost::weak_ptr< T >::use_count ( ) const [inline]

Definition at line 117 of file weak_ptr.hpp.


Friends And Related Function Documentation

template<class T>
friend class shared_ptr [friend]

Definition at line 157 of file weak_ptr.hpp.

template<class T>
friend class weak_ptr [friend]

Definition at line 156 of file weak_ptr.hpp.


Member Data Documentation

template<class T>
boost::detail::weak_count boost::weak_ptr< T >::pn [private]

Definition at line 162 of file weak_ptr.hpp.

template<class T>
T* boost::weak_ptr< T >::px [private]

Definition at line 161 of file weak_ptr.hpp.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30