00001 #include "DetectorDescription/RegressionTest/src/TinyDomTest2.h" 00002 #include "DetectorDescription/Core/interface/adjgraph.h" 00003 #include <iostream> 00004 00005 using std::vector; 00006 using std::cout; 00007 using std::endl; 00008 00009 TinyDomTest2::TinyDomTest2(const TinyDom2 & td2) : dom_(td2) { } 00010 00011 unsigned int TinyDomTest2::allNodes(const Node2 & n2, vector<const AttList2*> & at2) 00012 { 00013 TinyDom2::const_adj_iterator it = dom_.begin(); 00014 cout << "Size of graph: " << TinyDomTest2::dom_.size() << endl; 00015 while (it++ != dom_.end()) 00016 { 00017 if (n2.first.sameName(dom_.nodeData(it).first)) 00018 { 00019 at2.push_back(&(dom_.nodeData(it).second)); 00020 } 00021 } 00022 return at2.size(); 00023 }