Changeset 664:4137ef9aacc6 in lemon for lemon/concepts/graph_components.h
- Timestamp:
- 04/24/09 11:54:48 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/concepts/graph_components.h
r631 r664 181 181 class BaseGraphComponent : public BaseDigraphComponent { 182 182 public: 183 184 typedef BaseGraphComponent Graph; 185 183 186 typedef BaseDigraphComponent::Node Node; 184 187 typedef BaseDigraphComponent::Arc Arc; … … 190 193 /// represented by two opposite directed arcs. 191 194 class Edge : public GraphItem<'e'> { 195 typedef GraphItem<'e'> Parent; 196 192 197 public: 193 typedef GraphItem<'e'> Parent;194 195 198 /// \brief Default constructor. 196 199 /// … … 992 995 template <typename GR, typename K, typename V> 993 996 class GraphMap : public ReferenceMap<K, V, V&, const V&> { 994 public: 995 996 typedef ReadWriteMap<K, V> Parent; 997 998 /// The graph type of the map. 999 typedef GR Graph; 997 typedef ReferenceMap<K, V, V&, const V&> Parent; 998 999 public: 1000 1000 1001 /// The key type of the map. 1001 1002 typedef K Key; … … 1013 1014 /// 1014 1015 /// Construct a new map for the graph. 1015 explicit GraphMap(const G raph&) {}1016 explicit GraphMap(const GR&) {} 1016 1017 /// \brief Construct a new map with default value. 1017 1018 /// 1018 1019 /// Construct a new map for the graph and initalize the values. 1019 GraphMap(const G raph&, const Value&) {}1020 GraphMap(const GR&, const Value&) {} 1020 1021 1021 1022 private: … … 1058 1059 1059 1060 const _Map &m; 1060 const G raph&g;1061 const GR &g; 1061 1062 const typename GraphMap::Value &t; 1062 1063 }; … … 1086 1087 template <typename V> 1087 1088 class NodeMap : public GraphMap<MappableDigraphComponent, Node, V> { 1089 typedef GraphMap<MappableDigraphComponent, Node, V> Parent; 1090 1088 1091 public: 1089 typedef GraphMap<MappableDigraphComponent, Node, V> Parent;1090 1091 1092 /// \brief Construct a new map. 1092 1093 /// … … 1124 1125 template <typename V> 1125 1126 class ArcMap : public GraphMap<MappableDigraphComponent, Arc, V> { 1127 typedef GraphMap<MappableDigraphComponent, Arc, V> Parent; 1128 1126 1129 public: 1127 typedef GraphMap<MappableDigraphComponent, Arc, V> Parent;1128 1129 1130 /// \brief Construct a new map. 1130 1131 /// … … 1222 1223 template <typename V> 1223 1224 class EdgeMap : public GraphMap<MappableGraphComponent, Edge, V> { 1225 typedef GraphMap<MappableGraphComponent, Edge, V> Parent; 1226 1224 1227 public: 1225 typedef GraphMap<MappableGraphComponent, Edge, V> Parent;1226 1227 1228 /// \brief Construct a new map. 1228 1229 ///
Note: See TracChangeset
for help on using the changeset viewer.