#include <memory.h>
Definition at line 593 of file memory.h.
◆ weak_ctrl_handle() [1/3]
CLHEP::sp::weak_ctrl_handle::weak_ctrl_handle |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
Definition at line 629 of file memory.h.
630 : acb_ptr( 0 )
631{ }
◆ weak_ctrl_handle() [2/3]
Definition at line 633 of file memory.h.
634 : acb_ptr( other.acb_ptr )
635{
636 if( acb_ptr != 0 )
638}
◆ ~weak_ctrl_handle()
CLHEP::sp::weak_ctrl_handle::~weak_ctrl_handle |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
Definition at line 640 of file memory.h.
641{
642 if( acb_ptr != 0 )
644}
◆ weak_ctrl_handle() [3/3]
Definition at line 654 of file memory.h.
655 : acb_ptr( other.acb_ptr )
656{
657 if( acb_ptr != 0 )
659}
◆ empty()
bool CLHEP::sp::weak_ctrl_handle::empty |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator=() [1/2]
Definition at line 662 of file memory.h.
663{
664 abstract_ctrl_block * tmp = other.acb_ptr;
665
666 if( tmp != acb_ptr )
667 {
668 if( tmp != 0 ) tmp->weak_add_ref();
670 acb_ptr = tmp;
671}
672
673 return *this;
674}
◆ operator=() [2/2]
Definition at line 677 of file memory.h.
678{
679 abstract_ctrl_block * tmp = other.acb_ptr;
680
681 if( tmp != acb_ptr )
682{
683 if( tmp != 0 ) tmp->weak_add_ref();
685 acb_ptr = tmp;
686}
687
688 return *this;
689}
◆ swap()
◆ use_count()
long CLHEP::sp::weak_ctrl_handle::use_count |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
◆ operator<
Definition at line 709 of file memory.h.
711{
712 return std::less<abstract_ctrl_block*>()( lhs.acb_ptr, rhs.acb_ptr );
713}
◆ operator==
Definition at line 704 of file memory.h.
705{
706 return lhs.acb_ptr == rhs.acb_ptr;
707}
◆ shared_ctrl_handle
The documentation for this class was generated from the following file: