Geant4  10.01.p03
CLHEP::enable_shared_from_this2< T > Class Template Reference

#include <G4memory.hh>

+ Collaboration diagram for CLHEP::enable_shared_from_this2< T >:

Public Member Functions

shared_ptr< T > shared_from_this ()
 
shared_ptr< T const > shared_from_this () const
 
template<typename X , typename Y >
void _internal_accept_owner (shared_ptr< X > *ppx, Y *py) const
 

Protected Member Functions

 enable_shared_from_this2 ()
 
 enable_shared_from_this2 (enable_shared_from_this2 const &)
 
enable_shared_from_this2operator= (enable_shared_from_this2 const &)
 
 ~enable_shared_from_this2 ()
 

Private Member Functions

void init_weak_once () const
 

Private Attributes

weak_ptr< T > weak_this_
 
shared_ptr< T > shared_this_
 

Detailed Description

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

Definition at line 147 of file G4memory.hh.

Constructor & Destructor Documentation

template<typename T >
CLHEP::enable_shared_from_this2< T >::enable_shared_from_this2 ( )
inlineprotected

Definition at line 151 of file G4memory.hh.

template<typename T >
CLHEP::enable_shared_from_this2< T >::enable_shared_from_this2 ( enable_shared_from_this2< T > const &  )
inlineprotected

Definition at line 153 of file G4memory.hh.

template<typename T >
CLHEP::enable_shared_from_this2< T >::~enable_shared_from_this2 ( )
inlineprotected

Definition at line 161 of file G4memory.hh.

References CLHEP::enable_shared_from_this2< T >::shared_this_.

Member Function Documentation

template<typename T >
template<typename X , typename Y >
void CLHEP::enable_shared_from_this2< T >::_internal_accept_owner ( shared_ptr< X > *  ppx,
Y *  py 
) const
inline

Definition at line 204 of file G4memory.hh.

References CLHEP::enable_shared_from_this2< T >::shared_this_.

template<typename T >
void CLHEP::enable_shared_from_this2< T >::init_weak_once ( ) const
inlineprivate

Definition at line 188 of file G4memory.hh.

References CLHEP::enable_shared_from_this2< T >::shared_this_.

Referenced by CLHEP::enable_shared_from_this2< T >::shared_from_this().

+ Here is the caller graph for this function:

template<typename T >
enable_shared_from_this2& CLHEP::enable_shared_from_this2< T >::operator= ( enable_shared_from_this2< T > const &  )
inlineprotected

Definition at line 156 of file G4memory.hh.

template<typename T >
shared_ptr<T> CLHEP::enable_shared_from_this2< T >::shared_from_this ( )
inline

Definition at line 173 of file G4memory.hh.

References CLHEP::enable_shared_from_this2< T >::init_weak_once(), and CLHEP::enable_shared_from_this2< T >::weak_this_.

+ Here is the call graph for this function:

template<typename T >
shared_ptr<T const> CLHEP::enable_shared_from_this2< T >::shared_from_this ( ) const
inline

Definition at line 180 of file G4memory.hh.

References CLHEP::enable_shared_from_this2< T >::init_weak_once(), and CLHEP::enable_shared_from_this2< T >::weak_this_.

+ Here is the call graph for this function:

Member Data Documentation

template<typename T >
weak_ptr<T> CLHEP::enable_shared_from_this2< T >::weak_this_
mutableprivate

Definition at line 167 of file G4memory.hh.

Referenced by CLHEP::enable_shared_from_this2< T >::shared_from_this().


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