MCPcopy Create free account
hub / github.com/apache/trafficserver / Setup

Method Setup

lib/yamlcpp/src/nodeevents.cpp:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void NodeEvents::Setup(const detail::node& node) {
29 int& refCount = m_refCount[node.ref()];
30 refCount++;
31 if (refCount > 1)
32 return;
33
34 if (node.type() == NodeType::Sequence) {
35 for (auto element : node)
36 Setup(*element);
37 } else if (node.type() == NodeType::Map) {
38 for (auto element : node) {
39 Setup(*element.first);
40 Setup(*element.second);
41 }
42 }
43}
44
45void NodeEvents::Emit(EventHandler& handler) {
46 AliasManager am;

Callers

nothing calls this directly

Calls 2

refMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected