CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <memory.h>
Public Types | |
typedef P | element_type |
Public Member Functions | |
shared_ptr () throw () | |
template<typename P2> | |
shared_ptr (P2 *) | |
template<typename P2, typename D> | |
shared_ptr (P2 *, D) | |
template<typename P2, typename D, typename A> | |
shared_ptr (P2 *, D, A) | |
void | swap (shared_ptr< P > &) throw () |
shared_ptr & | operator= (shared_ptr const &) throw () |
template<typename P2> | |
shared_ptr (weak_ptr< P2 > const &) | |
template<typename P2> | |
shared_ptr (weak_ptr< P2 > const &, sp::sp_nothrow_tag) throw () | |
template<typename P2> | |
shared_ptr (shared_ptr< P2 > const &, P *) throw () | |
template<typename P2> | |
shared_ptr (shared_ptr< P2 > const &, sp::static_cast_tag) | |
template<typename P2> | |
shared_ptr (shared_ptr< P2 > const &, sp::const_cast_tag) | |
template<typename P2> | |
shared_ptr (shared_ptr< P2 > const &, sp::dynamic_cast_tag) | |
template<typename P2> | |
shared_ptr (shared_ptr< P2 > const &, sp::polymorphic_cast_tag) | |
template<typename P2> | |
shared_ptr (std::auto_ptr< P2 > &) | |
template<typename AP> | |
shared_ptr (AP, typename enable_if_auto_ptr< AP, void * >::type=0) | |
template<typename P2> | |
shared_ptr (shared_ptr< P2 > const &, typename enable_if_ptr_convertible< P2, P, void * >::type=0) throw () | |
template<typename P2> | |
shared_ptr & | operator= (shared_ptr< P2 > const &) throw () |
template<typename P2> | |
shared_ptr & | operator= (std::auto_ptr< P2 > &) |
template<typename AP> | |
enable_if_auto_ptr< AP, shared_ptr & >::type | operator= (AP) |
void | reset () throw () |
template<typename P2> | |
void | reset (P2 *) |
template<typename P2, typename D> | |
void | reset (P2 *, D) |
template<typename P2, typename D, typename A> | |
void | reset (P2 *, D, A) |
template<typename P2> | |
void | reset (shared_ptr< P2 > const &, P *) |
operator bool () const throw () | |
reference | operator * () const throw () |
P * | operator-> () const throw () |
P * | get () const throw () |
bool | unique () const throw () |
long | use_count () const throw () |
template<typename P2> | |
bool | _internal_less (shared_ptr< P2 > const &) const |
void * | _internal_get_deleter (std::type_info const &) const |
bool | _internal_equiv (shared_ptr const &) const |
Friends | |
class | shared_ptr |
class | weak_ptr |
Definition at line 814 of file memory.h.
typedef P CLHEP::shared_ptr< P >::element_type |
CLHEP::shared_ptr< P >::shared_ptr | ( | ) | throw () |
CLHEP::shared_ptr< P >::shared_ptr | ( | P2 * | ) | [inline, explicit] |
CLHEP::shared_ptr< P >::shared_ptr | ( | P2 * | , | |
D | ||||
) | [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | P2 * | , | |
D | , | |||
A | ||||
) | [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | weak_ptr< P2 > const & | ) | [inline, explicit] |
CLHEP::shared_ptr< P >::shared_ptr | ( | weak_ptr< P2 > const & | , | |
sp::sp_nothrow_tag | ||||
) | throw () [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | shared_ptr< P2 > const & | , | |
P * | ||||
) | throw () [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | shared_ptr< P2 > const & | , | |
sp::static_cast_tag | ||||
) | [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | shared_ptr< P2 > const & | , | |
sp::const_cast_tag | ||||
) | [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | shared_ptr< P2 > const & | , | |
sp::dynamic_cast_tag | ||||
) | [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | shared_ptr< P2 > const & | , | |
sp::polymorphic_cast_tag | ||||
) | [inline] |
CLHEP::shared_ptr< P >::shared_ptr | ( | std::auto_ptr< P2 > & | ) | [inline, explicit] |
CLHEP::shared_ptr< P >::shared_ptr | ( | AP | , | |
typename enable_if_auto_ptr< AP, void * >::type | = 0 | |||
) | [inline, explicit] |
CLHEP::shared_ptr< P >::shared_ptr | ( | shared_ptr< P2 > const & | , | |
typename enable_if_ptr_convertible< P2, P, void * >::type | = 0 | |||
) | throw () [inline] |
bool CLHEP::shared_ptr< P >::_internal_equiv | ( | shared_ptr< P > const & | ) | const [inline] |
Definition at line 1219 of file memory.h.
References CLHEP::shared_ptr< P >::pn, and CLHEP::shared_ptr< P >::px.
void * CLHEP::shared_ptr< P >::_internal_get_deleter | ( | std::type_info const & | ) | const [inline] |
Definition at line 1212 of file memory.h.
References CLHEP::sp::shared_ctrl_handle::get_deleter().
Referenced by CLHEP::get_deleter().
bool CLHEP::shared_ptr< P >::_internal_less | ( | shared_ptr< P2 > const & | ) | const [inline] |
P * CLHEP::shared_ptr< P >::get | ( | ) | const throw () [inline] |
Reimplemented in n_spt_another_sp::another_ptr< T >.
Definition at line 1183 of file memory.h.
Referenced by n_assignment::auto_ptr_assignment(), n_constructors::auto_ptr_constructor(), n_assignment::conversion_assignment(), n_assignment::copy_assignment(), n_constructors::copy_constructor(), n_constructors::default_constructor(), n_constructors::deleter_constructor(), n_reset::deleter_reset(), CLHEP::get_pointer(), n_constructors::pc0_test(), n_reset::plain_reset(), n_constructors::pointer_constructor(), n_reset::pointer_reset(), n_spt_intrusive::test(), n_dynamic_cast::test(), n_const_cast::test(), n_static_cast::test(), n_comparison::test(), n_swap::test(), n_access::test(), test_is_nonzero(), test_is_Y(), test_is_zero(), and n_constructors::weak_ptr_constructor().
sp::shared_ptr_traits< P >::reference CLHEP::shared_ptr< P >::operator * | ( | ) | const throw () [inline] |
CLHEP::shared_ptr< P >::operator bool | ( | ) | const throw () [inline] |
P * CLHEP::shared_ptr< P >::operator-> | ( | ) | const throw () [inline] |
enable_if_auto_ptr< AP, shared_ptr< P > & >::type CLHEP::shared_ptr< P >::operator= | ( | AP | ) | [inline] |
shared_ptr< P > & CLHEP::shared_ptr< P >::operator= | ( | std::auto_ptr< P2 > & | ) | [inline] |
shared_ptr< P > & CLHEP::shared_ptr< P >::operator= | ( | shared_ptr< P2 > const & | ) | throw () [inline] |
shared_ptr< P > & CLHEP::shared_ptr< P >::operator= | ( | shared_ptr< P > const & | ) | throw () [inline] |
void CLHEP::shared_ptr< P >::reset | ( | shared_ptr< P2 > const & | , | |
P * | ||||
) | [inline] |
void CLHEP::shared_ptr< P >::reset | ( | P2 * | , | |
D | , | |||
A | ||||
) | [inline] |
void CLHEP::shared_ptr< P >::reset | ( | P2 * | , | |
D | ||||
) | [inline] |
void CLHEP::shared_ptr< P >::reset | ( | ) | throw () [inline] |
Reimplemented in n_spt_another_sp::another_ptr< T >.
Definition at line 1120 of file memory.h.
Referenced by n_constructors::conversion_constructor(), n_assignment::copy_assignment(), n_reset::deleter_reset(), main(), n_reset::plain_reset(), n_reset::pointer_reset(), n_assignment::shared_ptr_assignment(), n_report_2::test(), n_reset::test2(), and n_constructors::weak_ptr_constructor().
void CLHEP::shared_ptr< P >::swap | ( | shared_ptr< P > & | ) | throw () [inline] |
bool CLHEP::shared_ptr< P >::unique | ( | ) | const throw () [inline] |
Definition at line 1190 of file memory.h.
References CLHEP::sp::shared_ctrl_handle::unique().
Referenced by n_constructors::auto_ptr_constructor(), n_assignment::copy_assignment(), n_constructors::copy_constructor(), n_constructors::deleter_constructor(), n_reset::deleter_reset(), n_constructors::pc0_test(), n_constructors::pointer_constructor(), n_reset::pointer_reset(), n_assignment::shared_ptr_assignment(), n_use_count::test(), n_reset::test2(), and n_constructors::weak_ptr_constructor().
long CLHEP::shared_ptr< P >::use_count | ( | ) | const throw () [inline] |
Definition at line 1197 of file memory.h.
References CLHEP::sp::shared_ctrl_handle::use_count().
Referenced by n_assignment::auto_ptr_assignment(), n_constructors::auto_ptr_constructor(), n_assignment::conversion_assignment(), n_assignment::copy_assignment(), n_constructors::copy_constructor(), n_constructors::default_constructor(), n_constructors::deleter_constructor(), n_reset::deleter_reset(), main(), n_constructors::pc0_test(), n_reset::plain_reset(), n_constructors::pointer_constructor(), n_reset::pointer_reset(), n_constructors::shared_ptr_constructor(), n_dynamic_cast::test(), n_const_cast::test(), n_static_cast::test(), n_swap::test(), n_use_count::test(), and n_constructors::weak_ptr_constructor().
CLHEP::shared_ptr< P >::shared_ptr [friend] |