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

Public Types | Public Member Functions | Friends | List of all members
CLHEP::weak_ptr< P > Class Template Reference

#include <memory.h>

Public Types

typedef P element_type
 
typedef P element_type
 
typedef P element_type
 
typedef P element_type
 
typedef P element_type
 

Public Member Functions

 weak_ptr () throw ()
 
void swap (this_type &other) throw ()
 
template<typename P2 >
 weak_ptr (weak_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
 weak_ptr (shared_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
weak_ptroperator= (weak_ptr< P2 > const &r) throw ()
 
template<typename P2 >
weak_ptroperator= (shared_ptr< P2 > const &r) throw ()
 
shared_ptr< P > lock () const throw ()
 
long use_count () const throw ()
 
bool expired () const throw ()
 
bool _empty () const
 
void reset () throw ()
 
void _internal_assign (P *px2, sp::shared_ctrl_handle const &pn2)
 
template<typename P2 >
bool _internal_less (weak_ptr< P2 > const &rhs) const
 
 weak_ptr () throw ()
 
void swap (this_type &other) throw ()
 
template<typename P2 >
 weak_ptr (weak_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
 weak_ptr (shared_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
weak_ptroperator= (weak_ptr< P2 > const &r) throw ()
 
template<typename P2 >
weak_ptroperator= (shared_ptr< P2 > const &r) throw ()
 
shared_ptr< P > lock () const throw ()
 
long use_count () const throw ()
 
bool expired () const throw ()
 
bool _empty () const
 
void reset () throw ()
 
void _internal_assign (P *px2, sp::shared_ctrl_handle const &pn2)
 
template<typename P2 >
bool _internal_less (weak_ptr< P2 > const &rhs) const
 
 weak_ptr () throw ()
 
void swap (this_type &other) throw ()
 
template<typename P2 >
 weak_ptr (weak_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
 weak_ptr (shared_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
weak_ptroperator= (weak_ptr< P2 > const &r) throw ()
 
template<typename P2 >
weak_ptroperator= (shared_ptr< P2 > const &r) throw ()
 
shared_ptr< P > lock () const throw ()
 
long use_count () const throw ()
 
bool expired () const throw ()
 
bool _empty () const
 
void reset () throw ()
 
void _internal_assign (P *px2, sp::shared_ctrl_handle const &pn2)
 
template<typename P2 >
bool _internal_less (weak_ptr< P2 > const &rhs) const
 
 weak_ptr () throw ()
 
void swap (this_type &other) throw ()
 
template<typename P2 >
 weak_ptr (weak_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
 weak_ptr (shared_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
weak_ptroperator= (weak_ptr< P2 > const &r) throw ()
 
template<typename P2 >
weak_ptroperator= (shared_ptr< P2 > const &r) throw ()
 
shared_ptr< P > lock () const throw ()
 
long use_count () const throw ()
 
bool expired () const throw ()
 
bool _empty () const
 
void reset () throw ()
 
void _internal_assign (P *px2, sp::shared_ctrl_handle const &pn2)
 
template<typename P2 >
bool _internal_less (weak_ptr< P2 > const &rhs) const
 
 weak_ptr () throw ()
 
void swap (this_type &other) throw ()
 
template<typename P2 >
 weak_ptr (weak_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
 weak_ptr (shared_ptr< P2 > const &r, typename enable_if_ptr_convertible< P2, P, void *>::type=0) throw ()
 
template<typename P2 >
weak_ptroperator= (weak_ptr< P2 > const &r) throw ()
 
template<typename P2 >
weak_ptroperator= (shared_ptr< P2 > const &r) throw ()
 
shared_ptr< P > lock () const throw ()
 
long use_count () const throw ()
 
bool expired () const throw ()
 
bool _empty () const
 
void reset () throw ()
 
void _internal_assign (P *px2, sp::shared_ctrl_handle const &pn2)
 
template<typename P2 >
bool _internal_less (weak_ptr< P2 > const &rhs) const
 
template<typename P2 >
weak_ptr< P > & operator= (weak_ptr< P2 > const &r) throw ()
 
template<typename P2 >
weak_ptr< P > & operator= (shared_ptr< P2 > const &r) throw ()
 

Friends

template<typename >
class shared_ptr
 
template<typename >
class weak_ptr
 
template<typename >
class shared_ptr
 
template<typename >
class shared_ptr
 
template<typename >
class shared_ptr
 
template<typename >
class shared_ptr
 

Detailed Description

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

Definition at line 67 of file Matrix/CLHEP/Utility/memory.h.

Member Typedef Documentation

◆ element_type [1/5]

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

Definition at line 1309 of file Matrix/CLHEP/Utility/memory.h.

◆ element_type [2/5]

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

Definition at line 1309 of file Utility/Utility/memory.h.

◆ element_type [3/5]

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

Definition at line 1309 of file Utility/CLHEP/Utility/memory.h.

◆ element_type [4/5]

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

Definition at line 1309 of file RandomObjects/CLHEP/Utility/memory.h.

◆ element_type [5/5]

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

Definition at line 1309 of file Random/CLHEP/Utility/memory.h.

Constructor & Destructor Documentation

◆ weak_ptr() [1/15]

template<typename P >
CLHEP::weak_ptr< P >::weak_ptr ( )
throw (
)
inline

Definition at line 1356 of file Matrix/CLHEP/Utility/memory.h.

◆ weak_ptr() [2/15]

template<typename P>
template<typename P2 >
CLHEP::weak_ptr< P >::weak_ptr ( weak_ptr< P2 > const &  r,
typename enable_if_ptr_convertible< P2, P, void *>::type  = 0 
)
throw (
)
inline

Definition at line 1363 of file Matrix/CLHEP/Utility/memory.h.

◆ weak_ptr() [3/15]

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

Definition at line 1372 of file Matrix/CLHEP/Utility/memory.h.

◆ weak_ptr() [4/15]

template<typename P>
CLHEP::weak_ptr< P >::weak_ptr ( )
throw (
)
inline

◆ weak_ptr() [5/15]

template<typename P>
template<typename P2 >
CLHEP::weak_ptr< P >::weak_ptr ( weak_ptr< P2 > const &  r,
typename enable_if_ptr_convertible< P2, P, void *>::type  = 0 
)
throw (
)
inline

◆ weak_ptr() [6/15]

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

◆ weak_ptr() [7/15]

template<typename P>
CLHEP::weak_ptr< P >::weak_ptr ( )
throw (
)
inline

◆ weak_ptr() [8/15]

template<typename P>
template<typename P2 >
CLHEP::weak_ptr< P >::weak_ptr ( weak_ptr< P2 > const &  r,
typename enable_if_ptr_convertible< P2, P, void *>::type  = 0 
)
throw (
)
inline

◆ weak_ptr() [9/15]

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

◆ weak_ptr() [10/15]

template<typename P>
CLHEP::weak_ptr< P >::weak_ptr ( )
throw (
)
inline

◆ weak_ptr() [11/15]

template<typename P>
template<typename P2 >
CLHEP::weak_ptr< P >::weak_ptr ( weak_ptr< P2 > const &  r,
typename enable_if_ptr_convertible< P2, P, void *>::type  = 0 
)
throw (
)
inline

◆ weak_ptr() [12/15]

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

◆ weak_ptr() [13/15]

template<typename P>
CLHEP::weak_ptr< P >::weak_ptr ( )
throw (
)
inline

◆ weak_ptr() [14/15]

template<typename P>
template<typename P2 >
CLHEP::weak_ptr< P >::weak_ptr ( weak_ptr< P2 > const &  r,
typename enable_if_ptr_convertible< P2, P, void *>::type  = 0 
)
throw (
)
inline

◆ weak_ptr() [15/15]

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

Member Function Documentation

◆ _empty() [1/5]

template<typename P >
bool CLHEP::weak_ptr< P >::_empty ( ) const
inline

◆ _empty() [2/5]

template<typename P>
bool CLHEP::weak_ptr< P >::_empty ( ) const
inline

◆ _empty() [3/5]

template<typename P>
bool CLHEP::weak_ptr< P >::_empty ( ) const
inline

◆ _empty() [4/5]

template<typename P>
bool CLHEP::weak_ptr< P >::_empty ( ) const
inline

◆ _empty() [5/5]

template<typename P>
bool CLHEP::weak_ptr< P >::_empty ( ) const
inline

◆ _internal_assign() [1/5]

template<typename P>
void CLHEP::weak_ptr< P >::_internal_assign ( P *  px2,
sp::shared_ctrl_handle const &  pn2 
)
inline

Definition at line 1444 of file Matrix/CLHEP/Utility/memory.h.

◆ _internal_assign() [2/5]

template<typename P>
void CLHEP::weak_ptr< P >::_internal_assign ( P *  px2,
sp::shared_ctrl_handle const &  pn2 
)
inline

◆ _internal_assign() [3/5]

template<typename P>
void CLHEP::weak_ptr< P >::_internal_assign ( P *  px2,
sp::shared_ctrl_handle const &  pn2 
)
inline

◆ _internal_assign() [4/5]

template<typename P>
void CLHEP::weak_ptr< P >::_internal_assign ( P *  px2,
sp::shared_ctrl_handle const &  pn2 
)
inline

◆ _internal_assign() [5/5]

template<typename P>
void CLHEP::weak_ptr< P >::_internal_assign ( P *  px2,
sp::shared_ctrl_handle const &  pn2 
)
inline

◆ _internal_less() [1/5]

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

◆ _internal_less() [2/5]

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

◆ _internal_less() [3/5]

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

Definition at line 1453 of file Matrix/CLHEP/Utility/memory.h.

◆ _internal_less() [4/5]

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

◆ _internal_less() [5/5]

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

◆ expired() [1/5]

template<typename P>
bool CLHEP::weak_ptr< P >::expired ( ) const
throw (
)
inline

◆ expired() [2/5]

template<typename P>
bool CLHEP::weak_ptr< P >::expired ( ) const
throw (
)
inline

◆ expired() [3/5]

template<typename P>
bool CLHEP::weak_ptr< P >::expired ( ) const
throw (
)
inline

◆ expired() [4/5]

template<typename P >
bool CLHEP::weak_ptr< P >::expired ( ) const
throw (
)
inline

Definition at line 1415 of file Matrix/CLHEP/Utility/memory.h.

Referenced by main(), and n_reset::test2().

◆ expired() [5/5]

template<typename P>
bool CLHEP::weak_ptr< P >::expired ( ) const
throw (
)
inline

◆ lock() [1/5]

template<typename P>
shared_ptr<P> CLHEP::weak_ptr< P >::lock ( ) const
throw (
)
inline

◆ lock() [2/5]

template<typename P>
shared_ptr<P> CLHEP::weak_ptr< P >::lock ( ) const
throw (
)
inline

◆ lock() [3/5]

template<typename P>
shared_ptr<P> CLHEP::weak_ptr< P >::lock ( ) const
throw (
)
inline

◆ lock() [4/5]

template<typename P >
shared_ptr< P > CLHEP::weak_ptr< P >::lock ( ) const
throw (
)
inline

◆ lock() [5/5]

template<typename P>
shared_ptr<P> CLHEP::weak_ptr< P >::lock ( ) const
throw (
)
inline

◆ operator=() [1/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( weak_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [2/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( weak_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [3/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( weak_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [4/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( weak_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [5/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( weak_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [6/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( shared_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [7/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( shared_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [8/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( shared_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [9/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( shared_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [10/12]

template<typename P>
template<typename P2 >
weak_ptr& CLHEP::weak_ptr< P >::operator= ( shared_ptr< P2 > const &  r)
throw (
)
inline

◆ operator=() [11/12]

template<typename P >
template<typename P2 >
weak_ptr< P > & CLHEP::weak_ptr< P >::operator= ( weak_ptr< P2 > const &  r)
throw (
)

Definition at line 1382 of file Matrix/CLHEP/Utility/memory.h.

◆ operator=() [12/12]

template<typename P >
template<typename P2 >
weak_ptr< P > & CLHEP::weak_ptr< P >::operator= ( shared_ptr< P2 > const &  r)
throw (
)

Definition at line 1392 of file Matrix/CLHEP/Utility/memory.h.

◆ reset() [1/5]

template<typename P>
void CLHEP::weak_ptr< P >::reset ( )
throw (
)
inline

◆ reset() [2/5]

template<typename P>
void CLHEP::weak_ptr< P >::reset ( )
throw (
)
inline

◆ reset() [3/5]

template<typename P >
void CLHEP::weak_ptr< P >::reset ( )
throw (
)
inline

◆ reset() [4/5]

template<typename P>
void CLHEP::weak_ptr< P >::reset ( )
throw (
)
inline

◆ reset() [5/5]

template<typename P>
void CLHEP::weak_ptr< P >::reset ( )
throw (
)
inline

◆ swap() [1/5]

template<typename P>
void CLHEP::weak_ptr< P >::swap ( this_type other)
throw (
)
inline

◆ swap() [2/5]

template<typename P>
void CLHEP::weak_ptr< P >::swap ( this_type other)
throw (
)
inline

◆ swap() [3/5]

template<typename P >
void CLHEP::weak_ptr< P >::swap ( this_type other)
throw (
)
inline

◆ swap() [4/5]

template<typename P>
void CLHEP::weak_ptr< P >::swap ( this_type other)
throw (
)
inline

◆ swap() [5/5]

template<typename P>
void CLHEP::weak_ptr< P >::swap ( this_type other)
throw (
)
inline

◆ use_count() [1/5]

template<typename P>
long CLHEP::weak_ptr< P >::use_count ( ) const
throw (
)
inline

◆ use_count() [2/5]

template<typename P>
long CLHEP::weak_ptr< P >::use_count ( ) const
throw (
)
inline

◆ use_count() [3/5]

template<typename P>
long CLHEP::weak_ptr< P >::use_count ( ) const
throw (
)
inline

◆ use_count() [4/5]

template<typename P >
long CLHEP::weak_ptr< P >::use_count ( ) const
throw (
)
inline

◆ use_count() [5/5]

template<typename P>
long CLHEP::weak_ptr< P >::use_count ( ) const
throw (
)
inline

Friends And Related Function Documentation

◆ shared_ptr [1/5]

template<typename P>
template<typename >
friend class shared_ptr
friend

Definition at line 1305 of file Matrix/CLHEP/Utility/memory.h.

◆ shared_ptr [2/5]

template<typename P>
template<typename >
class shared_ptr ( )
friend

Definition at line 1305 of file Utility/Utility/memory.h.

◆ shared_ptr [3/5]

template<typename P>
template<typename >
class shared_ptr ( )
friend

Definition at line 1305 of file Utility/CLHEP/Utility/memory.h.

◆ shared_ptr [4/5]

template<typename P>
template<typename >
class shared_ptr ( )
friend

Definition at line 1305 of file RandomObjects/CLHEP/Utility/memory.h.

◆ shared_ptr [5/5]

template<typename P>
template<typename >
class shared_ptr ( )
friend

Definition at line 1305 of file Random/CLHEP/Utility/memory.h.

◆ weak_ptr

template<typename P>
template<typename >
friend class weak_ptr
friend

Definition at line 1306 of file Matrix/CLHEP/Utility/memory.h.


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