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

Method Identifier

Core/ClientSML/src/sml_ClientIdentifier.cpp:169–185  ·  view source on GitHub ↗

This version is only needed at the top of the tree (e.g. the input link)

Source from the content-addressed store, hash-verified

167
168// This version is only needed at the top of the tree (e.g. the input link)
169Identifier::Identifier(Agent* pAgent, char const* pAttributeName, char const* pIdentifier, long long timeTag)
170 : WMElement(pAgent, NULL, pIdentifier, pAttributeName, timeTag)
171{
172 //m_pSymbol = GetAgent()->GetWM()->FindIdentifierSymbol(pIdentifier);
173 //if (m_pSymbol)
174 //{
175 // m_pSymbol->UsedBy(this);
176 //}
177 //else
178 //{
179 m_pSymbol = new IdentifierSymbol(this) ;
180 m_pSymbol->SetIdentifierSymbol(pIdentifier) ;
181 RecordSymbolInMap();
182 //}
183 //std::cout << "created (" << this->GetIdentifierName() << " ^" << this->GetAttribute()
184 // << " " << this->GetValueAsString() << ": " << this->GetTimeTag() << ")" << std::endl;
185}
186
187// The normal case (where there is a parent id)
188Identifier::Identifier(Agent* pAgent, Identifier* pParent, char const* pID, char const* pAttributeName, char const* pIdentifier, long long timeTag)

Callers

nothing calls this directly

Calls 2

SetIdentifierSymbolMethod · 0.80
UsedByMethod · 0.80

Tested by

no test coverage detected