MCPcopy Create free account
hub / github.com/DFHack/dfhack / Add

Method Add

depends/tinyxml/tinyxml.cpp:1514–1527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512
1513
1514void TiXmlAttributeSet::Add( TiXmlAttribute* addMe )
1515{
1516 #ifdef TIXML_USE_STL
1517 assert( !Find( TIXML_STRING( addMe->Name() ) ) ); // Shouldn't be multiply adding to the set.
1518 #else
1519 assert( !Find( addMe->Name() ) ); // Shouldn't be multiply adding to the set.
1520 #endif
1521
1522 addMe->next = &sentinel;
1523 addMe->prev = sentinel.prev;
1524
1525 sentinel.prev->next = addMe;
1526 sentinel.prev = addMe;
1527}
1528
1529void TiXmlAttributeSet::Remove( TiXmlAttribute* removeMe )
1530{

Callers 6

describeEnumMethod · 0.45
describeBitfieldMethod · 0.45
FOR_ENUM_ITEMSFunction · 0.45
flagarray_to_intsFunction · 0.45
ParseMethod · 0.45

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected