CMS 3D CMS Logo

TinyDomTest.cc
Go to the documentation of this file.
4 
5 #include <utility>
6 
8  : dom_(d)
9  { }
10 
11 unsigned int TinyDomTest::allNodes(const NodeName & tagName, std::vector<const AttList *> & result)
12 {
13  result.clear();
16  for (; it != ed; ++it) {
17  const TinyDom::edge_list & el = *it;
18  TinyDom::edge_list::const_iterator el_it = el.begin();
19  TinyDom::edge_list::const_iterator el_ed = el.end();
20  for (; el_it != el_ed; ++el_it) {
21  if ( dom_.nodeData(el_it->first).sameName(tagName) ) {
22  result.emplace_back(& dom_.edgeData(el_it->second));
23  }
24  }
25  }
26  return result.size();
27 }
Definition: TagName.h:9
unsigned int allNodes(const NodeName &, std::vector< const AttList * > &)
Definition: TinyDomTest.cc:11
const N & nodeData(const edge_type &) const
Definition: Graph.h:312
const E & edgeData(index_type i) const
Definition: Graph.h:178
adj_iterator end()
Definition: Graph.h:194
std::vector< edge_type > edge_list
Definition: Graph.h:20
TinyDomTest(const TinyDom &)
Definition: TinyDomTest.cc:7
adj_iterator begin()
Definition: Graph.h:192
const TinyDom & dom_
Definition: TinyDomTest.h:17
adj_list::const_iterator const_adj_iterator
Definition: Graph.h:125