Alex Bikfalvi
SimStream Documentation
TopoBriteRoute.h
00001 #pragma once 00002 00003 #include "TopoRoute.h" 00004 #include "TopoBriteNode.h" 00005 #include "TopoBriteEdge.h" 00006 00007 class CTopoBriteRoute : public CTopoRoute 00008 { 00009 private: 00010 __uint32 numNodes; 00011 __uint32 numEdges; 00012 00013 CTopoBriteEdge** edges; 00014 CTopoBriteNode** nodes; 00015 00016 int* routeEdge; 00017 int* routeNode; 00018 CTopoBriteEdge** graph; 00019 00020 __uint32* distance; 00021 00022 public: 00023 CTopoBriteRoute( 00024 __uint32 numNodes, 00025 __uint32 numEdges, 00026 CTopoBriteNode** nodes, 00027 CTopoBriteEdge** edges 00028 ); 00029 ~CTopoBriteRoute(); 00030 00031 __uint32 NextEdge(__uint32 node, __uint32 dst); 00032 __uint32 NextNode(__uint32 node, __uint32 dst); 00033 __uint32 Distance(__uint32 src, __uint32 dst); 00034 00035 protected: 00036 void ShortestPath(__uint32 node); 00037 void ShortestPathInit(__uint32 node, double* dist, bool* res); 00038 };
Last updated: February 8, 2011