Exemplo n.º 1
0
        public override void ReverseInPlace(int tlcount)
        {
            _data.ReverseInPlace();
            _index.ReverseInPlace();
            int last = tlcount - 1;

            for (int i = 0; i < _index.Count; ++i)
            {
                _index.Write(i, Math.Abs(_index[i] - last));
            }
        }
Exemplo n.º 2
0
 internal void ReverseInPlace()
 {
     if (Global != null)
     {
         Global.ReverseInPlace();
     }
     if (Event != null)
     {
         Event.ReverseInPlace();
     }
     if (Time != null)
     {
         Time.ReverseInPlace();
     }
     if (Symbol != null)
     {
         Symbol.ReverseInPlace();
     }
 }
Exemplo n.º 3
0
 public RCCube Read()
 {
     if (_spec.Forward)
     {
         int startRow = _spec.Start;
         if (_source.Axis.Global != null && _source.Axis.Count > 0)
         {
             // Max prevents the row from going negative if the section has been cleared.
             startRow -= (int)_initg;
             startRow  = Math.Max(startRow, 0);
         }
         _source.VisitCellsForward(this, startRow, _end);
         _acceptedLines = _inLines;
     }
     else
     {
         _source.VisitCellsBackward(this, _spec.Start, _end);
         _target.ReverseInPlace();
         _inLines.ReverseInPlace();
         _acceptedLines = _inLines;
     }
     _acceptedSymbols = new RCArray <RCSymbolScalar> (_inSymbols.Keys);
     return(_target);
 }