diff -r c8fa41fcc4a7 -r 699c7eac2c6d lemon/concepts/graph_components.h --- a/lemon/concepts/graph_components.h Thu Dec 01 09:05:47 2011 +0100 +++ b/lemon/concepts/graph_components.h Wed Jan 11 22:21:07 2012 +0100 @@ -1206,12 +1206,12 @@ /// \brief This iterator goes through each red node. /// /// This iterator goes through each red node. - typedef GraphItemIt RedIt; + typedef GraphItemIt RedNodeIt; /// \brief This iterator goes through each blue node. /// /// This iterator goes through each blue node. - typedef GraphItemIt BlueIt; + typedef GraphItemIt BlueNodeIt; /// @} @@ -1228,9 +1228,9 @@ bpgraph.next(bn); checkConcept, - typename _BpGraph::RedIt>(); + typename _BpGraph::RedNodeIt>(); checkConcept, - typename _BpGraph::BlueIt>(); + typename _BpGraph::BlueNodeIt>(); } const _BpGraph& bpgraph; @@ -1715,7 +1715,8 @@ /// This class describes the interface of mappable undirected /// bipartite graphs. It extends \ref MappableGraphComponent with /// the standard graph map class for red and blue nodes (\c - /// RedMap and BlueMap). This concept is part of the BpGraph concept. + /// RedNodeMap and BlueNodeMap). This concept is part of the + /// BpGraph concept. template class MappableBpGraphComponent : public MappableGraphComponent { public: @@ -1730,33 +1731,33 @@ /// Standard graph map for the red nodes. /// It conforms to the ReferenceMap concept. template - class RedMap : public GraphMap { + class RedNodeMap : public GraphMap { typedef GraphMap Parent; public: /// \brief Construct a new map. /// /// Construct a new map for the graph. - explicit RedMap(const MappableBpGraphComponent& graph) + explicit RedNodeMap(const MappableBpGraphComponent& graph) : Parent(graph) {} /// \brief Construct a new map with default value. /// /// Construct a new map for the graph and initalize the values. - RedMap(const MappableBpGraphComponent& graph, const V& value) + RedNodeMap(const MappableBpGraphComponent& graph, const V& value) : Parent(graph, value) {} private: /// \brief Copy constructor. /// /// Copy Constructor. - RedMap(const RedMap& nm) : Parent(nm) {} + RedNodeMap(const RedNodeMap& nm) : Parent(nm) {} /// \brief Assignment operator. /// /// Assignment operator. template - RedMap& operator=(const CMap&) { + RedNodeMap& operator=(const CMap&) { checkConcept, CMap>(); return *this; } @@ -1768,33 +1769,33 @@ /// Standard graph map for the blue nodes. /// It conforms to the ReferenceMap concept. template - class BlueMap : public GraphMap { + class BlueNodeMap : public GraphMap { typedef GraphMap Parent; public: /// \brief Construct a new map. /// /// Construct a new map for the graph. - explicit BlueMap(const MappableBpGraphComponent& graph) + explicit BlueNodeMap(const MappableBpGraphComponent& graph) : Parent(graph) {} /// \brief Construct a new map with default value. /// /// Construct a new map for the graph and initalize the values. - BlueMap(const MappableBpGraphComponent& graph, const V& value) + BlueNodeMap(const MappableBpGraphComponent& graph, const V& value) : Parent(graph, value) {} private: /// \brief Copy constructor. /// /// Copy Constructor. - BlueMap(const BlueMap& nm) : Parent(nm) {} + BlueNodeMap(const BlueNodeMap& nm) : Parent(nm) {} /// \brief Assignment operator. /// /// Assignment operator. template - BlueMap& operator=(const CMap&) { + BlueNodeMap& operator=(const CMap&) { checkConcept, CMap>(); return *this; } @@ -1815,31 +1816,37 @@ checkConcept, _BpGraph>(); { // int map test - typedef typename _BpGraph::template RedMap IntRedMap; + typedef typename _BpGraph::template RedNodeMap + IntRedNodeMap; checkConcept, - IntRedMap >(); + IntRedNodeMap >(); } { // bool map test - typedef typename _BpGraph::template RedMap BoolRedMap; + typedef typename _BpGraph::template RedNodeMap + BoolRedNodeMap; checkConcept, - BoolRedMap >(); + BoolRedNodeMap >(); } { // Dummy map test - typedef typename _BpGraph::template RedMap DummyRedMap; + typedef typename _BpGraph::template RedNodeMap + DummyRedNodeMap; checkConcept, - DummyRedMap >(); + DummyRedNodeMap >(); } { // int map test - typedef typename _BpGraph::template BlueMap IntBlueMap; + typedef typename _BpGraph::template BlueNodeMap + IntBlueNodeMap; checkConcept, - IntBlueMap >(); + IntBlueNodeMap >(); } { // bool map test - typedef typename _BpGraph::template BlueMap BoolBlueMap; + typedef typename _BpGraph::template BlueNodeMap + BoolBlueNodeMap; checkConcept, - BoolBlueMap >(); + BoolBlueNodeMap >(); } { // Dummy map test - typedef typename _BpGraph::template BlueMap DummyBlueMap; + typedef typename _BpGraph::template BlueNodeMap + DummyBlueNodeMap; checkConcept, - DummyBlueMap >(); + DummyBlueNodeMap >(); } }