Ignore:
Timestamp:
05/16/12 18:23:20 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Changed structure of ArrayIndexIterator?.
Index list, which was the attribute of IndexIterator? before, is now
belonging to ArrayIndexIterator?.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STIdxIter.h

    r2524 r2533  
    66#include <casa/Arrays/Vector.h>
    77#include <casa/Arrays/Matrix.h>
     8#include <casa/Arrays/IPosition.h>
    89
    910#include "Scantable.h"
     
    1617{
    1718public:
    18   IndexIterator( vector< vector<uInt> > &idlist ) ;
    19   Vector<uInt> current() ;
     19  IndexIterator( IPosition &shape ) ;
     20  Block<uInt> current() { return idx_m ; } ;
    2021  Bool pastEnd() ;
    2122  void next() ;
    2223private:
    23   vector< vector<uInt> > idxlist_m ;
    2424  uInt nfield_m ;
    2525  Block<uInt> prod_m ;
     
    2727  uInt niter_m ;
    2828  uInt maxiter_m ;
    29   Vector<uInt> current_m ;
    3029} ;
    3130
     
    4443  uInt nrow_m ;
    4544  uInt ncol_m ;
    46   //Vector<uInt> storage_m ;
     45  Block<uInt> storage_m ;
    4746  Matrix<uInt> arr_m ;
    48   //IPosition pos_m ;
     47  IPosition pos_m ;
     48  Vector<uInt> current_m ;
     49  vector< vector<uInt> > idxlist_m ;
    4950} ;
    5051
     
    5657  void next() ;
    5758  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 ;
    6162} ;
    6263
     
    7374
    7475  Vector<uInt> prev_m ;
    75   Block<uInt> storage_m ;
    76   IPosition pos_m ;
     76//   Block<uInt> storage_m ;
     77//   IPosition pos_m ;
    7778  Block<uInt> len_m ;
    7879} ;
     
    9293  void next() { iter_m->next() ; } ;
    9394  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 ) ;
    9596protected:
    9697  ArrayIndexIterator *iter_m ;
Note: See TracChangeset for help on using the changeset viewer.