std::tr1::weak_count Class Reference

#include <boost_shared_ptr.h>

List of all members.

Public Member Functions

 weak_count ()
 weak_count (const shared_count &__r)
 weak_count (const weak_count &__r)
 ~weak_count ()
weak_countoperator= (const shared_count &__r)
weak_countoperator= (const weak_count &__r)
void swap (weak_count &__r)
long use_count () const

Private Attributes

_Sp_counted_base_M_pi

Friends

class shared_count
bool operator== (const weak_count &__a, const weak_count &__b)
bool operator< (const weak_count &__a, const weak_count &__b)


Detailed Description

Definition at line 331 of file boost_shared_ptr.h.


Constructor & Destructor Documentation

std::tr1::weak_count::weak_count (  )  [inline]

Definition at line 341 of file boost_shared_ptr.h.

std::tr1::weak_count::weak_count ( const shared_count __r  )  [inline]

Definition at line 345 of file boost_shared_ptr.h.

References _M_pi, and std::tr1::_Sp_counted_base::weak_add_ref().

std::tr1::weak_count::weak_count ( const weak_count __r  )  [inline]

Definition at line 352 of file boost_shared_ptr.h.

References _M_pi, and std::tr1::_Sp_counted_base::weak_add_ref().

std::tr1::weak_count::~weak_count (  )  [inline]

Definition at line 359 of file boost_shared_ptr.h.

References _M_pi, and std::tr1::_Sp_counted_base::weak_release().


Member Function Documentation

weak_count& std::tr1::weak_count::operator= ( const weak_count __r  )  [inline]

Definition at line 379 of file boost_shared_ptr.h.

References _M_pi, std::tr1::_Sp_counted_base::weak_add_ref(), and std::tr1::_Sp_counted_base::weak_release().

weak_count& std::tr1::weak_count::operator= ( const shared_count __r  )  [inline]

Definition at line 366 of file boost_shared_ptr.h.

References _M_pi, std::tr1::shared_count::_M_pi, std::tr1::_Sp_counted_base::weak_add_ref(), and std::tr1::_Sp_counted_base::weak_release().

void std::tr1::weak_count::swap ( weak_count __r  )  [inline]

Definition at line 392 of file boost_shared_ptr.h.

References _M_pi.

Referenced by std::tr1::weak_ptr< _Tp >::swap().

long std::tr1::weak_count::use_count (  )  const [inline]

Definition at line 400 of file boost_shared_ptr.h.

References _M_pi, and std::tr1::_Sp_counted_base::use_count().

Referenced by std::tr1::weak_ptr< _Tp >::expired(), and std::tr1::weak_ptr< _Tp >::use_count().


Friends And Related Function Documentation

bool operator< ( const weak_count __a,
const weak_count __b 
) [friend]

Definition at line 408 of file boost_shared_ptr.h.

bool operator== ( const weak_count __a,
const weak_count __b 
) [friend]

Definition at line 404 of file boost_shared_ptr.h.

friend class shared_count [friend]

Definition at line 337 of file boost_shared_ptr.h.


Member Data Documentation

_Sp_counted_base* std::tr1::weak_count::_M_pi [private]

Definition at line 335 of file boost_shared_ptr.h.

Referenced by operator=(), swap(), use_count(), weak_count(), and ~weak_count().


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:59:35 2010 for GNU C++ STL by  doxygen 1.4.7