Changeset 2911 for trunk/src/STIdxIter.h
- Timestamp:
- 04/01/14 13:05:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STIdxIter.h
r2580 r2911 8 8 #include <casa/Arrays/IPosition.h> 9 9 #include <casa/BasicSL/String.h> 10 11 #include <casa/Utilities/Sort.h> 10 12 11 13 #include "Scantable.h" … … 155 157 } ; 156 158 159 class STIdxIter2 160 { 161 public: 162 STIdxIter2() ; 163 STIdxIter2( const string &name, 164 const vector<string> &cols ) ; 165 STIdxIter2( const CountedPtr<Scantable> &s, 166 const vector<string> &cols ) ; 167 virtual ~STIdxIter2() ; 168 Record currentValue(); 169 Bool pastEnd() ; 170 void next() ; 171 Vector<uInt> getRows(StorageInitPolicy policy=COPY) ; 172 vector<uInt> getRowsSTL() { return tovector( getRows() ) ; } ; 173 virtual void init(); 174 private: 175 vector<uInt> tovector(Vector<uInt> v); 176 void addSortKey(const string &name); 177 template<class T, DataType U> void addColumnToKey(const string &name); 178 void deallocate(); 179 vector<string> cols_; 180 Table table_; 181 uInt counter_; 182 uInt num_iter_; 183 uInt num_row_; 184 Sort sorter_; 185 Vector<uInt> index_; 186 Vector<uInt> unique_; 187 vector<void*> pointer_; 188 } ; 189 157 190 } // namespace 158 191 #endif /* _ASAP_INDEX_ITERATOR_H_ */
Note: See TracChangeset
for help on using the changeset viewer.