MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / CreateUnlinkedNode

Method CreateUnlinkedNode

Dependencies/tinyxml2/include/tinyxml2.h:1926–1936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1924
1925template<class NodeType, int PoolElementSize>
1926inline NodeType* XMLDocument::CreateUnlinkedNode( MemPoolT<PoolElementSize>& pool )
1927{
1928 TIXMLASSERT( sizeof( NodeType ) == PoolElementSize );
1929 TIXMLASSERT( sizeof( NodeType ) == pool.ItemSize() );
1930 NodeType* returnNode = new (pool.Alloc()) NodeType( this );
1931 TIXMLASSERT( returnNode );
1932 returnNode->_memPool = &pool;
1933
1934 _unlinked.Push(returnNode);
1935 return returnNode;
1936}
1937
1938/**
1939 A XMLHandle is a class that wraps a node pointer with null checks; this is

Callers

nothing calls this directly

Calls 3

PushMethod · 0.80
ItemSizeMethod · 0.45
AllocMethod · 0.45

Tested by

no test coverage detected