MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / IsEmpty

Method IsEmpty

src/dbwrapper.cpp:229–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229bool CDBWrapper::IsEmpty()
230{
231 std::unique_ptr<CDBIterator> it(NewIterator());
232 it->SeekToFirst();
233 return !(it->Valid());
234}
235
236CDBIterator::~CDBIterator() { delete piter; }
237bool CDBIterator::Valid() const { return piter->Valid(); }

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

SeekToFirstMethod · 0.45
ValidMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64