Changeset 2533 for branches/hpc33/src/STIdxIter.h
- Timestamp:
- 05/16/12 18:23:20 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hpc33/src/STIdxIter.h
r2524 r2533 6 6 #include <casa/Arrays/Vector.h> 7 7 #include <casa/Arrays/Matrix.h> 8 #include <casa/Arrays/IPosition.h> 8 9 9 10 #include "Scantable.h" … … 16 17 { 17 18 public: 18 IndexIterator( vector< vector<uInt> > &idlist) ;19 Vector<uInt> current();19 IndexIterator( IPosition &shape ) ; 20 Block<uInt> current() { return idx_m ; } ; 20 21 Bool pastEnd() ; 21 22 void next() ; 22 23 private: 23 vector< vector<uInt> > idxlist_m ;24 24 uInt nfield_m ; 25 25 Block<uInt> prod_m ; … … 27 27 uInt niter_m ; 28 28 uInt maxiter_m ; 29 Vector<uInt> current_m ;30 29 } ; 31 30 … … 44 43 uInt nrow_m ; 45 44 uInt ncol_m ; 46 //Vector<uInt> storage_m ;45 Block<uInt> storage_m ; 47 46 Matrix<uInt> arr_m ; 48 //IPosition pos_m ; 47 IPosition pos_m ; 48 Vector<uInt> current_m ; 49 vector< vector<uInt> > idxlist_m ; 49 50 } ; 50 51 … … 56 57 void next() ; 57 58 Vector<uInt> getRows( StorageInitPolicy policy=COPY ) ; 58 private:59 Block<uInt> storage_m ;60 IPosition pos_m ;59 // private: 60 // Block<uInt> storage_m ; 61 // IPosition pos_m ; 61 62 } ; 62 63 … … 73 74 74 75 Vector<uInt> prev_m ; 75 Block<uInt> storage_m ;76 IPosition pos_m ;76 // Block<uInt> storage_m ; 77 // IPosition pos_m ; 77 78 Block<uInt> len_m ; 78 79 } ; … … 92 93 void next() { iter_m->next() ; } ; 93 94 vector<uInt> getRowsSTL() { return tovector( iter_m->getRows() ) ; } ; 94 Vector<uInt> getRows( StorageInitPolicy policy=COPY ) { return iter_m->getRows( policy ) ; };95 Vector<uInt> getRows( StorageInitPolicy policy=COPY ) ; 95 96 protected: 96 97 ArrayIndexIterator *iter_m ;
Note: See TracChangeset
for help on using the changeset viewer.