MCPcopy Create free account
hub / github.com/dhbloo/rapfi / deleteDatabaseOne

Function deleteDatabaseOne

Rapfi/command/gomocup.cpp:1070–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070void deleteDatabaseOne(bool getPosition)
1071{
1072 using namespace ::Database;
1073 if (getPosition)
1074 getDatabasePosition();
1075
1076 if (Search::Threads.dbStorage() && !Config::DatabaseReadonlyMode) {
1077 DBClient dbClient(*Search::Threads.dbStorage(), RECORD_MASK_ALL);
1078 dbClient.del(*board, options.rule);
1079 }
1080}
1081
1082void searchDefend()
1083{

Callers 1

runProtocolFunction · 0.85

Calls 3

getDatabasePositionFunction · 0.85
dbStorageMethod · 0.80
delMethod · 0.45

Tested by

no test coverage detected