Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Friends | List of all members
CLHEP::weak_ptr< T > Class Template Reference

#include <memory.h>

Public Types

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
 
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
 

Detailed Description

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

Definition at line 67 of file memory.h.

Member Typedef Documentation

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

Definition at line 1309 of file memory.h.

Constructor & Destructor Documentation

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

Definition at line 1356 of file memory.h.

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 memory.h.

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 memory.h.

Member Function Documentation

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

Definition at line 1422 of file memory.h.

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 memory.h.

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 memory.h.

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

Definition at line 1415 of file memory.h.

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

Definition at line 1401 of file memory.h.

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

Definition at line 1382 of file memory.h.

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

Definition at line 1392 of file memory.h.

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

Definition at line 1429 of file memory.h.

Here is the call graph for this function:

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

Definition at line 1436 of file memory.h.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 1408 of file memory.h.

Friends And Related Function Documentation

template<typename T>
template<typename >
friend class shared_ptr
friend

Definition at line 1305 of file memory.h.

template<typename T>
template<typename >
friend class weak_ptr
friend

Definition at line 1306 of file memory.h.


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