#include <memory.h>
Definition at line 407 of file memory.h.
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
template<typename P >
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
P * |
p | ) |
|
|
inlineexplicit |
Definition at line 461 of file memory.h.
467 acb_ptr =
new ctrl_block_p<P>(
p);
template<typename P , typename D >
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
P * |
p, |
|
|
D |
d |
|
) |
| |
|
inline |
Definition at line 476 of file memory.h.
482 acb_ptr =
new ctrl_block_pd<P,D>(
p, d);
template<typename P , typename D , typename A >
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
P * |
p, |
|
|
D |
d, |
|
|
A |
a |
|
) |
| |
|
inline |
Definition at line 491 of file memory.h.
494 typedef ctrl_block_pda<P,D,A>
496 typedef typename A::template rebind<ctrl_block>::other
497 ctrl_block_allocator;
498 ctrl_block_allocator cba(
a );
502 acb_ptr = cba.allocate( 1 );
503 new(
static_cast<void*
>(acb_ptr) ) ctrl_block(
p, d,
a);
509 cba.deallocate( static_cast<ctrl_block*>( acb_ptr ), 1 );
template<typename P >
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
std::auto_ptr< P > & |
p | ) |
|
|
inlineexplicit |
Definition at line 515 of file memory.h.
516 : acb_ptr(
new ctrl_block_p<P>(
p.get() ) )
CLHEP::sp::shared_ctrl_handle::~shared_ctrl_handle |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inline |
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
shared_ctrl_handle const & |
other | ) |
|
throw | ( | |
| ) | | |
|
inline |
Definition at line 535 of file memory.h.
536 : acb_ptr( other.acb_ptr )
CLHEP::sp::shared_ctrl_handle::shared_ctrl_handle |
( |
weak_ctrl_handle const & |
other | ) |
|
|
inlineexplicit |
bool CLHEP::sp::shared_ctrl_handle::empty |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
void * CLHEP::sp::shared_ctrl_handle::get_deleter |
( |
std::type_info const & |
ti | ) |
const |
|
inline |
Definition at line 528 of file memory.h.
530 abstract_ctrl_block * tmp = other.acb_ptr;
531 other.acb_ptr = acb_ptr;
bool CLHEP::sp::shared_ctrl_handle::unique |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
long CLHEP::sp::shared_ctrl_handle::use_count |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
inline |
Definition at line 588 of file memory.h.
590 return std::less<abstract_ctrl_block*>()( lhs.acb_ptr, rhs.acb_ptr );
Definition at line 582 of file memory.h.
584 return lhs.acb_ptr == rhs.acb_ptr;
The documentation for this class was generated from the following file: