Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Tasking::RuntimeContainer Class Reference
+ Collaboration diagram for Tasking::RuntimeContainer:

Public Member Functions

 RuntimeContainer (const ContainerNode &taskContainer, RuntimeTask *parentTask)
 
 ~RuntimeContainer ()
 
bool isStarting () const
 
RuntimeIterationparentIteration () const
 
bool updateSuccessBit (bool success)
 
void deleteFinishedIterations ()
 
int progressiveLoopCount () const
 

Static Public Member Functions

static QList< StoragePtrcreateStorages (const ContainerNode &container)
 

Public Attributes

const ContainerNodem_containerNode
 
RuntimeTaskm_parentTask = nullptr
 
const QList< StoragePtrm_storages
 
bool m_successBit = true
 
bool m_callStorageDoneHandlersOnDestruction = false
 
Guard m_startGuard
 
int m_iterationCount = 0
 
int m_nextToStart = 0
 
int m_runningChildren = 0
 
bool m_shouldIterate = true
 
std::vector< std::unique_ptr< RuntimeIteration > > m_iterations
 

Detailed Description

Definition at line 1708 of file tasktree.cpp.

Constructor & Destructor Documentation

◆ RuntimeContainer()

Tasking::RuntimeContainer::RuntimeContainer ( const ContainerNode & taskContainer,
RuntimeTask * parentTask )
inline

Definition at line 1713 of file tasktree.cpp.

◆ ~RuntimeContainer()

Tasking::RuntimeContainer::~RuntimeContainer ( )
inline

Definition at line 1721 of file tasktree.cpp.

References Tasking::TaskTreePrivate::callDoneHandler(), i, m_callStorageDoneHandlersOnDestruction, m_containerNode, Tasking::ContainerNode::m_storageList, m_storages, Tasking::ContainerNode::m_taskTreePrivate, storage, and QList< T >::value().

+ Here is the call graph for this function:

Member Function Documentation

◆ createStorages()

QList< StoragePtr > Tasking::RuntimeContainer::createStorages ( const ContainerNode & container)
static

Definition at line 1922 of file tasktree.cpp.

References Tasking::TaskTreePrivate::callSetupHandler(), Tasking::ContainerNode::m_storageList, Tasking::ContainerNode::m_taskTreePrivate, and storage.

+ Here is the call graph for this function:

◆ deleteFinishedIterations()

void Tasking::RuntimeContainer::deleteFinishedIterations ( )

Definition at line 1954 of file tasktree.cpp.

References QSet< T >::cbegin(), QSet< T >::cend(), QSet< T >::erase(), it, Tasking::ContainerNode::m_children, m_containerNode, and m_iterations.

Referenced by Tasking::TaskTreePrivate::startChildren().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isStarting()

bool Tasking::RuntimeContainer::isStarting ( ) const
inline

Definition at line 1733 of file tasktree.cpp.

References Tasking::Guard::isLocked(), and m_startGuard.

Referenced by Tasking::TaskTreePrivate::childDone(), and Tasking::TaskTreePrivate::continueStart().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parentIteration()

RuntimeIteration * Tasking::RuntimeContainer::parentIteration ( ) const

Definition at line 1933 of file tasktree.cpp.

References Tasking::RuntimeTask::m_parentIteration, and m_parentTask.

Referenced by Tasking::TaskTreePrivate::continueStart().

+ Here is the caller graph for this function:

◆ progressiveLoopCount()

int Tasking::RuntimeContainer::progressiveLoopCount ( ) const
inline

Definition at line 1737 of file tasktree.cpp.

References Tasking::TaskTreePrivate::effectiveLoopCount(), m_containerNode, Tasking::ContainerNode::m_loop, and Tasking::ContainerNode::m_taskTreePrivate.

Referenced by Tasking::TaskTreePrivate::stop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSuccessBit()

bool Tasking::RuntimeContainer::updateSuccessBit ( bool success)

Definition at line 1938 of file tasktree.cpp.

References Tasking::ContinueOnSuccess, Tasking::FinishAllAndError, Tasking::FinishAllAndSuccess, m_containerNode, m_successBit, Tasking::ContainerNode::m_workflowPolicy, Tasking::StopOnSuccess, and Tasking::StopOnSuccessOrError.

Referenced by Tasking::TaskTreePrivate::childDone(), and Tasking::TaskTreePrivate::continueStart().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_callStorageDoneHandlersOnDestruction

bool Tasking::RuntimeContainer::m_callStorageDoneHandlersOnDestruction = false

◆ m_containerNode

◆ m_iterationCount

int Tasking::RuntimeContainer::m_iterationCount = 0

◆ m_iterations

std::vector<std::unique_ptr<RuntimeIteration> > Tasking::RuntimeContainer::m_iterations

◆ m_nextToStart

int Tasking::RuntimeContainer::m_nextToStart = 0

Definition at line 1751 of file tasktree.cpp.

Referenced by Tasking::TaskTreePrivate::startChildren().

◆ m_parentTask

◆ m_runningChildren

int Tasking::RuntimeContainer::m_runningChildren = 0

◆ m_shouldIterate

bool Tasking::RuntimeContainer::m_shouldIterate = true

◆ m_startGuard

Guard Tasking::RuntimeContainer::m_startGuard

Definition at line 1748 of file tasktree.cpp.

Referenced by isStarting(), and Tasking::TaskTreePrivate::startChildren().

◆ m_storages

const QList<StoragePtr> Tasking::RuntimeContainer::m_storages

Definition at line 1744 of file tasktree.cpp.

Referenced by ~RuntimeContainer().

◆ m_successBit

bool Tasking::RuntimeContainer::m_successBit = true

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