示例#1
0
 public virtual void Intersection(FastFixedSetFactory <E> .FastFixedSet <E> set)
 {
     int[] extdata = set.GetData();
     int[] intdata = data;
     for (int i = intdata.Length - 1; i >= 0; i--)
     {
         intdata[i] &= extdata[i];
     }
 }
示例#2
0
 public virtual void Complement(FastFixedSetFactory <E> .FastFixedSet <E> set)
 {
     int[] extdata = set.GetData();
     int[] intdata = data;
     for (int i = intdata.Length - 1; i >= 0; i--)
     {
         intdata[i] &= ~extdata[i];
     }
 }
示例#3
0
 public virtual bool Contains(FastFixedSetFactory <E> .FastFixedSet <E> set)
 {
     int[] extdata = set.GetData();
     int[] intdata = data;
     for (int i = intdata.Length - 1; i >= 0; i--)
     {
         if ((extdata[i] & ~intdata[i]) != 0)
         {
             return(false);
         }
     }
     return(true);
 }