]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_digraph.tpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / strings / print_digraph.tpp
1 ////////////////////////////////////////////////////////////////////////////////
2
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
7
8 ////////////////////////////////////////////////////////////////////////////////
9 #include "print_sequence.hpp"
10
11 namespace stlplus
12 {
13
14 ////////////////////////////////////////////////////////////////////////////////
15
16 template<typename NT, typename AT, typename NS, typename AS>
17 void print_digraph(std::ostream& device, const digraph<NT,AT>& values,
18 NS node_print_fn,
19 AS arc_print_fn,
20 const std::string& separator)
21 {
22 device << "nodes:";
23 device << separator;
24 print_sequence(device, values.begin(), values.end(), node_print_fn, separator);
25 device << "arcs:";
26 device << separator;
27 print_sequence(device, values.arc_begin(), values.arc_end(), arc_print_fn, separator);
28 }
29
30 } // end namespace stlplus
31
This page took 0.030014 seconds and 4 git commands to generate.