#include <disableable_shared_from_this.hh>
template<typename T>
class DLG4::Utilities::disableable_shared_from_this< T >
Definition at line 34 of file disableable_shared_from_this.hh.
◆ disableable_shared_from_this()
◆ ~disableable_shared_from_this()
◆ set_shared_from_this_enabled()
template<typename T >
void set_shared_from_this_enabled |
( |
bool |
enabled | ) |
|
|
inline |
◆ shared_from_this() [1/2]
template<typename T >
std::shared_ptr< T > shared_from_this |
( |
| ) |
|
|
inline |
Definition at line 44 of file disableable_shared_from_this.hh.
44 {
46 return std::enable_shared_from_this<T>::shared_from_this();
47 } else {
48 return nullptr;
49 }
50 }
◆ shared_from_this() [2/2]
template<typename T >
std::shared_ptr< const T > shared_from_this |
( |
| ) |
const |
|
inline |
Definition at line 52 of file disableable_shared_from_this.hh.
52 {
54 return std::enable_shared_from_this<T>::shared_from_this();
55 } else {
56 return nullptr;
57 }
58 }
◆ is_enabled_
template<typename T >
std::atomic<bool> is_enabled_ {true} |
|
protected |
The documentation for this class was generated from the following file: