00001 /** 00002 *\file vertex.h 00003 * 00004 * 00005 *\brief 00006 * 00007 *\author Xianming Chen\n 00008 * Computer Science Department\n 00009 * University of Utah 00010 * 00011 *\date 15 Aug 2006\n 00012 * Copyright (c) 2006, University of Utah 00013 */ 00014 00015 00016 #ifndef _VERTEX_H 00017 #define _VERTEX_H 00018 00019 00020 #include "node_fwd_dcl.h" 00021 00022 00023 namespace euler 00024 { 00025 00026 00027 class vertex_t 00028 { 00029 public: 00030 id_t id; 00031 point_t p; 00032 edge_t *e; 00033 vertex_t *pre, *nxt; 00034 00035 private: 00036 friend class solid_t; 00037 vertex_t(point_t const& p) : id(cur_id++), p(p), e(0), pre(0), nxt(0) { } 00038 ~vertex_t() { if(id == cur_id-1) cur_id--; } 00039 00040 private: 00041 static id_t cur_id; 00042 }; 00043 00044 00045 } 00046 00047 #endif
1.4.6