rogue
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rogue::EnableSharedFromThis< T > Class Template Reference

Typed shared-from-this helper for Rogue classes. More...

#include <EnableSharedFromThis.h>

Inheritance diagram for rogue::EnableSharedFromThis< T >:
rogue::EnableSharedFromThisBase

Public Member Functions

std::shared_ptr< T > shared_from_this ()
 Returns a shared_ptr<T> for this instance.
 
- Public Member Functions inherited from rogue::EnableSharedFromThisBase
virtual ~EnableSharedFromThisBase ()
 Virtual destructor for polymorphic base usage.
 

Detailed Description

template<typename T>
class rogue::EnableSharedFromThis< T >

Typed shared-from-this helper for Rogue classes.

Use this in place of directly inheriting std::enable_shared_from_this<T> for Rogue classes that may participate in multiple inheritance and Python wrapping.

Template Parameters
TFinal/derived class type.

Definition at line 52 of file EnableSharedFromThis.h.

Member Function Documentation

◆ shared_from_this()

template<typename T >
std::shared_ptr< T > rogue::EnableSharedFromThis< T >::shared_from_this ( )
inline

Returns a shared_ptr<T> for this instance.

Returns
Shared pointer to this object cast to T.

Definition at line 58 of file EnableSharedFromThis.h.


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