MCPcopy Create free account
hub / github.com/USCiLab/cereal / remove_all_nodes

Method remove_all_nodes

include/cereal/external/rapidxml/rapidxml.hpp:1201–1206  ·  view source on GitHub ↗

Removes all child nodes (but not attributes).

Source from the content-addressed store, hash-verified

1199
1200 //! Removes all child nodes (but not attributes).
1201 void remove_all_nodes()
1202 {
1203 for (xml_node<Ch> *node = first_node(); node; node = node->m_next_sibling)
1204 node->m_parent = 0;
1205 m_first_node = 0;
1206 }
1207
1208 //! Prepends a new attribute to the node.
1209 //! \param attribute Attribute to prepend.

Callers 3

clone_nodeMethod · 0.80
parseMethod · 0.80
clearMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected