.. index:: pair: class; EE::detail::TaskStateRef .. _doxid-class_e_e_1_1detail_1_1_task_state_ref: template class EE::detail::TaskStateRef ======================================= .. toctree:: :hidden: Overview ~~~~~~~~ Intrusive owning pointer to a :ref:`TaskSharedState `. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class TaskStateRef { public: // typedefs typedef :ref:`TaskSharedState` :target:`State`; // construction :target:`TaskStateRef`(); :target:`TaskStateRef`(TaskStateRef&& other); :target:`TaskStateRef`(const TaskStateRef&); :target:`~TaskStateRef`(); // methods TaskStateRef& :target:`operator=`(TaskStateRef&& other); TaskStateRef& :target:`operator=`(const TaskStateRef&); void :target:`reset`(); :ref:`State`* :target:`get`() const; :ref:`State`* :target:`operator->`() const; :ref:`State`& :target:`operator*`() const; :target:`operator bool`() const; static TaskStateRef :ref:`adopt`(:ref:`State`* state); static TaskStateRef :ref:`retain`(:ref:`State`* state); }; .. _details-class_e_e_1_1detail_1_1_task_state_ref: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Intrusive owning pointer to a :ref:`TaskSharedState `. Methods ------- .. index:: pair: function; adopt .. _doxid-class_e_e_1_1detail_1_1_task_state_ref_1a6134bb51a2d77f1be110a0a9b3e3427a: .. ref-code-block:: cpp :class: doxyrest-title-code-block static TaskStateRef adopt(:ref:`State`* state) Adopts an existing reference (no retain). .. index:: pair: function; retain .. _doxid-class_e_e_1_1detail_1_1_task_state_ref_1a37ee8ae69707e516359f16fe3db26e4a: .. ref-code-block:: cpp :class: doxyrest-title-code-block static TaskStateRef retain(:ref:`State`* state) Acquires a new reference.