#include "shared_count.hpp"
|
| shared_count () |
|
template<class Y > |
| shared_count (Y *p) |
|
template<class P , class D > |
| shared_count (P p, D d) |
|
template<class P , class D > |
| shared_count (P p, sp_inplace_tag< D >) |
|
template<class P , class D , class A > |
| shared_count (P p, D d, A a) |
|
template<class P , class D , class A > |
| shared_count (P p, sp_inplace_tag< D >, A a) |
|
template<class Y > |
| shared_count (std::auto_ptr< Y > &r) |
|
template<class Y , class D > |
| shared_count (std::unique_ptr< Y, D > &r) |
|
| ~shared_count () |
|
| shared_count (shared_count const &r) |
|
| shared_count (shared_count &&r) |
|
| shared_count (weak_count const &r) |
|
| shared_count (weak_count const &r, sp_nothrow_tag) |
|
shared_count & | operator= (shared_count const &r) |
|
void | swap (shared_count &r) |
|
long | use_count () const |
|
bool | unique () const |
|
bool | empty () const |
|
void * | get_deleter (sp_typeinfo const &ti) const |
|
void * | get_untyped_deleter () const |
|
Definition at line 100 of file shared_count.hpp.
boost::detail::shared_count::shared_count |
( |
| ) |
|
|
inline |
Definition at line 114 of file shared_count.hpp.
115 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 116 , id_(shared_count_id)
template<class Y >
boost::detail::shared_count::shared_count |
( |
Y * |
p | ) |
|
|
inlineexplicit |
Definition at line 121 of file shared_count.hpp.
122 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 123 , id_(shared_count_id)
126 #ifndef BOOST_NO_EXCEPTIONS 130 pi_ =
new sp_counted_impl_p<Y>( p );
140 pi_ =
new sp_counted_impl_p<Y>( p );
void checked_delete(T *x)
BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
template<class P , class D >
boost::detail::shared_count::shared_count |
( |
P |
p, |
|
|
D |
d |
|
) |
| |
|
inline |
Definition at line 154 of file shared_count.hpp.
156 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 157 , id_(shared_count_id)
160 #if defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, <= 1200 ) 163 #ifndef BOOST_NO_EXCEPTIONS 167 pi_ =
new sp_counted_impl_pd<P, D>(p, d);
177 pi_ =
new sp_counted_impl_pd<P, D>(p, d);
BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
template<class P , class D >
boost::detail::shared_count::shared_count |
( |
P |
p, |
|
|
sp_inplace_tag< D > |
|
|
) |
| |
|
inline |
Definition at line 190 of file shared_count.hpp.
191 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 192 , id_(shared_count_id)
195 #ifndef BOOST_NO_EXCEPTIONS 199 pi_ =
new sp_counted_impl_pd< P, D >( p );
209 pi_ =
new sp_counted_impl_pd< P, D >( p );
217 #endif // #ifndef BOOST_NO_EXCEPTIONS BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
template<class P , class D , class A >
boost::detail::shared_count::shared_count |
( |
P |
p, |
|
|
D |
d, |
|
|
A |
a |
|
) |
| |
|
inline |
Definition at line 222 of file shared_count.hpp.
223 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 224 , id_(shared_count_id)
227 typedef sp_counted_impl_pda<P, D, A> impl_type;
228 typedef typename A::template rebind< impl_type >::other A2;
232 #ifndef BOOST_NO_EXCEPTIONS 236 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) );
237 new(
static_cast< void*
>( pi_ ) ) impl_type( p, d, a );
245 a2.deallocate( static_cast< impl_type* >( pi_ ), 1 );
253 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) );
257 new(
static_cast< void*
>( pi_ ) ) impl_type( p, d, a );
BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
template<class P , class D , class A >
boost::detail::shared_count::shared_count |
( |
P |
p, |
|
|
sp_inplace_tag< D > |
, |
|
|
A |
a |
|
) |
| |
|
inline |
Definition at line 270 of file shared_count.hpp.
271 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 272 , id_(shared_count_id)
275 typedef sp_counted_impl_pda< P, D, A > impl_type;
276 typedef typename A::template rebind< impl_type >::other A2;
280 #ifndef BOOST_NO_EXCEPTIONS 284 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) );
285 new(
static_cast< void*
>( pi_ ) ) impl_type( p, a );
293 a2.deallocate( static_cast< impl_type* >( pi_ ), 1 );
301 pi_ = a2.allocate( 1, static_cast< impl_type* >( 0 ) );
305 new(
static_cast< void*
>( pi_ ) ) impl_type( p, a );
313 #endif // #ifndef BOOST_NO_EXCEPTIONS BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
template<class Y >
boost::detail::shared_count::shared_count |
( |
std::auto_ptr< Y > & |
r | ) |
|
|
inlineexplicit |
Definition at line 323 of file shared_count.hpp.
323 : pi_(
new sp_counted_impl_p<Y>( r.get() ) )
324 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 325 , id_(shared_count_id)
328 #ifdef BOOST_NO_EXCEPTIONS BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
template<class Y , class D >
boost::detail::shared_count::shared_count |
( |
std::unique_ptr< Y, D > & |
r | ) |
|
|
inlineexplicit |
Definition at line 345 of file shared_count.hpp.
346 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 347 , id_(shared_count_id)
352 D2 d2( r.get_deleter() );
353 pi_ =
new sp_counted_impl_pd< typename std::unique_ptr<Y, D>::pointer, D2 >( r.get(), d2 );
355 #ifdef BOOST_NO_EXCEPTIONS
BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
boost::detail::shared_count::~shared_count |
( |
| ) |
|
|
inline |
boost::detail::shared_count::shared_count |
( |
shared_count const & |
r | ) |
|
|
inline |
Definition at line 377 of file shared_count.hpp.
378 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 379 , id_(shared_count_id)
boost::detail::shared_count::shared_count |
( |
shared_count && |
r | ) |
|
|
inline |
Definition at line 387 of file shared_count.hpp.
388 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 389 , id_(shared_count_id)
boost::detail::shared_count::shared_count |
( |
weak_count const & |
r | ) |
|
|
inlineexplicit |
Definition at line 573 of file shared_count.hpp.
574 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 575 , id_(shared_count_id)
BOOST_ATTRIBUTE_NORETURN void throw_exception(E const &e)
Definition at line 584 of file shared_count.hpp.
585 #if defined(BOOST_SP_ENABLE_DEBUG_HOOKS) 586 , id_(shared_count_id)
bool boost::detail::shared_count::empty |
( |
| ) |
const |
|
inline |
void* boost::detail::shared_count::get_deleter |
( |
sp_typeinfo const & |
ti | ) |
const |
|
inline |
Definition at line 446 of file shared_count.hpp.
virtual void * get_deleter(sp_typeinfo const &ti)=0
void* boost::detail::shared_count::get_untyped_deleter |
( |
| ) |
const |
|
inline |
Definition at line 400 of file shared_count.hpp.
402 sp_counted_base * tmp = r.pi_;
406 if( tmp != 0 ) tmp->add_ref_copy();
bool boost::detail::shared_count::unique |
( |
| ) |
const |
|
inline |
long boost::detail::shared_count::use_count |
( |
| ) |
const |
|
inline |
Definition at line 441 of file shared_count.hpp.
443 return std::less<sp_counted_base *>()( a.pi_, b.pi_ );
The documentation for this class was generated from the following file: