Changeset 1400
- Timestamp:
- 12/15/07 10:45:37 (17 years ago)
- Location:
- branches/alma/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/src/MathUtils.cpp
r1382 r1400 35 35 #include <casa/Arrays/MaskedArray.h> 36 36 #include <casa/Arrays/MaskArrMath.h> 37 #include <casa/Arrays/VectorSTLIterator.h>38 37 #include <casa/BasicSL/String.h> 39 38 #include <scimath/Mathematics/MedianSlider.h> … … 85 84 { 86 85 std::vector<std::string> out; 87 Vector STLIterator<String> it(in);86 Vector<String>::const_iterator it = in.begin(); 88 87 for (uInt i=0; it != in.end(); ++it,++i) { 89 88 out.push_back(*it); -
branches/alma/src/Scantable.cpp
r1387 r1400 617 617 } 618 618 619 void Scantable::flag(const std::vector<bool>& msk )619 void Scantable::flag(const std::vector<bool>& msk, bool unflag) 620 620 { 621 621 std::vector<bool>::const_iterator it; … … 630 630 if ( msk.size() == 0 ) { 631 631 uChar userflag = 1 << 7; 632 if ( unflag ) { 633 userflag = 0 << 7; 634 } 632 635 for ( uInt i=0; i<table_.nrow(); ++i) { 633 636 Vector<uChar> flgs = flagsCol_(i); … … 649 652 uInt j = 0; 650 653 uChar userflag = 1 << 7; 654 if ( unflag ) { 655 userflag = 0 << 7; 656 } 651 657 for (it = msk.begin(); it != msk.end(); ++it) { 652 658 if ( *it ) { -
branches/alma/src/Scantable.h
r1388 r1400 223 223 * to be flagged 224 224 */ 225 void flag( const std::vector<bool>& msk = std::vector<bool>()); 225 //void flag( const std::vector<bool>& msk = std::vector<bool>()); 226 void flag( const std::vector<bool>& msk = std::vector<bool>(), bool unflag=false); 226 227 227 228 /** -
branches/alma/src/ScantableWrapper.h
r1388 r1400 101 101 { return table_->getMask(whichrow); } 102 102 103 /** 103 104 void flag(const std::vector<bool>& msk=std::vector<bool>()) 104 105 { table_->flag(msk); } 106 **/ 107 void flag(const std::vector<bool>& msk=std::vector<bool>(), bool unflag=false) 108 { table_->flag(msk, unflag); } 105 109 106 110 std::string getSourceName(int whichrow=0) const
Note:
See TracChangeset
for help on using the changeset viewer.