Home | History | Annotate | Download | only in xml

Lines Matching refs:Element

42   std::unique_ptr<xml::Element> root;
43 std::stack<xml::Element*> node_stack;
44 std::unique_ptr<xml::Element> pending_element;
49 // Extracts the namespace and name of an expanded element or attribute name.
89 stack->pending_element = util::make_unique<Element>();
110 std::unique_ptr<Element> el;
114 el = util::make_unique<Element>();
134 Element* this_el = el.get();
222 static void CopyAttributes(Element* el, android::ResXMLParser* parser, StringPool* out_pool) {
262 std::unique_ptr<Element> root;
263 std::stack<Element*> node_stack;
264 std::unique_ptr<Element> pending_element;
291 pending_element = util::make_unique<Element>();
298 std::unique_ptr<Element> el;
302 el = util::make_unique<Element>();
317 Element* this_el = el.get();
358 Element* FindRootElement(Node* node) {
366 return NodeCast<Element>(node);
369 void Element::AppendChild(std::unique_ptr<Node> child) {
374 void Element::InsertChild(size_t index, std::unique_ptr<Node> child) {
379 Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) {
388 const Attribute* Element::FindAttribute(const StringPiece& ns, const StringPiece& name) const {
397 Element* Element::FindChild(const StringPiece& ns, const StringPiece& name) {
401 Element* Element::FindChildWithAttribute(const StringPiece& ns, const StringPiece& name,
405 if (Element* el = NodeCast<Element>(child.get())) {
421 std::vector<Element*> Element::GetChildElements() {
422 std::vector<Element*> elements;
424 if (Element* child = NodeCast<Element>(child_node.get())) {
431 std::unique_ptr<Node> Element::Clone(const ElementCloneFunc& el_cloner) const {
432 auto el = util::make_unique<Element>();
448 std::unique_ptr<Element> Element::CloneElement(const ElementCloneFunc& el_cloner) const {
449 return std::unique_ptr<Element>(static_cast<Element*>(Clone(el_cloner).release()));
452 void Element::Accept(Visitor* visitor) {
471 void PackageAwareVisitor::BeforeVisitElement(Element* el) {
481 void PackageAwareVisitor::AfterVisitElement(Element* el) {