MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/openvdb / clear

Method clear

openvdb/openvdb/util/PagedArray.h:359–365  ·  view source on GitHub ↗

@brief Removes all elements from the array and delete all pages. @warning Not thread-safe!

Source from the content-addressed store, hash-verified

357 ///
358 /// @warning Not thread-safe!
359 void clear()
360 {
361 for (size_t i=0, n=mPageTable.size(); i<n; ++i) delete mPageTable[i];
362 PageTableT().swap(mPageTable);
363 mSize = 0;
364 mCapacity = 0;
365 }
366
367 /// @brief Return a non-const iterator pointing to the first element
368 Iterator begin() { return Iterator(*this, 0); }

Callers 2

~PagedArrayMethod · 0.95
splitFunction · 0.45

Calls 2

sizeMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected