This is Unofficial EPICS BASE Doxygen Site
epics::debug Namespace Reference

Classes

class  enable_shared_from_this
 
class  ptr_base
 
class  shared_ptr
 
class  shared_ptr_base
 
class  weak_ptr
 
class  weak_ptr_base
 

Functions

template<typename Store , typename Actual >
void do_enable_shared_from_this (const shared_ptr< Store > &dest, enable_shared_from_this< Actual > *self)
 
template<typename T >
void do_enable_shared_from_this (const shared_ptr< T > &,...)
 
template<typename TO , typename FROM >
shared_ptr< TO > static_pointer_cast (const shared_ptr< FROM > &src)
 
template<typename TO , typename FROM >
shared_ptr< TO > const_pointer_cast (const shared_ptr< FROM > &src)
 
template<typename TO , typename FROM >
shared_ptr< TO > dynamic_pointer_cast (const shared_ptr< FROM > &src)
 

Function Documentation

template<typename TO , typename FROM >
shared_ptr<TO> epics::debug::const_pointer_cast ( const shared_ptr< FROM > &  src)

Definition at line 232 of file debugPtr.h.

232  {
233  return shared_ptr<TO>(std::const_pointer_cast<TO>(src.real), src.track);
234 }
shared_ptr< TO > const_pointer_cast(const shared_ptr< FROM > &src)
Definition: debugPtr.h:232
template<typename Store , typename Actual >
void epics::debug::do_enable_shared_from_this ( const shared_ptr< Store > &  dest,
enable_shared_from_this< Actual > *  self 
)
inline

Definition at line 309 of file debugPtr.h.

312 {
313  shared_ptr<Actual> actual(dynamic_pointer_cast<Actual>(dest));
314  if(!actual)
315  throw std::logic_error("epics::debug::enabled_shared_from_this fails");
316  self->xxInternalSelf = actual;
317 }
template<typename T >
void epics::debug::do_enable_shared_from_this ( const shared_ptr< T > &  ,
  ... 
)
inline

Definition at line 114 of file debugPtr.h.

114 {}
template<typename TO , typename FROM >
shared_ptr<TO> epics::debug::dynamic_pointer_cast ( const shared_ptr< FROM > &  src)

Definition at line 237 of file debugPtr.h.

237  {
238  return shared_ptr<TO>(std::dynamic_pointer_cast<TO>(src.real), src.track);
239 }
shared_ptr< TO > dynamic_pointer_cast(const shared_ptr< FROM > &src)
Definition: debugPtr.h:237
template<typename TO , typename FROM >
shared_ptr<TO> epics::debug::static_pointer_cast ( const shared_ptr< FROM > &  src)

Definition at line 227 of file debugPtr.h.

227  {
228  return shared_ptr<TO>(std::static_pointer_cast<TO>(src.real), src.track);
229 }
shared_ptr< TO > static_pointer_cast(const shared_ptr< FROM > &src)
Definition: debugPtr.h:227