RobWorkProject  24.5.15-
Classes | Public Member Functions | List of all members
DependencyGraph Class Reference

This class is used to create a dependency graph between string nodes and to check if any cycles exist in the dependency graph. More...

#include <DependencyGraph.hpp>

Public Member Functions

 DependencyGraph ()
 Constructor.
 
virtual ~DependencyGraph ()
 Destructor.
 
void addDependency (const std::string &fromA, const std::string &toB)
 Add dependency from node "fromA" to node "toB". More...
 
bool hasCycleDependency ()
 checks if there are any cycles in the dependency graph More...
 

Detailed Description

This class is used to create a dependency graph between string nodes and to check if any cycles exist in the dependency graph.

Member Function Documentation

◆ addDependency()

void addDependency ( const std::string &  fromA,
const std::string &  toB 
)

Add dependency from node "fromA" to node "toB".

Parameters
fromA[in] name of first node
toB[in] name of second node

◆ hasCycleDependency()

bool hasCycleDependency ( )

checks if there are any cycles in the dependency graph

Returns
true if there are any cycles

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