iMSTK
Interactive Medical Simulation Toolkit
Source
Common
TaskGraph
imstkSequentialTaskGraphController.h
1
/*
2
** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3
** iMSTK is distributed under the Apache License, Version 2.0.
4
** See accompanying NOTICE for details.
5
*/
6
7
#pragma once
8
9
#include "imstkTaskGraphController.h"
10
#include <list>
11
12
namespace
imstk
13
{
14
class
TaskNode;
15
22
class
SequentialTaskGraphController
:
public
TaskGraphController
23
{
24
public
:
28
void
init
()
override
;
29
30
void
execute
()
override
;
31
32
private
:
33
// The current nodes to execute, ordered
34
std::shared_ptr<std::list<std::shared_ptr<TaskNode>>> m_executionOrderedNodes;
35
};
36
};
// namespace imstk
imstk::SequentialTaskGraphController
This class executes a TaskGraph by first topologically sorting them (Kahn's algorithm) then sequentia...
Definition:
imstkSequentialTaskGraphController.h:22
imstk
Compound Geometry.
Definition:
OctreeDebugModel.cpp:10
imstk::SequentialTaskGraphController::execute
void execute() override
Executes the TaskGraph.
Definition:
imstkSequentialTaskGraphController.cpp:19
imstk::SequentialTaskGraphController::init
void init() override
Sorts the computational nodes.
Definition:
imstkSequentialTaskGraphController.cpp:13
imstk::TaskGraphController
Base class for TaskGraph controllers which are responsible for executing the TaskGraph.
Definition:
imstkTaskGraphController.h:20
Generated by
1.8.13