This is Unofficial EPICS BASE Doxygen Site
epics::debug::enable_shared_from_this< Base > Class Template Reference

#include "debugPtr.h"

Public Member Functions

shared_ptr< Base > shared_from_this () const
 

Friends

template<typename Store , typename Actual >
void do_enable_shared_from_this (const shared_ptr< Store > &dest, enable_shared_from_this< Actual > *self)
 

Detailed Description

template<class Base>
class epics::debug::enable_shared_from_this< Base >

Definition at line 104 of file debugPtr.h.

Member Function Documentation

template<class Base >
shared_ptr<Base> epics::debug::enable_shared_from_this< Base >::shared_from_this ( ) const
inline

Definition at line 302 of file debugPtr.h.

302  {
303  return shared_ptr<Base>(xxInternalSelf);
304  }

Friends And Related Function Documentation

template<class Base >
template<typename Store , typename Actual >
void do_enable_shared_from_this ( const shared_ptr< Store > &  dest,
enable_shared_from_this< Actual > *  self 
)
friend

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 }

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