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

Method Clear

src/fco/fcosetimpl.cpp:98–108  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// Clear -- remove all elements from the set... //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

96// Clear -- remove all elements from the set...
97///////////////////////////////////////////////////////////////////////////////
98void cFCOSetImpl::Clear()
99{
100 // release our grip on all the fcos.
101 std::set<cFCONode>::iterator i;
102 for (i = mFCOSet.begin(); i != mFCOSet.end(); ++i)
103 {
104 i->mpFCO->Release();
105 }
106
107 mFCOSet.clear();
108}
109
110///////////////////////////////////////////////////////////////////////////////
111// IsEmpty -- Anything in the set?

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected