Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:22

0001 #include "DetectorDescription/RegressionTest/src/TinyDomTest2.h"
0002 #include "DataFormats/Math/interface/Graph.h"
0003 #include "DetectorDescription/RegressionTest/src/TagName.h"
0004 
0005 #include <iostream>
0006 #include <utility>
0007 
0008 using std::cout;
0009 using std::endl;
0010 using std::vector;
0011 
0012 TinyDomTest2::TinyDomTest2(const TinyDom2& td2) : dom_(td2) {}
0013 
0014 unsigned int TinyDomTest2::allNodes(const Node2& n2, vector<const AttList2*>& at2) {
0015   TinyDom2::const_adj_iterator it = dom_.begin();
0016   cout << "Size of graph: " << TinyDomTest2::dom_.size() << endl;
0017   while (it++ != dom_.end()) {
0018     if (n2.first.sameName(dom_.nodeData(it).first)) {
0019       at2.emplace_back(&(dom_.nodeData(it).second));
0020     }
0021   }
0022   return at2.size();
0023 }