ememory::EnableSharedFromThis< EMEMORY_TYPE > Class Template Reference

#include <EnableSharedFromThis.hpp>

Inheritance diagram for ememory::EnableSharedFromThis< EMEMORY_TYPE >:
ememory::EnableSharedFromThisBase

Public Member Functions

ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis ()
 
const ememory::SharedPtr< EMEMORY_TYPE > sharedFromThis () const
 
ememory::WeakPtr< EMEMORY_TYPE > weakFromThis ()
 
const ememory::WeakPtr< EMEMORY_TYPE > weakFromThis () const
 

Protected Member Functions

 EnableSharedFromThis ()
 
virtual ~EnableSharedFromThis ()=default
 

Detailed Description

template<typename EMEMORY_TYPE>
class ememory::EnableSharedFromThis< EMEMORY_TYPE >

Enable the acces of the self sharedPtr inside an object (note: not availlable in contructor and destructor)

Constructor & Destructor Documentation

§ EnableSharedFromThis()

template<typename EMEMORY_TYPE >
ememory::EnableSharedFromThis< EMEMORY_TYPE >::EnableSharedFromThis ( )
protected

Contructor.

§ ~EnableSharedFromThis()

template<typename EMEMORY_TYPE >
virtual ememory::EnableSharedFromThis< EMEMORY_TYPE >::~EnableSharedFromThis ( )
protectedvirtualdefault

Virual destructor (simply virtualyse the destructor)

Member Function Documentation

§ sharedFromThis() [1/2]

template<typename EMEMORY_TYPE >
ememory::SharedPtr<EMEMORY_TYPE> ememory::EnableSharedFromThis< EMEMORY_TYPE >::sharedFromThis ( )

Get the currect class SharedPtr.

Returns
Request SharedPtr

§ sharedFromThis() [2/2]

template<typename EMEMORY_TYPE >
const ememory::SharedPtr<EMEMORY_TYPE> ememory::EnableSharedFromThis< EMEMORY_TYPE >::sharedFromThis ( ) const

Get the currect class SharedPtr.

Returns
Request const SharedPtr

§ weakFromThis() [1/2]

template<typename EMEMORY_TYPE >
ememory::WeakPtr<EMEMORY_TYPE> ememory::EnableSharedFromThis< EMEMORY_TYPE >::weakFromThis ( )

Get the currect class WeakPtr.

Returns
Request WeakPtr

§ weakFromThis() [2/2]

template<typename EMEMORY_TYPE >
const ememory::WeakPtr<EMEMORY_TYPE> ememory::EnableSharedFromThis< EMEMORY_TYPE >::weakFromThis ( ) const

Get the currect class WeakPtr.

Returns
Request const WeakPtr

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