std::tr1::shared_count Class Reference

#include <boost_shared_ptr.h>

List of all members.

Public Member Functions

 shared_count ()
template<typename _Ptr, typename _Deleter>
 shared_count (_Ptr __p, _Deleter __d)
template<typename _Tp>
 shared_count (std::auto_ptr< _Tp > &__r)
 shared_count (const weak_count &__r)
 ~shared_count ()
 shared_count (const shared_count &__r)
shared_countoperator= (const shared_count &__r)
void swap (shared_count &__r)
long use_count () const
bool unique () const
void * get_deleter (const std::type_info &__ti) const

Private Attributes

_Sp_counted_base_M_pi

Friends

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


Detailed Description

Definition at line 234 of file boost_shared_ptr.h.


Constructor & Destructor Documentation

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

Definition at line 244 of file boost_shared_ptr.h.

template<typename _Ptr, typename _Deleter>
std::tr1::shared_count::shared_count ( _Ptr  __p,
_Deleter  __d 
) [inline]

Definition at line 249 of file boost_shared_ptr.h.

References __throw_exception_again, and _M_pi.

template<typename _Tp>
std::tr1::shared_count::shared_count ( std::auto_ptr< _Tp > &  __r  )  [inline, explicit]

Definition at line 266 of file boost_shared_ptr.h.

References std::auto_ptr< _Tp >::release().

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

Definition at line 413 of file boost_shared_ptr.h.

References std::tr1::__throw_bad_weak_ptr(), _M_pi, and std::tr1::_Sp_counted_base::add_ref_lock().

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

Definition at line 274 of file boost_shared_ptr.h.

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

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

Definition at line 280 of file boost_shared_ptr.h.

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


Member Function Documentation

void* std::tr1::shared_count::get_deleter ( const std::type_info __ti  )  const [inline]

Definition at line 327 of file boost_shared_ptr.h.

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

Referenced by std::tr1::shared_ptr< _Tp >::_M_get_deleter().

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

Definition at line 288 of file boost_shared_ptr.h.

References _M_pi, std::tr1::_Sp_counted_base::add_ref_copy(), and std::tr1::_Sp_counted_base::release().

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

Definition at line 303 of file boost_shared_ptr.h.

References _M_pi.

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

bool std::tr1::shared_count::unique (  )  const [inline]

Definition at line 315 of file boost_shared_ptr.h.

References use_count().

Referenced by std::tr1::shared_ptr< _Tp >::unique().

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

Definition at line 311 of file boost_shared_ptr.h.

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

Referenced by unique(), and std::tr1::shared_ptr< _Tp >::use_count().


Friends And Related Function Documentation

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

Definition at line 323 of file boost_shared_ptr.h.

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

Definition at line 319 of file boost_shared_ptr.h.

friend class weak_count [friend]

Definition at line 240 of file boost_shared_ptr.h.


Member Data Documentation

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

Definition at line 238 of file boost_shared_ptr.h.

Referenced by get_deleter(), std::tr1::weak_count::operator=(), operator=(), shared_count(), swap(), use_count(), and ~shared_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