equal
deleted
inserted
replaced
1 /* -*- mode: C++; indent-tabs-mode: nil; -*- |
1 /* -*- mode: C++; indent-tabs-mode: nil; -*- |
2 * |
2 * |
3 * This file is a part of LEMON, a generic C++ optimization library. |
3 * This file is a part of LEMON, a generic C++ optimization library. |
4 * |
4 * |
5 * Copyright (C) 2003-2008 |
5 * Copyright (C) 2003-2011 |
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
7 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
7 * (Egervary Research Group on Combinatorial Optimization, EGRES). |
8 * |
8 * |
9 * Permission to use, modify and distribute this software is granted |
9 * Permission to use, modify and distribute this software is granted |
10 * provided that this copyright notice appears in all copies. For |
10 * provided that this copyright notice appears in all copies. For |
504 } |
504 } |
505 |
505 |
506 private: |
506 private: |
507 |
507 |
508 template <typename DGR> |
508 template <typename DGR> |
509 friend DigraphWriter<DGR> digraphWriter(const DGR& digraph, |
509 friend DigraphWriter<DGR> digraphWriter(const DGR& digraph, |
510 std::ostream& os); |
510 std::ostream& os); |
511 template <typename DGR> |
511 template <typename DGR> |
512 friend DigraphWriter<DGR> digraphWriter(const DGR& digraph, |
512 friend DigraphWriter<DGR> digraphWriter(const DGR& digraph, |
513 const std::string& fn); |
513 const std::string& fn); |
514 template <typename DGR> |
514 template <typename DGR> |
1080 friend GraphWriter<GR> graphWriter(const GR& graph, |
1080 friend GraphWriter<GR> graphWriter(const GR& graph, |
1081 const std::string& fn); |
1081 const std::string& fn); |
1082 template <typename GR> |
1082 template <typename GR> |
1083 friend GraphWriter<GR> graphWriter(const GR& graph, |
1083 friend GraphWriter<GR> graphWriter(const GR& graph, |
1084 const char *fn); |
1084 const char *fn); |
1085 |
1085 |
1086 GraphWriter(GraphWriter& other) |
1086 GraphWriter(GraphWriter& other) |
1087 : _os(other._os), local_os(other.local_os), _graph(other._graph), |
1087 : _os(other._os), local_os(other.local_os), _graph(other._graph), |
1088 _skip_nodes(other._skip_nodes), _skip_edges(other._skip_edges) { |
1088 _skip_nodes(other._skip_nodes), _skip_edges(other._skip_edges) { |
1089 |
1089 |
1090 other._os = 0; |
1090 other._os = 0; |