Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::interprocess::enable_shared_from_this< T, A, D > Singleton Reference

This class is used as a base class that allows a shared_ptr to the current object to be obtained from within a member function. More...

#include <shared_ptr.hpp>

Collaboration diagram for boost::interprocess::enable_shared_from_this< T, A, D >:

Public Types

typedef T element_type
 

Public Member Functions

shared_ptr< T, A, D > shared_from_this ()
 
shared_ptr< T const, A, D > shared_from_this () const
 

Public Attributes

weak_ptr< element_type, A, D > _internal_weak_this
 

Protected Member Functions

 enable_shared_from_this ()
 
 enable_shared_from_this (enable_shared_from_this const &)
 
enable_shared_from_thisoperator= (enable_shared_from_this const &)
 
 ~enable_shared_from_this ()
 

Detailed Description

template<class T, class A, class D>
singleton boost::interprocess::enable_shared_from_this< T, A, D >

This class is used as a base class that allows a shared_ptr to the current object to be obtained from within a member function.

enable_shared_from_this defines two member functions called shared_from_this that return a shared_ptr<T> and shared_ptr<T const>, depending on constness, to this.

Member Typedef Documentation

template<class T, class A, class D>
typedef T boost::interprocess::enable_shared_from_this< T, A, D >::element_type

Constructor & Destructor Documentation

template<class T, class A, class D>
boost::interprocess::enable_shared_from_this< T, A, D >::enable_shared_from_this ( )
inlineprotected
template<class T, class A, class D>
boost::interprocess::enable_shared_from_this< T, A, D >::enable_shared_from_this ( enable_shared_from_this< T, A, D > const &  )
inlineprotected
template<class T, class A, class D>
boost::interprocess::enable_shared_from_this< T, A, D >::~enable_shared_from_this ( )
inlineprotected

Member Function Documentation

template<class T, class A, class D>
enable_shared_from_this& boost::interprocess::enable_shared_from_this< T, A, D >::operator= ( enable_shared_from_this< T, A, D > const &  )
inlineprotected

Member Data Documentation


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