MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / ClearList

Method ClearList

src/fco/fcodatasourceiterimpl.cpp:282–291  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// ClearList //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

280// ClearList
281///////////////////////////////////////////////////////////////////////////////
282void cFCODataSourceIterImpl::ClearList()
283{
284 for (mCurPos = mPeers.begin(); mCurPos != mPeers.end(); ++mCurPos)
285 {
286 (*mCurPos)->Release();
287 }
288
289 mPeers.clear();
290 mCurPos = mPeers.end();
291}
292
293
294///////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected