Lines Matching refs:Element
36 class Element;
44 Element* parent = nullptr;
51 using ElementCloneFunc = std::function<void(const Element&, Element*)>;
53 // Clones the Node subtree, using the given function to decide how to clone an Element.
84 // An Element XML node.
85 class Element : public Node {
101 Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name);
102 Element* FindChildWithAttribute(const android::StringPiece& ns, const android::StringPiece& name,
106 std::vector<Element*> GetChildElements();
109 // that knows cloning an element returns an element.
110 std::unique_ptr<Element> CloneElement(const ElementCloneFunc& el_cloner) const;
137 std::unique_ptr<xml::Element> root;
149 Element* FindRootElement(Node* node);
156 virtual void Visit(Element* el) {
166 void VisitChildren(Element* el) {
172 virtual void BeforeVisitElement(Element* el) {
174 virtual void AfterVisitElement(Element* el) {
180 friend class Element;
194 void BeforeVisitElement(Element* el) override;
195 void AfterVisitElement(Element* el) override;
213 void Visit(Element* el) override {
221 void BeforeVisitElement(Element* el) override {
223 void AfterVisitElement(Element* el) override {