MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / GetNode

Method GetNode

lib/mdflib/mdflib/src/ixmlnode.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92const IXmlNode *IXmlNode::GetNode(const std::string &tag) const {
93 const auto itr = std::find_if(node_list_.cbegin(), node_list_.cend(),
94 [&](const auto &ptr) {
95 return ptr && ptr->IsTagName(tag); });
96 return itr == node_list_.cend() ? nullptr : itr->get();
97}
98
99const IXmlNode *IXmlNode::GetNode(const std::string &tag,
100 const std::string &key,

Callers

nothing calls this directly

Calls 5

cbeginMethod · 0.80
cendMethod · 0.80
IsTagNameMethod · 0.80
IsAttributeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected