CMS 3D CMS Logo

TinyDomTest2.cc
Go to the documentation of this file.
4 
5 #include <iostream>
6 #include <utility>
7 
8 using std::vector;
9 using std::cout;
10 using std::endl;
11 
12 TinyDomTest2::TinyDomTest2(const TinyDom2 & td2) : dom_(td2) { }
13 
14 unsigned int TinyDomTest2::allNodes(const Node2 & n2, vector<const AttList2*> & at2)
15 {
17  cout << "Size of graph: " << TinyDomTest2::dom_.size() << endl;
18  while (it++ != dom_.end())
19  {
20  if (n2.first.sameName(dom_.nodeData(it).first))
21  {
22  at2.emplace_back(&(dom_.nodeData(it).second));
23  }
24  }
25  return at2.size();
26 }
const N & nodeData(const edge_type &) const
Definition: Graph.h:312
unsigned int allNodes(const Node2 &n2, std::vector< const AttList2 * > &at2)
Definition: TinyDomTest2.cc:14
std::pair< TagName, AttList2 > Node2
Definition: TinyDom2.h:16
adj_iterator end()
Definition: Graph.h:194
auto size() const -> adj_list::size_type
Definition: Graph.h:196
adj_iterator begin()
Definition: Graph.h:192
TinyDomTest2(const TinyDom2 &td2)
Definition: TinyDomTest2.cc:12
adj_list::const_iterator const_adj_iterator
Definition: Graph.h:125
const TinyDom2 & dom_
Definition: TinyDomTest2.h:17