Changeset 606:c5fd2d996909 in lemon for lemon/lgf_reader.h
 Timestamp:
 03/29/09 23:08:20 (10 years ago)
 Branch:
 default
 Phase:
 public
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/lgf_reader.h
r564 r606 449 449 /// a single pass, because the arcs are not constructed when the node 450 450 /// maps are read. 451 template <typename _Digraph>451 template <typename GR> 452 452 class DigraphReader { 453 453 public: 454 454 455 typedef _Digraph Digraph; 455 typedef GR Digraph; 456 457 private: 458 456 459 TEMPLATE_DIGRAPH_TYPEDEFS(Digraph); 457 458 private:459 460 460 461 461 std::istream* _is; … … 1247 1247 /// arc map. Similarly, an attribute can be read into an arc, if 1248 1248 /// it's value is an edge label prefixed with \c '+' or \c ''. 1249 template <typename _Graph>1249 template <typename GR> 1250 1250 class GraphReader { 1251 1251 public: 1252 1252 1253 typedef _Graph Graph; 1253 typedef GR Graph; 1254 1255 private: 1256 1254 1257 TEMPLATE_GRAPH_TYPEDEFS(Graph); 1255 1256 private:1257 1258 1258 1259 std::istream* _is; … … 1357 1358 1358 1359 private: 1359 template <typename G R>1360 friend GraphReader<G R> graphReader(GR& graph, std::istream& is);1361 template <typename G R>1362 friend GraphReader<G R> graphReader(GR& graph, const std::string& fn);1363 template <typename G R>1364 friend GraphReader<G R> graphReader(GR& graph, const char *fn);1360 template <typename Graph> 1361 friend GraphReader<Graph> graphReader(Graph& graph, std::istream& is); 1362 template <typename Graph> 1363 friend GraphReader<Graph> graphReader(Graph& graph, const std::string& fn); 1364 template <typename Graph> 1365 friend GraphReader<Graph> graphReader(Graph& graph, const char *fn); 1365 1366 1366 1367 GraphReader(GraphReader& other)
Note: See TracChangeset
for help on using the changeset viewer.