|
SObjectizer
5.5
|
Template class for smart reference wrapper on the atomic_refcounted_t. More...
#include <atomic_refcounted.hpp>
Public Member Functions | |
| intrusive_ptr_t () SO_5_NOEXCEPT | |
| Default constructor. More... | |
| intrusive_ptr_t (T *obj) SO_5_NOEXCEPT | |
| Constructor for a raw pointer. More... | |
| intrusive_ptr_t (const intrusive_ptr_t &o) SO_5_NOEXCEPT | |
| Copy constructor. More... | |
| intrusive_ptr_t (intrusive_ptr_t &&o) SO_5_NOEXCEPT | |
| Move constructor. More... | |
| template<class Y > | |
| intrusive_ptr_t (const intrusive_ptr_t< Y > &o) SO_5_NOEXCEPT | |
| Constructor from another smart reference. More... | |
| template<class Y > | |
| intrusive_ptr_t (std::unique_ptr< Y > o) SO_5_NOEXCEPT | |
| Constructor from unique_ptr instance. More... | |
| ~intrusive_ptr_t () SO_5_NOEXCEPT | |
| Destructor. More... | |
| intrusive_ptr_t & | operator= (const intrusive_ptr_t &o) SO_5_NOEXCEPT |
| Copy operator. More... | |
| intrusive_ptr_t & | operator= (intrusive_ptr_t &&o) SO_5_NOEXCEPT |
| Move operator. More... | |
| void | swap (intrusive_ptr_t &o) SO_5_NOEXCEPT |
| Swap values. More... | |
| void | reset () SO_5_NOEXCEPT |
| Drop controlled object. More... | |
| template<class Y > | |
| intrusive_ptr_t< Y > | make_reference () const SO_5_NOEXCEPT |
| Make reference with casing to different type. More... | |
| operator bool () const SO_5_NOEXCEPT | |
| Is this a null reference? More... | |
Access to object. | |
| T * | get () const SO_5_NOEXCEPT |
| T * | operator-> () const SO_5_NOEXCEPT |
| T & | operator* () const SO_5_NOEXCEPT |
Comparision | |
| bool | operator== (const intrusive_ptr_t &o) const |
| bool | operator< (const intrusive_ptr_t &o) const |
Private Member Functions | |
| void | take_object () SO_5_NOEXCEPT |
| Increment reference count to object if it's not null. More... | |
| void | dismiss_object () SO_5_NOEXCEPT |
| Decrement reference count to object and delete it if needed. More... | |
Static Private Member Functions | |
| static void | ensure_right_T () |
Private Attributes | |
| T * | m_obj |
| Object controlled by a smart reference. More... | |
Template class for smart reference wrapper on the atomic_refcounted_t.
| T | class which must be derived from the atomic_refcounted_t. |
|
inline |
Default constructor.
Constructs a null reference.
|
inline |
Constructor for a raw pointer.
|
inline |
Copy constructor.
|
inline |
Move constructor.
|
inline |
Constructor from another smart reference.
|
inline |
Constructor from unique_ptr instance.
|
inline |
Destructor.
|
inlineprivate |
Decrement reference count to object and delete it if needed.
|
inlinestaticprivate |
|
inline |
|
inline |
Make reference with casing to different type.
|
inline |
Is this a null reference?
i.e. whether get() != 0.
| true | if *this manages an object. |
| false | otherwise. |
|
inline |
|
inline |
|
inline |
|
inline |
Copy operator.
|
inline |
Move operator.
|
inline |
|
inline |
Drop controlled object.
|
inline |
Swap values.
|
inlineprivate |
Increment reference count to object if it's not null.
|
private |
Object controlled by a smart reference.
1.8.14