예제 #1
0
int CResizer::Del(int pos_, int cnt_) {
  A(pos_ + cnt_ <= _refSize);

  _refSize -= cnt_;
  memmove(_refData + pos_, _refData + pos_ + cnt_, _refSize - pos_);

  _unattached.RemoveAt(pos_, cnt_);
  _attached.RemoveAt(pos_, cnt_);

  Verify();

  return _refSize;
}
bool c4_SliceViewer::RemoveRows(int pos_, int count_) {
  if (_step != 1)
    return false;

  pos_ = _first + _step *(_step > 0 ? pos_ : pos_ - GetSize() + 1);
  if (_limit >= 0)
    _limit -= count_;

  _parent.RemoveAt(pos_, count_);
  return true;
}
예제 #3
0
파일: custom.cpp 프로젝트: SASfit/SASfit
bool c4_PairViewer::RemoveRows(int pos_, int count_)
{
  _parent.RemoveAt(pos_, count_);
  _argView.RemoveAt(pos_, count_);
  return true;
}