diff --git a/lemon/lgf_reader.h b/lemon/lgf_reader.h --- a/lemon/lgf_reader.h +++ b/lemon/lgf_reader.h @@ -448,16 +448,16 @@ /// It is impossible to read this in /// a single pass, because the arcs are not constructed when the node /// maps are read. - template + template class DigraphReader { public: - typedef _Digraph Digraph; + typedef GR Digraph; + + private: + TEMPLATE_DIGRAPH_TYPEDEFS(Digraph); - private: - - std::istream* _is; bool local_is; std::string _filename; @@ -1246,15 +1246,16 @@ /// prefixed with \c '+' and \c '-', then these can be read into an /// arc map. Similarly, an attribute can be read into an arc, if /// it's value is an edge label prefixed with \c '+' or \c '-'. - template + template class GraphReader { public: - typedef _Graph Graph; + typedef GR Graph; + + private: + TEMPLATE_GRAPH_TYPEDEFS(Graph); - private: - std::istream* _is; bool local_is; std::string _filename; @@ -1356,12 +1357,12 @@ } private: - template - friend GraphReader graphReader(GR& graph, std::istream& is); - template - friend GraphReader graphReader(GR& graph, const std::string& fn); - template - friend GraphReader graphReader(GR& graph, const char *fn); + template + friend GraphReader graphReader(Graph& graph, std::istream& is); + template + friend GraphReader graphReader(Graph& graph, const std::string& fn); + template + friend GraphReader graphReader(Graph& graph, const char *fn); GraphReader(GraphReader& other) : _is(other._is), local_is(other.local_is), _graph(other._graph),