joque
task orchestration library
format_dag.hpp
Go to the documentation of this file.
1 #pragma once
23 
24 #include "dag.hpp"
25 
26 #include <functional>
27 #include <ostream>
28 #include <string_view>
29 
30 namespace joque
31 {
32 
33 // Formats the given dag `d` into human readable format. Output is done by
34 // calling `f` for each line of the output.
35 void format_dag( const dag& d, const std::function< void( std::string_view ) >& f );
36 
37 // Prints the formatted dag into ostream.
38 void print_dag( std::ostream& os, const dag& d );
39 
40 } // namespace joque
Definition: dag.hpp:172
MIT License.
Definition: dag.hpp:27
void print_dag(std::ostream &os, const dag &d)
void format_dag(const dag &d, const std::function< void(std::string_view) > &f)
Fun && f
Definition: task.hpp:93