DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExp::RunnableObject::RunnableInstanceOnlyType Class Reference

Allow exclusive access to some of RunnableObject's private methods to class RunnableInstance. More...

Private Member Functions

constexpr RunnableInstanceOnlyType (RunnableObject &Parent) noexcept
 Construcs an instance - one for each RunnableObject instance. More...
 
void OnThreadHasExited () const noexcept
 This function is called when the RunnableObject instance's thread terminates. The thread receives a RunnableInstance instance as a parameter. When it exits, this RunnableInstance instance is destroyed. So, RunnableInstance's destructor is invoked. It calls RunnableInstance::SetThreadExited(), which in turn calls this function, and signals the thread termination to ThreadExitedSignal. More...
 
bool IsLinkedObjStateCheckRequested () const noexcept
 Indicates whether the RunnableInstance instance belonging to this RunnableObject instance's thread should recheck the states of all Object instances this RunnableObject uses. More...
 
void ResetLinkedObjStateCheckRequested () const noexcept
 Sets RunnableObject::LinkedObjStateCheckRequested to false. More...
 

Private Attributes

RunnableObjectParent
 Owning RunnableObject instance. More...
 

Friends

class RunnableObject
 
class RunnableInstance
 

Detailed Description

Allow exclusive access to some of RunnableObject's private methods to class RunnableInstance.

Definition at line 2430 of file Object.h.

Constructor & Destructor Documentation

◆ RunnableInstanceOnlyType()

constexpr DynExp::RunnableObject::RunnableInstanceOnlyType::RunnableInstanceOnlyType ( RunnableObject Parent)
inlineconstexprprivatenoexcept

Construcs an instance - one for each RunnableObject instance.

Parameters
ParentOwning RunnableObject instance

Definition at line 2439 of file Object.h.

Member Function Documentation

◆ IsLinkedObjStateCheckRequested()

bool DynExp::RunnableObject::RunnableInstanceOnlyType::IsLinkedObjStateCheckRequested ( ) const
inlineprivatenoexcept

Indicates whether the RunnableInstance instance belonging to this RunnableObject instance's thread should recheck the states of all Object instances this RunnableObject uses.

Definition at line 2442 of file Object.h.

◆ OnThreadHasExited()

void DynExp::RunnableObject::RunnableInstanceOnlyType::OnThreadHasExited ( ) const
inlineprivatenoexcept

This function is called when the RunnableObject instance's thread terminates. The thread receives a RunnableInstance instance as a parameter. When it exits, this RunnableInstance instance is destroyed. So, RunnableInstance's destructor is invoked. It calls RunnableInstance::SetThreadExited(), which in turn calls this function, and signals the thread termination to ThreadExitedSignal.

Definition at line 2441 of file Object.h.

◆ ResetLinkedObjStateCheckRequested()

void DynExp::RunnableObject::RunnableInstanceOnlyType::ResetLinkedObjStateCheckRequested ( ) const
inlineprivatenoexcept

Sets RunnableObject::LinkedObjStateCheckRequested to false.

Definition at line 2443 of file Object.h.

Friends And Related Function Documentation

◆ RunnableInstance

friend class RunnableInstance
friend

Definition at line 2433 of file Object.h.

◆ RunnableObject

friend class RunnableObject
friend

Definition at line 2432 of file Object.h.

Member Data Documentation

◆ Parent

RunnableObject& DynExp::RunnableObject::RunnableInstanceOnlyType::Parent
private

Owning RunnableObject instance.

Definition at line 2445 of file Object.h.


The documentation for this class was generated from the following file: