MyraMath
myramath
jobgraph
verify.h
Go to the documentation of this file.
1
// ========================================================================= //
2
// This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3
// and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4
// ========================================================================= //
5
6
#ifndef MYRAMATH_JOBGRAPH_VERIFY_H
7
#define MYRAMATH_JOBGRAPH_VERIFY_H
8
14
#include <myramath/MYRAMATH_EXPORT.h>
15
16
namespace
myra
{
17
18
class
JobGraph;
19
class
JobGraphBase;
20
22
// * Check that each of G's begin()'s has zero parents.
23
// * Check that each of G's end()'s has zero children.
24
// * For every Job J that G produces:
25
// * Check that its key() matches what G used to produce it.
26
// * Check that its parent() list is free of duplicates.
27
// * For each parent() P, check that P reports J as a child.
28
// * Check that its children() list is free of duplicates.
29
// * For each child() C, check that C reports J as a parent.
30
// * Check that every end() of G is reachable.
31
MYRAMATH_EXPORT
bool
verify(JobGraph& graph);
32
MYRAMATH_EXPORT
bool
verify(JobGraphBase& graphbase);
33
34
}
// namespace myra
35
36
#endif
myra
Definition:
syntax.dox:1
Generated on Sun Aug 4 2024 12:26:04 for MyraMath by
1.8.13