MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / apply_node_properties

Function apply_node_properties

example/cacheHierarchy/fkYAML/node.hpp:8378–8390  ·  view source on GitHub ↗

@brief Set YAML node properties (anchor and/or tag names) to the given node. @param node A node type object to be set YAML node properties.

Source from the content-addressed store, hash-verified

8376 /// @brief Set YAML node properties (anchor and/or tag names) to the given node.
8377 /// @param node A node type object to be set YAML node properties.
8378 void apply_node_properties(basic_node_type& node) {
8379 if (m_needs_anchor_impl) {
8380 node.add_anchor_name(std::string(m_anchor_name.begin(), m_anchor_name.end()));
8381 m_needs_anchor_impl = false;
8382 m_anchor_name = {};
8383 }
8384
8385 if (m_needs_tag_impl) {
8386 node.add_tag_name(std::string(m_tag_name.begin(), m_tag_name.end()));
8387 m_needs_tag_impl = false;
8388 m_tag_name = {};
8389 }
8390 }
8391
8392 /// @brief Update the target YAML version with an input string.
8393 /// @param version_str A YAML version string.

Callers 2

node.hppFile · 0.85
deserialize_nodeFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected