MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / prepend_move

Method prepend_move

Source/ThirdParty/pugixml/pugixml.cpp:5214–5225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5212 }
5213
5214 PUGI__FN xml_node xml_node::prepend_move(const xml_node& moved)
5215 {
5216 if (!impl::allow_move(*this, moved)) return xml_node();
5217
5218 // disable document_buffer_order optimization since moving nodes around changes document order without changing buffer pointers
5219 impl::get_document(_root).header |= impl::xml_memory_page_contents_shared_mask;
5220
5221 impl::remove_node(moved._root);
5222 impl::prepend_node(moved._root, _root);
5223
5224 return moved;
5225 }
5226
5227 PUGI__FN xml_node xml_node::insert_move_after(const xml_node& moved, const xml_node& node)
5228 {

Callers

nothing calls this directly

Calls 4

allow_moveFunction · 0.85
xml_nodeClass · 0.85
remove_nodeFunction · 0.85
prepend_nodeFunction · 0.85

Tested by

no test coverage detected