Esempio n. 1
0
 /// <summary>
 /// Sets the bit at the specified coordinate to the state specified by <i>value</i>.
 /// </summary>
 /// <param name="column">the index of the column-coordinate.</param>
 /// <param name="row">the index of the row-coordinate.</param>
 /// <param name="value">the value of the bit to be copied into the specified coordinate.</param>
 /// <exception cref="IndexOutOfRangeException">if <i>column&lt;0 || column&gt;=columns() || row&lt;0 || row&gt;=rows()</i></exception>
 public void Put(int column, int row, Boolean value)
 {
     if (column < 0 || column >= _columns || row < 0 || row >= _rows)
     {
         throw new IndexOutOfRangeException("column:" + column + ", row:" + row);
     }
     QuickBitVector.Put(_bits, row * _columns + column, value);
 }
Esempio n. 2
0
 public Boolean this[int column, int row]
 {
     get
     {
         return(QuickBitVector.Get(_bits, row * _columns + column));
     }
     set
     {
         QuickBitVector.Put(_bits, row * _columns + column, value);
     }
 }