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

Method Add

src/twparser/parserobjects.cpp:306–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304
305
306void cParseNamedAttrList::Add(cParseNamedAttr* const pa)
307{
308 ASSERT(pa != 0);
309
310 pa->Validate();
311
312 // if not already in list, just put it in
313 constListIter iter = Find(pa);
314 if (iter == mList.end())
315 {
316 mList.push_back(pa);
317 }
318 else // set value of pa already in list
319 {
320 (*iter)->SetValue(pa->GetValue());
321 }
322}
323
324
325cParseNamedAttrList::constListIter cParseNamedAttrList::Find(const cParseNamedAttr* const pa)

Callers 2

yyparse.cppFile · 0.45
CreateFCOSpecsMethod · 0.45

Calls 3

ValidateMethod · 0.80
endMethod · 0.80
SetValueMethod · 0.80

Tested by

no test coverage detected