MCPcopy Create free account
hub / github.com/SoarGroup/Soar / Clear

Method Clear

Core/ClientSML/src/sml_DeltaList.cpp:63–75  ·  view source on GitHub ↗

We make deleting the contents optional as we may just be moving the tags out of here and into a message for sending, in which case we won't delete them.

Source from the content-addressed store, hash-verified

61// and into a message for sending, in which case
62// we won't delete them.
63void DeltaList::Clear(bool deleteContents)
64{
65 if (deleteContents)
66 {
67 for (size_t i = 0 ; i < m_DeltaList.size() ; i++)
68 {
69 TagWme* pDelta = m_DeltaList[i] ;
70 delete pDelta ;
71 }
72 }
73
74 m_DeltaList.clear() ;
75}

Callers 3

CommitMethod · 0.45
InvalidateOutputLinkMethod · 0.45

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected