COPASI API  4.40.278
CDependencyGraphNode Class Reference

#include <CDependencyGraph.h>

Public Member Functions

void addDependent (const size_t &node_num)
 
 CDependencyGraphNode ()
 
const std::set< size_t > & getDependents () const
 
 ~CDependencyGraphNode ()
 

Private Attributes

std::set< size_t > mDependents
 

Friends

std::ostream & operator<< (std::ostream &os, const CDependencyGraphNode &d)
 

Detailed Description

CDependencyGraphNode describes a node in the dependency graph.

Constructor & Destructor Documentation

◆ CDependencyGraphNode()

CDependencyGraphNode::CDependencyGraphNode ( )

Constructor

◆ ~CDependencyGraphNode()

CDependencyGraphNode::~CDependencyGraphNode ( )

The destructor

Member Function Documentation

◆ addDependent()

void CDependencyGraphNode::addDependent ( const size_t &  node_num)

Add a dependent to the given node, represented by its node number. This then represents an edge in the graph.

Parameters
constsize_t $ node_num The dependency, the node to which the edge connects.

References mDependents.

◆ getDependents()

const std::set< size_t > & CDependencyGraphNode::getDependents ( ) const

Return a vector of the dependents.

Returns
const std::set <size_t> & A vector of the dependents.

References mDependents.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const CDependencyGraphNode d 
)
friend

insert operator

Member Data Documentation

◆ mDependents

std::set<size_t> CDependencyGraphNode::mDependents
private

A vector containing the edges for this node. An edge is specified by the remote node to which it connects.

Referenced by addDependent(), and getDependents().


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