MUQ  0.4.3
muq::Modeling::DependentPredicate Class Reference

This class keeps track of which nodes are downstream of a specified input. More...

#include <WorkGraphPiece.h>

Detailed Description

This class keeps track of which nodes are downstream of a specified input.

Definition at line 57 of file WorkGraphPiece.h.

Public Member Functions

 DependentPredicate ()
 Required default constructor. More...
 
 DependentPredicate (boost::graph_traits< Graph >::vertex_descriptor const &baseNode, Graph const &graph)
 
bool operator() (const boost::graph_traits< Graph >::vertex_descriptor &node) const
 

Constructor & Destructor Documentation

◆ DependentPredicate() [1/2]

DependentPredicate::DependentPredicate ( )

Required default constructor.

Definition at line 39 of file WorkGraphPiece.cpp.

◆ DependentPredicate() [2/2]

DependentPredicate::DependentPredicate ( boost::graph_traits< Graph >::vertex_descriptor const &  baseNode,
Graph const &  graph 
)
Parameters
[in]baseNodeThe input node — we what to know which nodes are downstream of this node
[in]graphThe graph holding all the nodes

Definition at line 41 of file WorkGraphPiece.cpp.

References DownstreamNodes().

Member Function Documentation

◆ DownstreamNodes()

void DependentPredicate::DownstreamNodes ( const boost::graph_traits< Graph >::vertex_descriptor &  baseNode,
Graph const &  graph 
)
private
Parameters
[in]baseNodeA node that depends on the input node (possible the input node itself)
[in]graphThe graph holding all the nodes

Definition at line 50 of file WorkGraphPiece.cpp.

References doesDepend, and nlohmann::detail::dtoa_impl::e.

Referenced by DependentPredicate().

◆ operator()()

bool DependentPredicate::operator() ( const boost::graph_traits< Graph >::vertex_descriptor &  node) const
Parameters
[in]nodeAny node in the graph
Returns
true: the node is downstream of the graph, false: the node is not downstream of the graph

Definition at line 45 of file WorkGraphPiece.cpp.

References doesDepend.

Member Data Documentation

◆ doesDepend

std::vector<boost::graph_traits<Graph>::vertex_descriptor> muq::Modeling::DependentPredicate::doesDepend
private

A vector of all the nodes downstream of the input node.

Definition at line 76 of file WorkGraphPiece.h.

Referenced by DownstreamNodes(), and operator()().


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