CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP::shared_ptr< P > Class Template Reference

#include <memory.h>

List of all members.

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_ptroperator= (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_ptroperator= (shared_ptr< P2 > const &) throw ()
template<typename P2 >
shared_ptroperator= (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

Detailed Description

template<typename P>
class CLHEP::shared_ptr< P >

Definition at line 814 of file memory.h.


Member Typedef Documentation

template<typename P>
typedef P CLHEP::shared_ptr< P >::element_type

Definition at line 823 of file memory.h.


Constructor & Destructor Documentation

template<typename P>
CLHEP::shared_ptr< P >::shared_ptr (  )  throw ()
template<typename P >
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( P2 *  p  )  [inline, explicit]

Definition at line 945 of file memory.h.

References CLHEP::sp::sp_enable_shared_from_this().

template<typename P >
template<typename P2 , typename D >
CLHEP::shared_ptr< P >::shared_ptr ( P2 *  p,
D  d 
) [inline]

Definition at line 954 of file memory.h.

References CLHEP::sp::sp_enable_shared_from_this().

template<typename P >
template<typename P2 , typename D , typename A >
CLHEP::shared_ptr< P >::shared_ptr ( P2 *  p,
D  d,
a 
) [inline]

Definition at line 963 of file memory.h.

References CLHEP::sp::sp_enable_shared_from_this().

template<typename P >
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( weak_ptr< P2 > const &  other  )  [inline, explicit]

Definition at line 988 of file memory.h.

template<typename P >
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( weak_ptr< P2 > const &  other,
sp::sp_nothrow_tag   
) throw () [inline]

Definition at line 997 of file memory.h.

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( shared_ptr< P2 > const &  other,
P *  p 
) throw () [inline]

Definition at line 1009 of file memory.h.

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( shared_ptr< P2 > const &  other,
sp::static_cast_tag   
) [inline]

Definition at line 1018 of file memory.h.

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( shared_ptr< P2 > const &  other,
sp::const_cast_tag   
) [inline]

Definition at line 1027 of file memory.h.

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( shared_ptr< P2 > const &  other,
sp::dynamic_cast_tag   
) [inline]

Definition at line 1036 of file memory.h.

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( shared_ptr< P2 > const &  other,
sp::polymorphic_cast_tag   
) [inline]

Definition at line 1048 of file memory.h.

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( std::auto_ptr< P2 > &  other  )  [inline, explicit]

Definition at line 1060 of file memory.h.

References CLHEP::sp::sp_enable_shared_from_this().

template<typename P>
template<typename AP >
CLHEP::shared_ptr< P >::shared_ptr ( AP  other,
typename enable_if_auto_ptr< AP, void * >::type  = 0 
) [inline, explicit]

Definition at line 1071 of file memory.h.

References CLHEP::sp::sp_enable_shared_from_this().

template<typename P>
template<typename P2 >
CLHEP::shared_ptr< P >::shared_ptr ( shared_ptr< P2 > const &  other,
typename enable_if_ptr_convertible< P2, P, void * >::type  = 0 
) throw () [inline]

Definition at line 1084 of file memory.h.


Member Function Documentation

template<typename P >
bool CLHEP::shared_ptr< P >::_internal_equiv ( shared_ptr< P > const &  other  )  const [inline]

Definition at line 1219 of file memory.h.

template<typename P >
void * CLHEP::shared_ptr< P >::_internal_get_deleter ( std::type_info const &  ti  )  const [inline]

Definition at line 1212 of file memory.h.

References CLHEP::sp::shared_ctrl_handle::get_deleter().

Referenced by CLHEP::get_deleter().

template<typename P >
template<typename P2 >
bool CLHEP::shared_ptr< P >::_internal_less ( shared_ptr< P2 > const &  rhs  )  const [inline]

Definition at line 1205 of file memory.h.

template<typename P >
P * CLHEP::shared_ptr< P >::get (  )  const throw () [inline]
template<typename P >
CLHEP::shared_ptr< P >::operator bool (  )  const throw () [inline]

Definition at line 1159 of file memory.h.

template<typename P >
sp::shared_ptr_traits< P >::reference CLHEP::shared_ptr< P >::operator* (  )  const throw () [inline]

Definition at line 1167 of file memory.h.

template<typename P >
P * CLHEP::shared_ptr< P >::operator-> (  )  const throw () [inline]

Definition at line 1175 of file memory.h.

template<typename P >
template<typename AP >
enable_if_auto_ptr< AP, shared_ptr< P > & >::type CLHEP::shared_ptr< P >::operator= ( AP  other  )  [inline]

Definition at line 1112 of file memory.h.

References CLHEP::shared_ptr< P >::swap().

template<typename P >
template<typename P2 >
shared_ptr< P > & CLHEP::shared_ptr< P >::operator= ( std::auto_ptr< P2 > &  other  )  [inline]

Definition at line 1103 of file memory.h.

References CLHEP::shared_ptr< P >::swap().

template<typename P>
template<typename P2 >
shared_ptr& CLHEP::shared_ptr< P >::operator= ( shared_ptr< P2 > const &   )  throw () [inline]
template<typename P >
shared_ptr< P > & CLHEP::shared_ptr< P >::operator= ( shared_ptr< P > const &  other  )  throw () [inline]

Definition at line 980 of file memory.h.

References CLHEP::shared_ptr< P >::swap().

template<typename P>
template<typename P2 >
void CLHEP::shared_ptr< P >::reset ( shared_ptr< P2 > const &  other,
P *  p 
) [inline]

Definition at line 1153 of file memory.h.

template<typename P >
template<typename P2 , typename D , typename A >
void CLHEP::shared_ptr< P >::reset ( P2 *  p,
D  d,
a 
) [inline]

Definition at line 1145 of file memory.h.

template<typename P >
template<typename P2 , typename D >
void CLHEP::shared_ptr< P >::reset ( P2 *  p,
D  d 
) [inline]

Definition at line 1137 of file memory.h.

template<typename P >
template<typename P2 >
void CLHEP::shared_ptr< P >::reset ( P2 *  p  )  [inline]

Definition at line 1128 of file memory.h.

template<typename P >
void CLHEP::shared_ptr< P >::reset (  )  throw () [inline]
template<typename P>
void CLHEP::shared_ptr< P >::swap ( shared_ptr< P > &  other  )  throw () [inline]

Definition at line 972 of file memory.h.

References CLHEP::swap().

Referenced by CLHEP::shared_ptr< P >::operator=(), and CLHEP::swap().

template<typename P >
bool CLHEP::shared_ptr< P >::unique (  )  const throw () [inline]
template<typename P >
long CLHEP::shared_ptr< P >::use_count (  )  const throw () [inline]

Friends And Related Function Documentation

template<typename P>
CLHEP::shared_ptr< P >::shared_ptr [friend]

Definition at line 819 of file memory.h.

template<typename P>
friend class weak_ptr [friend]

Definition at line 820 of file memory.h.


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

Generated on 2 Dec 2014 for CLHEP by  doxygen 1.6.1