#include <depgraph.hpp>
Public Types | |
typedef std::map < artifact, std::set < artifact > > | graph_type |
The graph type. | |
Public Member Functions | |
void | store_dependency (artifact const &target, artifact const &dependency) |
graph_type const & | graph () const |
Return the graph. | |
template<class OutIter> | |
void | sort (OutIter sorted) const |
Definition at line 14 of file depgraph.hpp.
Record a dependency in the graph.
target | The target of the dependency relationship | |
dependency | The target depends on this dependency |
Definition at line 6 of file depgraph.cpp.
Referenced by parse_graph().
void dependency_graph::sort | ( | OutIter | sorted | ) | const [inline] |
Sort the dependency graph using topological sort. Generate a list of dependencies starting with targets that have no dependencies.
[out] | sorted | Store the sorted dependencies here |
Definition at line 33 of file depgraph.hpp.
References topological_sort().
Referenced by main().