Ejemplo n.º 1
0
        /// <summary>
        /// Returns either a deep or shallow copy, depending on the <c>deepCopy</c> field.
        /// </summary>
        new public BigData Clone()
        {
            BigData d = new BigData();

            d.CopyFrom(this);
            return(d);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Copies from another data array, either with a deep or shallow copy, depending on the
 /// <c>deepCopy</c> field.
 /// </summary>
 public void CopyFrom(BigData d)
 {
     base.CopyFrom(d);
     if (!d.deepCopy)
     {
         data = d.data;
         n    = d.n;
     }
 }
Ejemplo n.º 3
0
		/// <summary>
		/// Returns either a deep or shallow copy, depending on the <c>deepCopy</c> field.
		/// </summary>
		new public BigData Clone() {
			BigData d = new BigData();
			d.CopyFrom(this);
			return d;
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Copies from another data array, either with a deep or shallow copy, depending on the 
		/// <c>deepCopy</c> field.
		/// </summary>
		public void CopyFrom(BigData d) {
			base.CopyFrom(d);
			if (!d.deepCopy) {
				data = d.data;
				n = d.n;
			}
		}