MCPcopy Create free account
hub / github.com/catboost/catboost / Clear

Method Clear

library/cpp/yconf/conf.cpp:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <cstdlib>
12
13void TYandexConfig::Clear() {
14 delete[] FileData;
15 FileData = nullptr;
16 CurrentMemoryPtr = nullptr;
17 Len = 0;
18 while (!CurSections.empty())
19 CurSections.pop();
20 for (size_t i = 0; i < AllSections.size(); i++) {
21 if (AllSections[i]->Owner)
22 delete AllSections[i]->Cookie;
23 delete AllSections[i];
24 }
25 AllSections.clear();
26 Errors.clear();
27 EndLines.clear();
28 ConfigPath.remove();
29}
30
31void TYandexConfig::PrintErrors(TLog* Log) {
32 size_t sz = Errors.size();

Callers 4

FlushImplMethod · 0.45
WriteMethod · 0.45
AddMethod · 0.45
ResetMethod · 0.45

Calls 6

clearFunction · 0.50
emptyMethod · 0.45
popMethod · 0.45
sizeMethod · 0.45
clearMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected