Include file:
#include "mcrl2/utilities/shared_reference.h
mcrl2::utilities::
shared_reference
¶A reference counted reference to a shared_reference_counted object.
Similar to a shared_ptr except that reference counts are only atomic when thread safety is desired and that it stores the reference count in the inherited object.
mcrl2::utilities::shared_reference::
m_reference
¶defined
() constCheck whether the shared_reference has a valid reference.
get
() const noexceptoperator!=
(const shared_reference<T> &other) const noexcept¶operator*
() const noexceptoperator->
() const noexceptoperator<
(const shared_reference<T> &other) const noexcept¶operator<=
(const shared_reference<T> &other) const noexcept¶operator=
(const shared_reference<T> &other) noexcept¶Copy assignment constructor.
operator=
(shared_reference<T> &&other) noexcept¶Move assignment constructor.
operator==
(const shared_reference<T> &other) const noexcept¶operator>
(const shared_reference<T> &other) const noexcept¶operator>=
(const shared_reference &other) const noexcept¶shared_reference
() noexcept¶The default constructor.
shared_reference
(const shared_reference<T> &other) noexcept¶Copy constructor.
shared_reference
(shared_reference<T> &&other) noexcept¶Move constructor.
shared_reference
(T *reference) noexcept¶Takes ownership of the passed reference, which means that its reference count is incremented.
swap
(shared_reference<T> &other)¶Swaps *this with the other shared reference.
Prevents the change of any reference count adaptations
tag
() const¶tagged
() const noexcept¶untag
() const¶~shared_reference
()¶mcrl2::utilities::replacement_policy
mcrl2::utilities::shared_reference_counted