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

Method RecordAddition

Core/ClientSML/src/sml_ClientWorkingMemory.cpp:208–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void WorkingMemory::RecordAddition(WMElement* pWME)
209{
210 // For additions, the delta list does not take ownership of the wme.
211 if (IsTrackingOutputLinkChanges())
212 {
213 m_OutputDeltaList.AddWME(pWME) ;
214 }
215
216 // Mark this wme as having just been added (in case the client would prefer
217 // to walk the tree).
218 pWME->SetJustAdded(true) ;
219
220 // record timetag -> WME mapping for deletion lookup
221 m_TimeTagWMEMap[ pWME->GetTimeTag() ] = pWME;
222}
223
224void WorkingMemory::RecordDeletion(WMElement* pWME)
225{

Callers

nothing calls this directly

Calls 2

AddWMEMethod · 0.80

Tested by

no test coverage detected