Exemplo n.º 1
0
        /// <summary>
        /// Adds the part of the specified list between indexes <i>from</i> (inclusive) and <i>to</i> (inclusive) to the receiver.
        /// </summary>
        /// <param name="values">the list of which elements shall be added.</param>
        /// <param name="from">the index of the first element to be added (inclusive).</param>
        /// <param name="to">the index of the last element to be added (inclusive).</param>
        public void AddAllOfFromTo(DoubleArrayList values, int from, int to)
        {
            //buffer.AddAllOfFromTo(values, from, to);
            buffer.AddAllOfFromTo(values, from, to);

            this.isSorted = false;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a value to the receiver.
 /// </summary>
 /// <param name="elements"></param>
 /// <param name="from"></param>
 /// <param name="to"></param>
 public void AddAllOfFromTo(DoubleArrayList elements, int from, int to)
 {
     if (!isAllocated)
     {
         Allocate();               // lazy buffer allocation can safe memory.
     }
     values.AddAllOfFromTo(elements, from, to);
     this.isSorted = false;
 }