CMS 3D CMS Logo

TinyDomTest2.cc

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

Generated on Tue Jun 9 17:32:30 2009 for CMSSW by  doxygen 1.5.4