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

Method AddChild

Core/ClientSML/src/sml_ClientIdentifier.cpp:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void IdentifierSymbol::AddChild(WMElement* pWME)
77{
78 // Record that we're changing the list of children in case the
79 // client would like to know that this identifier was changed in some fashion.
80 SetAreChildrenModified(true) ;
81
82 Identifier::ChildrenIter iter = FindChildByTimeTag(pWME->GetTimeTag());
83 if (iter == m_Children.end())
84 {
85 //std::cout << "AddChild: " << pWME->GetIdentifierName() << ", " << pWME->GetAttribute() << ", " << pWME->GetValueAsString() << " (" << pWME->GetTimeTag() << ")" << " (" << pWME << ")" << std::endl;
86 m_Children.push_back(pWME) ;
87 }
88 else
89 {
90 //std::cout << "Did not AddChild: " << pWME->GetIdentifierName() << ", " << pWME->GetAttribute() << ", " << pWME->GetValueAsString() << " (" << pWME->GetTimeTag() << ")" << " (" << pWME << ")" << std::endl;
91 }
92}
93
94WMElement* IdentifierSymbol::GetChildByTimeTag(long long timeTag)
95{

Callers 15

GetLastResultSMLMethod · 0.45
CreateSMLCommandMethod · 0.45
AddErrorToSMLResponseMethod · 0.45
AddChildFunction · 0.45
TransferChildrenMethod · 0.45
SynchronizeInputLinkMethod · 0.45
CreateStringWMEMethod · 0.45
CreateIntWMEMethod · 0.45

Calls 3

endMethod · 0.80
SetAreChildrenModifiedFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected