/usr/include/terralib/stat/hash.h is in libterralib-dev 4.0.0-5ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | /*
DO NOT USE!
This is a DEPRECATED file not used anymore in any part of the statics library
used by TerraLib. Its being kept for compatibility reasons and it will be removed
from further TerraLib distributions.
*/
//---------------------------------------------------------------------------
#ifndef HashH
#define HashH
#define HASH_SIZE 1000
#include "erro.h"
class THash{
/*** Area Privada ***/
private:
typedef struct Hash_Type{
unsigned long Key;
unsigned int Indice;
struct Hash_Type *Next;
}Hash_t,*Hash_ptr;
Hash_ptr MyHash;
unsigned int Hash_Function(unsigned long);
/*** Area Publica ***/
public:
THash();//Construtora
void Insere(char *,unsigned int);
unsigned int Pesquisa(const char *);
};
//---------------------------------------------------------------------------
#endif
|