00001 /********************************************************************** 00002 * FILE: LINK.h 00003 * AUTHOR: E. Otis O 00004 * DATE: 29 April 1993 00005 * MODIFIED: 1 May 1993 00006 * PURPOSE: 00007 * A link structure for mapnode.h 00008 ***********************************************************************/ 00009 00010 #ifndef _LINK_H 00011 #define _LINK_H 00012 00013 #include <iostream.h> 00014 #include <stddef.h> 00015 #include <assert.h> 00016 #include "typedefs.h" 00017 00018 00019 class Route { 00020 00021 private: 00022 int *joins; 00023 00024 public: 00025 int destination, numJoins; 00026 vect type; 00027 00028 Route(void) { destination= 0; type= Off; numJoins= 0; joins= NULL; } 00029 ~Route() { delete joins; } 00030 00031 int find_join(int); 00032 void get_join(int); 00033 }; 00034 00035 00036 00037 00038 00039 00040 #endif 00041 00042