MUQ  0.4.3
muq::Modeling::DependentEdgePredicate Class Reference

Determine if the source of an edge is downstream of an input. More...

#include <WorkGraphPiece.h>

Detailed Description

Determine if the source of an edge is downstream of an input.

Definition at line 86 of file WorkGraphPiece.h.

Public Member Functions

 DependentEdgePredicate ()
 Required default constructor. More...
 
 DependentEdgePredicate (DependentPredicate nodePred, Graph const &graph)
 
bool operator() (const boost::graph_traits< Graph >::edge_descriptor &edge) const
 

Constructor & Destructor Documentation

◆ DependentEdgePredicate() [1/2]

DependentEdgePredicate::DependentEdgePredicate ( )

Required default constructor.

Definition at line 64 of file WorkGraphPiece.cpp.

◆ DependentEdgePredicate() [2/2]

DependentEdgePredicate::DependentEdgePredicate ( DependentPredicate  nodePred,
Graph const &  graph 
)
Parameters
[in]nodePredAll the downstream nodes of a given input
[in]graphThe graph holding all of the nodes

Definition at line 66 of file WorkGraphPiece.cpp.

Member Function Documentation

◆ operator()()

bool DependentEdgePredicate::operator() ( const boost::graph_traits< Graph >::edge_descriptor &  edge) const
Parameters
[in]edgeAn edge in the graph
Returns
true: The source of the edge is a downstream node of the input, false: it is not a downstream node

Definition at line 68 of file WorkGraphPiece.cpp.

References graph, and nodePred.

Member Data Documentation

◆ graph

const Graph* muq::Modeling::DependentEdgePredicate::graph
private

The graph holding all the nodes.

Definition at line 108 of file WorkGraphPiece.h.

Referenced by operator()().

◆ nodePred

DependentPredicate muq::Modeling::DependentEdgePredicate::nodePred
private

The nodes that are downstream of the input.

Definition at line 105 of file WorkGraphPiece.h.

Referenced by operator()().


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