COIN-OR::LEMON - Graph Library

Changeset 2200:2f2ac1b1ca1e in lemon-0.x for lemon/graph_reader.h


Ignore:
Timestamp:
09/06/06 12:01:15 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2925
Message:

An easy avoiding of a bug

The functional interfaces are removed.
Better solution could be a reference counted core of the io interfaces

Now it is huge work so just write that:

GraphReader?<ListGraph?>(std::cin, graph).

Instead of:

graphReader(std::cin, graph).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_reader.h

    r2100 r2200  
    345345
    346346
    347   /// \brief Read a graph from the input.
    348   ///
    349   /// It is a helper function to read a graph from the given input
    350   /// stream. It gives back an GraphReader object and this object
    351   /// can read more maps, labeled nodes, edges and attributes.
    352   ///
    353   /// \warning Do not forget to call the \c run() function.
    354   ///
    355   /// \param is The input stream.
    356   /// \param g The graph.
    357   template<typename Graph>
    358   GraphReader<Graph> graphReader(std::istream& is, Graph &g) {
    359     return GraphReader<Graph>(is, g);
    360   }
    361 
    362   /// \brief Read a graph from the input.
    363   ///
    364   /// It is a helper function to read a graph from the given input
    365   /// file. It gives back an GraphReader object and this object
    366   /// can read more maps, labeled nodes, edges and attributes.
    367   ///
    368   /// \warning Do not forget to call the \c run() function.
    369   ///
    370   /// \param fn The input filename.
    371   /// \param g The graph.
    372   template<typename Graph>
    373   GraphReader<Graph> graphReader(const std::string& fn, Graph &g) {
    374     return GraphReader<Graph>(fn, g);
    375   }
    376 
    377347  /// \brief The undirected graph reader class.
    378348  ///
     
    756726  };
    757727
    758   /// \brief Read an undirected graph from the input.
    759   ///
    760   /// It is a helper function to read an undirected graph from the given input
    761   /// stream. It gives back an UGraphReader object and this object
    762   /// can read more maps, labeled nodes, edges, undirected edges and
    763   /// attributes.
    764   ///
    765   /// \warning Do not forget to call the \c run() function.
    766   ///
    767   /// \param is The input stream.
    768   /// \param g The graph.
    769   template<typename Graph>
    770   UGraphReader<Graph> uGraphReader(std::istream& is, Graph &g) {
    771     return GraphReader<Graph>(is, g);
    772   }
    773 
    774   /// \brief Read an undirected graph from the input.
    775   ///
    776   /// It is a helper function to read an undirected graph from the given input
    777   /// file. It gives back an UGraphReader object and this object
    778   /// can read more maps, labeled nodes, edges, undirected edges and
    779   /// attributes.
    780   ///
    781   /// \warning Do not forget to call the \c run() function.
    782   ///
    783   /// \param fn The input filename.
    784   /// \param g The graph.
    785   template<typename Graph>
    786   UGraphReader<Graph> uGraphReader(const std::string& fn, Graph &g) {
    787     return GraphReader<Graph>(fn, g);
    788   }
    789728
    790729  /// @}
Note: See TracChangeset for help on using the changeset viewer.