Main Page   Modules   Compound List   File List   File Members  

Edge.h

Go to the documentation of this file.
00001 /* $\Id$ 
00002    Edge.h in library gridlock
00003    Written by Samit Ahlawat <ahlawat2@uiuc.edu>
00004    Distributed under GPL (GNU Public License)
00005 */
00006 
00013 #ifndef _EDGE_H_
00014 #define _EDGE_H_
00015 
00016 #include "common_headers.h"
00017 #include "constants.h"
00018 
00019 
00020 /*******************************************************
00021  * Representation of Edge class                        *
00022  *******************************************************/
00023 
00032 struct Edge
00033 {
00034         /********************************************
00035          *  |  Your edge based variables here   |   *
00036          * \|/                                 \|/  *
00037          *  '                                   '   *
00038          ********************************************/
00039 
00040 
00041         /********************************************
00042          *  .                                   .   *
00043          * /|\ Your edge based variables above /|\  *
00044          *  |                                   |   *
00045          ********************************************/
00046         
00047         struct Vertex* vertex_in_edge[2];
00048 
00049 #ifndef EDGE_LENGTH_NOT_NEEDED
00050         
00051         float length;
00052         
00053 #endif  
00054                 
00055         int global_edge_number;
00056 
00057         short is_edge_on_bdry;
00058 
00059 };
00060 
00061 void edge_init (struct Edge* ed);
00062 
00063 #ifndef EDGE_LENGTH_NOT_NEEDED
00064 
00065 void compute_length (struct Edge* ed);
00066 
00067 #endif
00068 
00069 void print_ed_debug_info (struct Edge* ed);
00070 
00071 void output_edge (FILE* fp, struct Edge* ed);
00072 
00073 #endif

Generated on Sun Nov 27 23:41:47 2005 by doxygen1.2.18