BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcRecoUtil/test/test.cxx
Go to the documentation of this file.
1#include "MdcRecoUtil/AIterator.h"
2#include "MdcRecoUtil/AList.h"
3#include <iostream>
4
5int main() {
6 int a = 1, b = 2, c = 3, d = 4, e = 5;
7
9 HepAListIterator<int> it( aa );
10
11 aa.append( &a );
12 aa.append( &b );
13 aa.append( &c );
14 aa.append( &d );
15 aa.append( &e );
16 std::cout << aa.length() << "\n";
17 for ( int i = 0; i < aa.length(); i++ ) std::cout << *aa[i] << "\n";
18 int* p;
19 while ( p = it() ) std::cout << *p << "\n";
20 return 0;
21}