![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Static-only validator for TaskGraphTemplate instances. More...
#include <NodeValidator.h>
Static Public Member Functions | |
| static std::vector< ValidationMessage > | ValidateGraph (const TaskGraphTemplate *graph) |
| Validates every node in the graph and returns all findings. | |
| static std::vector< ValidationMessage > | ValidateNode (const TaskNodeDefinition *node) |
| Validates a single node definition. | |
Static Private Member Functions | |
| static void | CheckUnconnectedNodes (const TaskGraphTemplate *graph, std::vector< ValidationMessage > &messages) |
| Flags non-EntryPoint/ExitPoint nodes with no outgoing exec connections. | |
| static void | CheckMissingSubGraphPaths (const TaskGraphTemplate *graph, std::vector< ValidationMessage > &messages) |
| Flags SubGraph nodes that have an empty SubGraphPath. | |
| static void | CheckInfiniteLoops (const TaskGraphTemplate *graph, std::vector< ValidationMessage > &messages) |
| Flags cycles detected via DFS over ExecPinConnections. | |
| static void | AddMessage (std::vector< ValidationMessage > &messages, int nodeId, NVSeverity severity, const std::string &msg, const std::string &hint="") |
Static-only validator for TaskGraphTemplate instances.
Typical usage:
Definition at line 73 of file NodeValidator.h.
|
staticprivate |
Definition at line 191 of file NodeValidator.cpp.
References GetComponentTypeID_Static(), and Olympe::ValidationMessage::nodeId.
Referenced by CheckInfiniteLoops(), CheckMissingSubGraphPaths(), CheckUnconnectedNodes(), ValidateGraph(), and ValidateNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Flags cycles detected via DFS over ExecPinConnections.
Definition at line 154 of file NodeValidator.cpp.
References AddMessage(), Olympe::Error, and GetComponentTypeID_Static().
Referenced by ValidateGraph().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Flags SubGraph nodes that have an empty SubGraphPath.
Definition at line 97 of file NodeValidator.cpp.
References AddMessage(), Olympe::Error, GetComponentTypeID_Static(), and Olympe::SubGraph.
Referenced by ValidateGraph().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Flags non-EntryPoint/ExitPoint nodes with no outgoing exec connections.
Definition at line 68 of file NodeValidator.cpp.
References AddMessage(), Olympe::EntryPoint, GetComponentTypeID_Static(), Olympe::Root, and Olympe::Warning.
Referenced by ValidateGraph().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Validates every node in the graph and returns all findings.
| graph | Non-null pointer to the template to validate. |
Definition at line 19 of file NodeValidator.cpp.
References AddMessage(), CheckInfiniteLoops(), CheckMissingSubGraphPaths(), CheckUnconnectedNodes(), Olympe::Error, and GetComponentTypeID_Static().
Here is the call graph for this function:
|
static |
Validates a single node definition.
| node | Non-null pointer to the node to validate. |
Definition at line 42 of file NodeValidator.cpp.
References AddMessage(), Olympe::Error, GetComponentTypeID_Static(), and Olympe::SubGraph.
Here is the call graph for this function: