TerraLib 4.1
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/stat/lista.h
Go to the documentation of this file.
00001 #ifndef ListaH
00002 #define ListaH
00003 
00004 #include "TeStatDefines.h"
00005 #include "erro.h"
00006 
00007 class STAT_DLL TListaVizinho{
00008 
00009 private:
00010     typedef struct Vizinho {
00011       int Indice;
00012       double Peso;
00013       struct Vizinho *Proximo;
00014     }Vizinho_t,*Vizinho_ptr;
00015 
00016     typedef struct ListaVizinho{
00017       Vizinho_ptr Head;
00018       int Size;
00019       Vizinho_ptr Next; /* Utilizado para pesquisa */
00020       Vizinho_ptr NextB; /* Utilizado para pesquisa e apelacao */
00021       }Lista_t, *Lista_ptr;
00022 
00023     Lista_ptr Lista;
00024     int  GetSize();
00025 public:
00026   TListaVizinho();
00027   void  Insere(int,double);
00028   void  Retira(int);
00029   void  Adjacente(int *,double *);
00030   void  AdjacenteB(int *,double *);
00031   int Size;
00032 };
00033 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines