MUQ  0.4.3
muq::Modeling::UpstreamPredicate Class Reference

This class keeps track of which nodes are upstream (needed to evaluate) a given node. More...

#include <WorkGraphPiece.h>

Detailed Description

This class keeps track of which nodes are upstream (needed to evaluate) a given node.

Definition at line 17 of file WorkGraphPiece.h.

Public Member Functions

 UpstreamPredicate ()
 
 UpstreamPredicate (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

◆ UpstreamPredicate() [1/2]

UpstreamPredicate::UpstreamPredicate ( )

Definition at line 13 of file WorkGraphPiece.cpp.

◆ UpstreamPredicate() [2/2]

UpstreamPredicate::UpstreamPredicate ( boost::graph_traits< Graph >::vertex_descriptor const &  baseNode,
Graph const &  graph 
)

Definition at line 15 of file WorkGraphPiece.cpp.

References UpstreamNodes().

Member Function Documentation

◆ operator()()

bool UpstreamPredicate::operator() ( const boost::graph_traits< Graph >::vertex_descriptor &  node) const

Definition at line 19 of file WorkGraphPiece.cpp.

References doesDepend.

◆ UpstreamNodes()

void UpstreamPredicate::UpstreamNodes ( 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 24 of file WorkGraphPiece.cpp.

References doesDepend, nlohmann::detail::dtoa_impl::e, and UpstreamNodes().

Referenced by UpstreamNodes(), and UpstreamPredicate().

Member Data Documentation

◆ doesDepend

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

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

Definition at line 28 of file WorkGraphPiece.h.

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


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