Changeset 148
- Timestamp:
- 12/26/04 14:58:22 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMemTable.cc
r138 r148 75 75 76 76 SDMemTable::SDMemTable(const SDMemTable& other, Bool clear) { 77 this->IFSel_= other.IFSel_;78 this->beamSel_= other.beamSel_;79 this->polSel_= other.polSel_;80 this->chanMask_ = other.chanMask_;81 t his->table_ = other.table_.copyToMemoryTable(String("dummy"));77 IFSel_= other.IFSel_; 78 beamSel_= other.beamSel_; 79 polSel_= other.polSel_; 80 chanMask_ = other.chanMask_; 81 table_ = other.table_.copyToMemoryTable(String("dummy")); 82 82 // clear all rows() 83 83 if (clear) { 84 t his->table_.removeRow(this->table_.rowNumbers());84 table_.removeRow(this->table_.rowNumbers()); 85 85 } else { 86 this->IFSel_ = other.IFSel_;87 this->beamSel_ = other.beamSel_;88 this->polSel_ = other.polSel_;86 IFSel_ = other.IFSel_; 87 beamSel_ = other.beamSel_; 88 polSel_ = other.polSel_; 89 89 } 90 90 } … … 111 111 112 112 SDMemTable &SDMemTable::operator=(const SDMemTable& other) { 113 // reset "cursor" 114 IFSel_ = 0; 115 beamSel_ = 0; 116 polSel_ = 0; 117 table_ = other.table().copyToMemoryTable("dummy"); 113 if (this != &other) { 114 IFSel_= other.IFSel_; 115 beamSel_= other.beamSel_; 116 polSel_= other.polSel_; 117 chanMask_.resize(0); 118 chanMask_ = other.chanMask_; 119 table_ = other.table_.copyToMemoryTable(String("dummy")); 120 } 118 121 return *this; 119 122 }
Note:
See TracChangeset
for help on using the changeset viewer.