/// <summary>
 /// Instantiates a new eWAH enumerator
 /// </summary>
 /// <param name="a">the array of words</param>
 /// <param name="sizeinwords">the number of words that are significant in the array of words</param>
 public EwahEnumerator(long[] a, int sizeinwords)
 {
     _Rlw         = new RunningLengthWord(a, 0);
     _SizeInWords = sizeinwords;
     _Pointer     = 0;
 }
 /// <summary>
 /// Reset the values of this running length word so that it has the same values
 /// as the other running length word.
 /// </summary>
 /// <param name="rlw">the other running length word </param>
 public void Reset(RunningLengthWord rlw)
 {
     Reset(rlw.ArrayOfWords[rlw.Position]);
 }
예제 #3
0
 public object Clone()
 {
     var clone = new RunningLengthWord(ArrayOfWords,Position);
     return clone;
 }
 /// <summary>
 /// Instantiates a new buffered running length word
 /// </summary>
 /// <param name="rlw">the rlw</param>
 public BufferedRunningLengthWord(RunningLengthWord rlw)
     : this(rlw.ArrayOfWords[rlw.Position])
 {
 }
예제 #5
0
 /// <summary>
 /// Instantiates a new eWAH enumerator
 /// </summary>
 /// <param name="a">the array of words</param>
 /// <param name="sizeinwords">the number of words that are significant in the array of words</param>
 public EwahEnumerator(long[] a, int sizeinwords)
 {
     _Rlw = new RunningLengthWord(a, 0);
     _SizeInWords = sizeinwords;
     _Pointer = 0;
 }
예제 #6
0
        public object Clone()
        {
            var clone = new RunningLengthWord(ArrayOfWords, Position);

            return(clone);
        }
예제 #7
0
 /// <summary>
 /// Instantiates a new buffered running length word
 /// </summary>
 /// <param name="rlw">the rlw</param>
 public BufferedRunningLengthWord(RunningLengthWord rlw)
     : this(rlw.ArrayOfWords[rlw.Position])
 {
 }
예제 #8
0
 /// <summary>
 /// Reset the values of this running length word so that it has the same values
 /// as the other running length word.
 /// </summary>
 /// <param name="rlw">the other running length word </param>
 public void Reset(RunningLengthWord rlw)
 {
     Reset(rlw.ArrayOfWords[rlw.Position]);
 }