Changeset 1430 for trunk/src/Scantable.cpp
- Timestamp:
- 07/11/08 11:55:28 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Scantable.cpp
r1411 r1430 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 ) {
Note: See TracChangeset
for help on using the changeset viewer.