28 namespace OpenSkyNet {
40 #pragma warning(disable:4100) //unreferenced formal parameter
41 KB& operator=(
const KB& rhs_) {
return *
this; }
55 KB(
int maxRecords_,
unsigned int reservedRecords_,
unsigned int initParamsSizeOfReservedRecords_);
57 virtual bool add(
const Record& record_,
bool disallowIfPremNameExists_=
false) = 0;
59 virtual void remove(
const Record& record_,
bool all_,
int numOfParamsToCheck_=-1) = 0;
61 virtual const std::list<Record>&
find(
const Record& record_) = 0;
63 virtual bool isEmpty()
const = 0;
68 virtual void clear() = 0;
73 virtual int size()
const = 0;
std::vector< Record > _reservedRecords
for constant time (speed-critical) access of Records
Definition: AIKB.h:45
virtual int size() const =0
static const std::list< Record > RECORDS_NOT_FOUND
Definition: AIKB.h:35
virtual bool isEmpty() const =0
virtual float calcStateScore(int stateId_) const =0
KB()
Definition: AIKB.cpp:13
virtual const std::list< Record > & find(const Record &record_)=0
const int _maxRecords
Definition: AIKB.h:36
Premise, Action, and Record.
virtual bool add(const Record &record_, bool disallowIfPremNameExists_=false)=0