Lines Matching refs:Node
53 class Node {
55 explicit Node(ResourceConfigValue* value = nullptr, Node* parent = nullptr)
60 inline Node* parent() const { return parent_; } in parent()
64 inline const std::vector<std::unique_ptr<Node>>& children() const { in children()
68 bool TryAddChild(std::unique_ptr<Node> new_child);
71 bool AddChild(std::unique_ptr<Node> new_child);
72 bool Dominates(const Node* other) const;
75 Node* parent_;
76 std::vector<std::unique_ptr<Node>> children_;
78 DISALLOW_COPY_AND_ASSIGN(Node);
83 virtual void VisitTree(const std::string& product, Node* root) = 0;
90 void VisitTree(const std::string& product, Node* root) override { in VisitTree()
96 virtual void VisitConfig(Node* node) = 0;
99 void VisitNode(Node* node) { in VisitNode()
109 inline const std::map<std::string, Node>& product_roots() const { in product_roots()
116 std::map<std::string, Node> product_roots_;