MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / CreateAttribute

Method CreateAttribute

3rdparty/tinyxml2/tinyxml2.cpp:2028–2036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2026}
2027
2028XMLAttribute* XMLElement::CreateAttribute()
2029{
2030 TIXMLASSERT( sizeof( XMLAttribute ) == _document->_attributePool.ItemSize() );
2031 XMLAttribute* attrib = new (_document->_attributePool.Alloc() ) XMLAttribute();
2032 TIXMLASSERT( attrib );
2033 attrib->_memPool = &_document->_attributePool;
2034 attrib->_memPool->SetTracked();
2035 return attrib;
2036}
2037
2038
2039XMLElement* XMLElement::InsertNewChildElement(const char* name)

Callers

nothing calls this directly

Calls 3

ItemSizeMethod · 0.80
AllocMethod · 0.80
SetTrackedMethod · 0.80

Tested by

no test coverage detected