Changeset 234:348f8fd374ee in lemon-0.x for src/work/marci
- Timestamp:
- 03/22/04 17:37:10 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@331
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/marci/graph_wrapper.h
r231 r234 241 241 // }; 242 242 243 template<typename Graph> 243 template<typename /*Graph*/GraphWrapper 244 /*=typename GraphWrapperSkeleton< TrivGraphWrapper<Graph>*/ > 244 245 class RevGraphWrapper : 245 public GraphWrapper Skeleton< TrivGraphWrapper<Graph> >{246 public GraphWrapper/*GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/ { 246 247 protected: 247 248 //Graph* graph; … … 254 255 255 256 //typedef typename Graph::Edge Edge; 256 typedef typename GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::OutEdgeIt InEdgeIt;257 typedef typename GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::InEdgeIt OutEdgeIt;257 typedef typename GraphWrapper/*typename GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/::OutEdgeIt InEdgeIt; 258 typedef typename GraphWrapper/*typename GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/::InEdgeIt OutEdgeIt; 258 259 //typedef typename Graph::SymEdgeIt SymEdgeIt; 259 260 //typedef typename Graph::EdgeIt EdgeIt; 260 261 261 262 //RevGraphWrapper() : graph(0) { } 262 RevGraphWrapper(Graph & _graph) : GraphWrapperSkeleton< TrivGraphWrapper<Graph> >(TrivGraphWrapper<Graph>(_graph)) { }263 RevGraphWrapper(GraphWrapper _gw/*BaseGraph& _graph*/) : GraphWrapper/*GraphWrapperSkeleton< TrivGraphWrapper<Graph> >*/(_gw/*TrivGraphWrapper<Graph>(_graph)*/) { } 263 264 264 265 //void setGraph(Graph& _graph) { graph = &_graph; } … … 305 306 306 307 template<typename T> class NodeMap : 307 public GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::NodeMap<T>308 public GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::NodeMap<T> 308 309 { 309 310 public: 310 NodeMap(const RevGraphWrapper<Graph >& _G) :311 GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::NodeMap<T>(_G) { }312 NodeMap(const RevGraphWrapper<Graph >& _G, T a) :313 GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::NodeMap<T>(_G, a) { }311 NodeMap(const RevGraphWrapper<GraphWrapper>& _gw) : 312 GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::NodeMap<T>(_gw) { } 313 NodeMap(const RevGraphWrapper<GraphWrapper>& _gw, T a) : 314 GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::NodeMap<T>(_gw, a) { } 314 315 }; 315 316 316 317 template<typename T> class EdgeMap : 317 public GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::EdgeMap<T> {318 public: 319 EdgeMap(const RevGraphWrapper<Graph >& _G) :320 GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::EdgeMap<T>(_G) { }321 EdgeMap(const RevGraphWrapper<Graph >& _G, T a) :322 GraphWrapper Skeleton< TrivGraphWrapper<Graph> >::EdgeMap<T>(_G, a) { }318 public GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::EdgeMap<T> { 319 public: 320 EdgeMap(const RevGraphWrapper<GraphWrapper>& _gw) : 321 GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::EdgeMap<T>(_gw) { } 322 EdgeMap(const RevGraphWrapper<GraphWrapper>& _gw, T a) : 323 GraphWrapper/*Skeleton< TrivGraphWrapper<Graph> >*/::EdgeMap<T>(_gw, a) { } 323 324 }; 324 325 };
Note: See TracChangeset
for help on using the changeset viewer.