DetectorGraph
2.0
|
A Base class for a basic Graph container. More...
Public Member Functions | |
ProcessorContainer () | |
template<class TTopic > | |
void | ProcessData (const TTopic &topicState) |
Pushes data followed by graph evaluation and output processing. More... | |
void | ProcessGraph () |
Performs all pending Graph Evaluations with output processing. More... | |
virtual void | ProcessOutput ()=0 |
Called after each Graph Evaluation. More... | |
virtual | ~ProcessorContainer () |
Public Attributes | |
Graph | mGraph |
A Base class for a basic Graph container.
Below is an example of how to implement a ProcessorContainer:
And an example of how to invoke it:
This is the simplest way to build detector graphs and is used throughout the examples.
Definition at line 36 of file processorcontainer.hpp.
|
inline |
Definition at line 39 of file processorcontainer.hpp.
|
inlinevirtual |
Definition at line 76 of file processorcontainer.hpp.
|
inline |
Pushes data followed by graph evaluation and output processing.
Pushes
topicState | into the graph, performs all pending graph evaluations calling ProcessOutput for each one of them. |
Definition at line 50 of file processorcontainer.hpp.
|
inline |
Performs all pending Graph Evaluations with output processing.
Definition at line 57 of file processorcontainer.hpp.
|
pure virtual |
Called after each Graph Evaluation.
Users should provide an implementation for this method where they can inspect specific output topics or process all new outputs generically using Graph::GetOutputList.
Graph DetectorGraph::ProcessorContainer::mGraph |
Definition at line 74 of file processorcontainer.hpp.