Ignore:
Timestamp:
12/15/07 10:45:37 (16 years ago)
Author:
TakTsutsumi
Message:

added unflag parameter to flag function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/Scantable.cpp

    r1387 r1400  
    617617}
    618618
    619 void Scantable::flag(const std::vector<bool>& msk)
     619void Scantable::flag(const std::vector<bool>& msk, bool unflag)
    620620{
    621621  std::vector<bool>::const_iterator it;
     
    630630  if ( msk.size() == 0 ) {
    631631    uChar userflag = 1 << 7;
     632    if ( unflag ) {
     633      userflag = 0 << 7;
     634    }
    632635    for ( uInt i=0; i<table_.nrow(); ++i) {
    633636      Vector<uChar> flgs = flagsCol_(i);
     
    649652    uInt j = 0;
    650653    uChar userflag = 1 << 7;
     654    if ( unflag ) {
     655      userflag = 0 << 7;
     656    }
    651657    for (it = msk.begin(); it != msk.end(); ++it) {
    652658      if ( *it ) {
Note: See TracChangeset for help on using the changeset viewer.