/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/test/test.cxx

Go to the documentation of this file.
00001 #include "MdcRecoUtil/AList.h"
00002 #include "MdcRecoUtil/AIterator.h"
00003 #include <iostream>
00004 
00005 int main()
00006 {
00007   int a=1,b=2,c=3,d=4,e=5;
00008 
00009   HepAList<int> aa;
00010   HepAListIterator<int> it(aa);
00011   
00012   aa.append(&a);
00013   aa.append(&b);
00014   aa.append(&c);
00015   aa.append(&d);
00016   aa.append(&e);
00017   std::cout << aa.length()<<"\n";
00018 for(int i=0;i<aa.length();i++)std::cout<<*aa[i]<<"\n";
00019 int *p;
00020 while(p = it())std::cout<<*p<<"\n";
00021 return 0;
00022 }

Generated on Tue Nov 29 22:58:02 2016 for BOSS_7.0.2 by  doxygen 1.4.7