COIN-OR::LEMON - Graph Library

Changeset 307:a3a69f5bba62 in lemon-1.0 for lemon/lgf_writer.h


Ignore:
Timestamp:
10/08/08 12:59:06 (11 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Phase:
public
Message:

Fix compilation with Visual Studio 2005.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lgf_writer.h

    r295 r307  
    352352  class DigraphWriter;
    353353
     354  /// \brief Return a \ref DigraphWriter class
     355  ///
     356  /// This function just returns a \ref DigraphWriter class.
     357  /// \relates DigraphWriter
    354358  template <typename Digraph>
    355359  DigraphWriter<Digraph> digraphWriter(const Digraph& digraph,
    356                                        std::ostream& os = std::cout);
    357 
     360                                       std::ostream& os = std::cout) {
     361    DigraphWriter<Digraph> tmp(digraph, os);
     362    return tmp;
     363  }
     364
     365  /// \brief Return a \ref DigraphWriter class
     366  ///
     367  /// This function just returns a \ref DigraphWriter class.
     368  /// \relates DigraphWriter
    358369  template <typename Digraph>
    359370  DigraphWriter<Digraph> digraphWriter(const Digraph& digraph,
    360                                        const std::string& fn);
    361 
     371                                       const std::string& fn) {
     372    DigraphWriter<Digraph> tmp(digraph, fn);
     373    return tmp;
     374  }
     375
     376  /// \brief Return a \ref DigraphWriter class
     377  ///
     378  /// This function just returns a \ref DigraphWriter class.
     379  /// \relates DigraphWriter
    362380  template <typename Digraph>
    363381  DigraphWriter<Digraph> digraphWriter(const Digraph& digraph,
    364                                        const char *fn);
     382                                       const char* fn) {
     383    DigraphWriter<Digraph> tmp(digraph, fn);
     384    return tmp;
     385  }
    365386
    366387  /// \ingroup lemon_io
     
    914935  };
    915936
    916   /// \brief Return a \ref DigraphWriter class
    917   ///
    918   /// This function just returns a \ref DigraphWriter class.
    919   /// \relates DigraphWriter
    920   template <typename Digraph>
    921   DigraphWriter<Digraph> digraphWriter(const Digraph& digraph,
    922                                        std::ostream& os = std::cout) {
    923     DigraphWriter<Digraph> tmp(digraph, os);
     937  template <typename Graph>
     938  class GraphWriter;
     939
     940  /// \brief Return a \ref GraphWriter class
     941  ///
     942  /// This function just returns a \ref GraphWriter class.
     943  /// \relates GraphWriter
     944  template <typename Graph>
     945  GraphWriter<Graph> graphWriter(const Graph& graph,
     946                                 std::ostream& os = std::cout) {
     947    GraphWriter<Graph> tmp(graph, os);
    924948    return tmp;
    925949  }
    926950
    927   /// \brief Return a \ref DigraphWriter class
    928   ///
    929   /// This function just returns a \ref DigraphWriter class.
    930   /// \relates DigraphWriter
    931   template <typename Digraph>
    932   DigraphWriter<Digraph> digraphWriter(const Digraph& digraph,
    933                                        const std::string& fn) {
    934     DigraphWriter<Digraph> tmp(digraph, fn);
     951  /// \brief Return a \ref GraphWriter class
     952  ///
     953  /// This function just returns a \ref GraphWriter class.
     954  /// \relates GraphWriter
     955  template <typename Graph>
     956  GraphWriter<Graph> graphWriter(const Graph& graph, const std::string& fn) {
     957    GraphWriter<Graph> tmp(graph, fn);
    935958    return tmp;
    936959  }
    937960
    938   /// \brief Return a \ref DigraphWriter class
    939   ///
    940   /// This function just returns a \ref DigraphWriter class.
    941   /// \relates DigraphWriter
    942   template <typename Digraph>
    943   DigraphWriter<Digraph> digraphWriter(const Digraph& digraph,
    944                                        const char* fn) {
    945     DigraphWriter<Digraph> tmp(digraph, fn);
     961  /// \brief Return a \ref GraphWriter class
     962  ///
     963  /// This function just returns a \ref GraphWriter class.
     964  /// \relates GraphWriter
     965  template <typename Graph>
     966  GraphWriter<Graph> graphWriter(const Graph& graph, const char* fn) {
     967    GraphWriter<Graph> tmp(graph, fn);
    946968    return tmp;
    947969  }
    948 
    949   template <typename Graph>
    950   class GraphWriter;
    951 
    952   template <typename Graph>
    953   GraphWriter<Graph> graphWriter(const Graph& graph,
    954                                  std::ostream& os = std::cout);
    955 
    956   template <typename Graph>
    957   GraphWriter<Graph> graphWriter(const Graph& graph, const std::string& fn);
    958 
    959   template <typename Graph>
    960   GraphWriter<Graph> graphWriter(const Graph& graph, const char *fn);
    961970
    962971  /// \ingroup lemon_io
     
    15261535    /// @}
    15271536  };
    1528 
    1529   /// \brief Return a \ref GraphWriter class
    1530   ///
    1531   /// This function just returns a \ref GraphWriter class.
    1532   /// \relates GraphWriter
    1533   template <typename Graph>
    1534   GraphWriter<Graph> graphWriter(const Graph& graph,
    1535                                  std::ostream& os = std::cout) {
    1536     GraphWriter<Graph> tmp(graph, os);
    1537     return tmp;
    1538   }
    1539 
    1540   /// \brief Return a \ref GraphWriter class
    1541   ///
    1542   /// This function just returns a \ref GraphWriter class.
    1543   /// \relates GraphWriter
    1544   template <typename Graph>
    1545   GraphWriter<Graph> graphWriter(const Graph& graph, const std::string& fn) {
    1546     GraphWriter<Graph> tmp(graph, fn);
    1547     return tmp;
    1548   }
    1549 
    1550   /// \brief Return a \ref GraphWriter class
    1551   ///
    1552   /// This function just returns a \ref GraphWriter class.
    1553   /// \relates GraphWriter
    1554   template <typename Graph>
    1555   GraphWriter<Graph> graphWriter(const Graph& graph, const char* fn) {
    1556     GraphWriter<Graph> tmp(graph, fn);
    1557     return tmp;
    1558   }
    15591537
    15601538  class SectionWriter;
Note: See TracChangeset for help on using the changeset viewer.