WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
CityHash.h
1
#ifndef _WINC_CITYHASH
2
#define _WINC_CITYHASH
3
4
#include <WXP/CityHashData.h>
5
#include <WXP/Domain.h>
6
#include <WXP/Hash.h>
7
8
namespace
WXP
{
9
class
CityHash
{
10
Hash
hash;
11
int
prior;
12
13
public
:
14
CityHash
(
const
char
*file,
Domain
&domain,
int
prior );
15
CityHash
(
const
char
*file );
16
CityHash
();
17
~CityHash
();
18
int
init
();
19
int
setup
(
const
char
*file,
Domain
&domain,
int
prior );
20
int
setup
(
const
char
*file );
21
int
get
(
const
char
*
id
,
CityHashData
&data );
22
int
get
(
int
ind,
const
char
*
id
,
CityHashData
&data );
23
int
first
();
24
const
char
*
nextKey
();
26
inline
int
getNum
(){
return
hash.getNum(); };
27
int
print
();
28
int
printData
();
29
};
30
}
31
#endif
WXP::CityHash
This class sets up a hash table for city database information.
Definition
CityHash.h:9
WXP::CityHash::~CityHash
~CityHash()
Definition
CityHash.cc:55
WXP::CityHash::init
int init()
Definition
CityHash.cc:61
WXP::CityHash::first
int first()
Definition
CityHash.cc:188
WXP::CityHash::print
int print()
Definition
CityHash.cc:204
WXP::CityHash::getNum
int getNum()
Definition
CityHash.h:26
WXP::CityHash::nextKey
const char * nextKey()
Definition
CityHash.cc:197
WXP::CityHash::CityHash
CityHash()
Definition
CityHash.cc:48
WXP::CityHash::printData
int printData()
Definition
CityHash.cc:212
WXP::CityHash::get
int get(const char *id, CityHashData &data)
Definition
CityHash.cc:152
WXP::CityHash::setup
int setup(const char *file, Domain &domain, int prior)
Definition
CityHash.cc:73
WXP::Domain
This class stores and manipulates domain data.
Definition
Domain.h:19
WXP::Hash
This class creates and manages generic hash tables.
Definition
Hash.h:5
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
WXP::CityHashData
This struct stores basic city database values.
Definition
CityHashData.h:7
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7