Lines Matching refs:Element
50 struct Element {
51 Element* parent;
56 vector<Element*> children;
64 Element();
65 ~Element();
68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse);
72 Element::Element()
76 Element::~Element()
85 Element::GetAttr(const string& ns, const string& name) const
98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse)
102 Element* child = children[i];
175 Element* root = NULL;
176 Element* current = NULL;
192 Element* element = new Element();
197 element->name = str;
199 element->ns = scope->namespaces[string(str, 0, colon)];
200 element->name.assign(str, colon+1, string::npos);
202 element->lineno = atoi(match[3].str().c_str());
203 element->depth = match[1].length() / 2;
206 current = element;
207 root = element;
209 while (element->depth <= current->depth && current->parent != NULL) {
212 element->parent = current;
213 current->children.push_back(element);
214 current = element;
241 print_error("%s:%d: Manifest root element doesn't contain a package attribute",
248 vector<Element*> instrumentation;
257 vector<Element*> activities;