00001
00002 #ifndef pop_vertex_h_
00003 #define pop_vertex_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include<vcl_list.h>
00018 class pop_edge;
00019
00020
00021 class pop_vertex
00022 {
00023 public:
00024
00025 pop_vertex();
00026
00027
00028 ~pop_vertex();
00029
00030
00031 void add_edge(pop_edge*);
00032
00033
00034 bool search(pop_vertex *destination, vcl_list<pop_edge*> &path);
00035
00036
00037 void clear();
00038
00039
00040 bool touched_;
00041
00042
00043 bool find_path(pop_vertex *destination, vcl_list<pop_edge*> &path);
00044
00045 private:
00046
00047 vcl_list<pop_edge*> edges_;
00048 };
00049
00050 #endif // pop_vertex_h_