Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
CLHEP::sp Namespace Reference

Classes

class  abstract_ctrl_block
 
struct  const_cast_tag
 
class  ctrl_block_p
 
class  ctrl_block_pd
 
class  ctrl_block_pda
 
struct  dynamic_cast_tag
 
struct  polymorphic_cast_tag
 
class  shared_ctrl_handle
 
struct  shared_ptr_traits
 
struct  shared_ptr_traits< void >
 
struct  shared_ptr_traits< void const >
 
struct  shared_ptr_traits< void const volatile >
 
struct  shared_ptr_traits< void volatile >
 
struct  sp_nothrow_tag
 
struct  static_cast_tag
 
class  weak_ctrl_handle
 

Functions

bool operator== (shared_ctrl_handle const &lhs, shared_ctrl_handle const &rhs)
 
bool operator< (shared_ctrl_handle const &lhs, shared_ctrl_handle const &rhs)
 
bool operator== (weak_ctrl_handle const &lhs, weak_ctrl_handle const &rhs)
 
bool operator< (weak_ctrl_handle const &lhs, weak_ctrl_handle const &rhs)
 
template<typename X , typename Y , typename T >
void sp_enable_shared_from_this (shared_ptr< X > const *ppx, Y const *py, enable_shared_from_this< T > const *pe)
 
template<typename X , typename Y , typename T >
void sp_enable_shared_from_this (shared_ptr< X > *ppx, Y const *py, enable_shared_from_this2< T > const *pe)
 
void sp_enable_shared_from_this (...)
 

Function Documentation

◆ operator<() [1/2]

bool CLHEP::sp::operator< ( shared_ctrl_handle const lhs,
shared_ctrl_handle const rhs 
)

Definition at line 587 of file memory.h.

589{
590 return std::less<abstract_ctrl_block*>()( lhs.acb_ptr, rhs.acb_ptr );
591}

◆ operator<() [2/2]

bool CLHEP::sp::operator< ( weak_ctrl_handle const lhs,
weak_ctrl_handle const rhs 
)

Definition at line 709 of file memory.h.

711{
712 return std::less<abstract_ctrl_block*>()( lhs.acb_ptr, rhs.acb_ptr );
713}

◆ operator==() [1/2]

bool CLHEP::sp::operator== ( shared_ctrl_handle const lhs,
shared_ctrl_handle const rhs 
)

Definition at line 582 of file memory.h.

583{
584 return lhs.acb_ptr == rhs.acb_ptr;
585}

◆ operator==() [2/2]

bool CLHEP::sp::operator== ( weak_ctrl_handle const lhs,
weak_ctrl_handle const rhs 
)

Definition at line 704 of file memory.h.

705{
706 return lhs.acb_ptr == rhs.acb_ptr;
707}

◆ sp_enable_shared_from_this() [1/3]

void CLHEP::sp::sp_enable_shared_from_this (   ...)
inline

Definition at line 803 of file memory.h.

804{ }

◆ sp_enable_shared_from_this() [2/3]

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

Definition at line 793 of file memory.h.

797{
798 if( pe != 0 )
799 pe->_internal_accept_owner( ppx, const_cast<Y*>( py ) );
800}

◆ sp_enable_shared_from_this() [3/3]

template<typename X , typename Y , typename T >
void CLHEP::sp::sp_enable_shared_from_this ( shared_ptr< X > const ppx,
Y const py,
enable_shared_from_this< T > const pe 
)
inline

Definition at line 782 of file memory.h.

786{
787 if( pe != 0 )
788 pe->_internal_accept_owner( ppx, const_cast<Y*>( py ) );
789}

Referenced by CLHEP::shared_ptr< P >::shared_ptr().