MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / CreateUnlinkedNode

Method CreateUnlinkedNode

native/thirdpart/tinyxml2/tinyxml2.h:1985–1995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1983
1984template<class NodeType, int PoolElementSize>
1985inline NodeType* XMLDocument::CreateUnlinkedNode( MemPoolT<PoolElementSize>& pool )
1986{
1987 TIXMLASSERT( sizeof( NodeType ) == PoolElementSize );
1988 TIXMLASSERT( sizeof( NodeType ) == pool.ItemSize() );
1989 NodeType* returnNode = new (pool.Alloc()) NodeType( this );
1990 TIXMLASSERT( returnNode );
1991 returnNode->_memPool = &pool;
1992
1993 _unlinked.Push(returnNode);
1994 return returnNode;
1995}
1996
1997/**
1998 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.80

Tested by

no test coverage detected