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

Method Clear

library/cpp/cache/cache.h:649–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647 }
648
649 void Clear() {
650 for (TIndexIterator it = Index.begin(); it != Index.end(); ++it) {
651 TItem* item = const_cast<TItem*>(&*it);
652 List.Erase(item);
653 TDeleter::Destroy(item->Value);
654 }
655 Y_ASSERT(List.GetSize() == 0);
656 Index.clear();
657 }
658
659 void SetMaxSize(size_t newSize) {
660 List.SetMaxSize(newSize);

Callers

nothing calls this directly

Calls 6

DestroyFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
EraseMethod · 0.45
GetSizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected