|
SObjectizer 5.8
|
Template class for smart reference wrapper on the atomic_refcounted_t. More...
#include <atomic_refcounted.hpp>
Public Member Functions | |
| intrusive_ptr_t () noexcept | |
| Default constructor. | |
| intrusive_ptr_t (T *obj) noexcept | |
| Constructor for a raw pointer. | |
| intrusive_ptr_t (const intrusive_ptr_t &o) noexcept | |
| Copy constructor. | |
| intrusive_ptr_t (intrusive_ptr_t &&o) noexcept | |
| Move constructor. | |
| template<class Y > | |
| intrusive_ptr_t (const intrusive_ptr_t< Y > &o) noexcept | |
| Constructor from another smart reference. | |
| template<class Y > | |
| intrusive_ptr_t (std::unique_ptr< Y > o) noexcept | |
| Constructor from unique_ptr instance. | |
| ~intrusive_ptr_t () noexcept | |
| Destructor. | |
| intrusive_ptr_t & | operator= (const intrusive_ptr_t &o) noexcept |
| Copy operator. | |
| intrusive_ptr_t & | operator= (intrusive_ptr_t &&o) noexcept |
| Move operator. | |
| void | reset () noexcept |
| Drop controlled object. | |
| template<class Y > | |
| intrusive_ptr_t< Y > | make_reference () const noexcept |
| Make reference with casing to different type. | |
| operator bool () const noexcept | |
| Is this a null reference? | |
Access to object. | |
| T * | get () const noexcept |
| T * | operator-> () const noexcept |
| T & | operator* () const noexcept |
Comparision | |
| bool | operator== (const intrusive_ptr_t &o) const |
| bool | operator< (const intrusive_ptr_t &o) const |
Private Member Functions | |
| void | take_object () noexcept |
| Increment reference count to object if it's not null. | |
| void | dismiss_object () noexcept |
| Decrement reference count to object and delete it if needed. | |
Static Private Member Functions | |
| static void | ensure_right_T () |
Private Attributes | |
| T * | m_obj |
| Object controlled by a smart reference. | |
Friends | |
| void | swap (intrusive_ptr_t &a, intrusive_ptr_t &b) noexcept |
| Swap values. | |
Template class for smart reference wrapper on the atomic_refcounted_t.
| T | class which must be derived from the atomic_refcounted_t. |
Definition at line 92 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Default constructor.
Constructs a null reference.
Definition at line 106 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Constructor for a raw pointer.
Definition at line 112 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Copy constructor.
Definition at line 119 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Move constructor.
Definition at line 126 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Constructor from another smart reference.
Definition at line 140 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Constructor from unique_ptr instance.
Definition at line 155 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Destructor.
Definition at line 164 of file atomic_refcounted.hpp.
|
inlineprivatenoexcept |
Decrement reference count to object and delete it if needed.
Definition at line 295 of file atomic_refcounted.hpp.
|
inlinestaticprivate |
Definition at line 94 of file atomic_refcounted.hpp.
|
inlinenodiscardnoexcept |
Definition at line 240 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Make reference with casing to different type.
Definition at line 215 of file atomic_refcounted.hpp.
|
inlineexplicitnodiscardnoexcept |
Is this a null reference?
i.e. whether get() != 0.
| true | if *this manages an object. |
| false | otherwise. |
Definition at line 229 of file atomic_refcounted.hpp.
|
inlinenodiscardnoexcept |
Definition at line 254 of file atomic_refcounted.hpp.
|
inlinenodiscardnoexcept |
Definition at line 247 of file atomic_refcounted.hpp.
|
inlinenodiscard |
Definition at line 273 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Copy operator.
Definition at line 179 of file atomic_refcounted.hpp.
|
inlinenoexcept |
Move operator.
Definition at line 188 of file atomic_refcounted.hpp.
|
inlinenodiscard |
Definition at line 267 of file atomic_refcounted.hpp.
|
inlinenoexcept |
|
inlineprivatenoexcept |
Increment reference count to object if it's not null.
Definition at line 287 of file atomic_refcounted.hpp.
|
friend |
Swap values.
Definition at line 171 of file atomic_refcounted.hpp.
|
private |
Object controlled by a smart reference.
Definition at line 283 of file atomic_refcounted.hpp.