21 #ifndef AIKBHASH_TABLE_H
22 #define AIKBHASH_TABLE_H
26 #include "../Utils_LIB/UHash.h"
28 namespace OpenSkyNet {
38 std::list<
Record>()), _size(0) {}
40 unsigned int initParamsSizeOfReservedRecords_) :
KB(maxRecords_,
41 reservedRecords_,initParamsSizeOfReservedRecords_),
43 std::list<
Record>()), _size(0) {}
48 virtual bool add(
const Record& record_,
bool disallowIfPremNameExists_=
false);
49 virtual void remove(
const Record& record_,
bool all_,
int numOfParamsToCheck_=-1);
50 virtual const std::list<Record>&
find(
const Record& record_);
53 virtual int size()
const;
60 #endif //AIKBHASH_TABLE_H
const uint INITIAL_TABLE_SIZE
Definition: UHash.h:34
KBHashTable()
Definition: AIKBHashTable.h:37
virtual const std::list< Record > & find(const Record &record_)
Definition: AIKBHashTable.cpp:52
virtual float calcStateScore(int stateId_) const
Definition: AIKBHashTable.cpp:70
Definition: AIKBHashTable.h:33
virtual void clear()
Definition: AIKBHashTable.cpp:61
virtual ~KBHashTable()
Definition: AIKBHashTable.h:44
virtual bool isEmpty() const
Definition: AIKBHashTable.cpp:57
virtual int size() const
Definition: AIKBHashTable.cpp:66
virtual bool add(const Record &record_, bool disallowIfPremNameExists_=false)
Definition: AIKBHashTable.cpp:9
KBHashTable(int maxRecords_, unsigned int reservedRecords_, unsigned int initParamsSizeOfReservedRecords_)
Definition: AIKBHashTable.h:39