MCPcopy Create free account
hub / github.com/avast/retdec / CreateUnlinkedNode

Method CreateUnlinkedNode

deps/tinyxml2/include/tinyxml2/tinyxml2.h:1961–1971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1959
1960template<class NodeType, int PoolElementSize>
1961inline NodeType* XMLDocument::CreateUnlinkedNode( MemPoolT<PoolElementSize>& pool )
1962{
1963 TIXMLASSERT( sizeof( NodeType ) == PoolElementSize );
1964 TIXMLASSERT( sizeof( NodeType ) == pool.ItemSize() );
1965 NodeType* returnNode = new (pool.Alloc()) NodeType( this );
1966 TIXMLASSERT( returnNode );
1967 returnNode->_memPool = &pool;
1968
1969 _unlinked.Push(returnNode);
1970 return returnNode;
1971}
1972
1973/**
1974 A XMLHandle is a class that wraps a node pointer with null checks; this is

Callers

nothing calls this directly

Calls 3

ItemSizeMethod · 0.80
AllocMethod · 0.80
PushMethod · 0.45

Tested by

no test coverage detected