CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TinyDomTest.cc
Go to the documentation of this file.
2 
3 
5  : dom_(d)
6  { }
7 
8 unsigned int TinyDomTest::allNodes(const NodeName & tagName, std::vector<const AttList *> & result)
9 {
10  result.clear();
13  for (; it != ed; ++it) {
14  const TinyDom::edge_list & el = *it;
15  TinyDom::edge_list::const_iterator el_it = el.begin();
16  TinyDom::edge_list::const_iterator el_ed = el.end();
17  for (; el_it != el_ed; ++el_it) {
18  if ( dom_.nodeData(el_it->first).sameName(tagName) ) {
19  result.push_back(& dom_.edgeData(el_it->second));
20  }
21  }
22  }
23  return result.size();
24 }
Definition: TagName.h:9
const N & nodeData(const edge_type &) const
Definition: adjgraph.h:317
const E & edgeData(index_type i) const
Definition: adjgraph.h:183
std::vector< edge_type > edge_list
Definition: adjgraph.h:19
unsigned int allNodes(const NodeName &, std::vector< const AttList * > &)
Definition: TinyDomTest.cc:8
tuple result
Definition: query.py:137
Definition: adjgraph.h:12
TinyDomTest(const TinyDom &)
Definition: TinyDomTest.cc:4
const TinyDom & dom_
Definition: TinyDomTest.h:17
adj_list::const_iterator const_adj_iterator
Definition: adjgraph.h:125
adj_iterator begin()
Definition: adjgraph.h:197
adj_iterator end()
Definition: adjgraph.h:199