Example #1
0
 public bool IsSupersetOf(LongBitSet <T> other)
 {
     return((bits | other.bits) == bits);
 }
Example #2
0
 public bool Overlaps(LongBitSet <T> other)
 {
     return((bits & other.bits) != 0);
 }
Example #3
0
 public bool Equals(LongBitSet <T> other)
 {
     return(other == this);
 }
Example #4
0
 public bool IsProperSupersetOf(LongBitSet <T> other)
 {
     return(IsSupersetOf(other) && !SetEquals(other));
 }
Example #5
0
 public LongBitSet <T> Union(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits | other.bits));
 }
Example #6
0
 public LongBitSet <T> SymmetricExcept(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits ^ other.bits));
 }
Example #7
0
 public LongBitSet <T> Intersect(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits & other.bits));
 }
Example #8
0
 public LongBitSet <T> Except(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits & ~other.bits));
 }
Example #9
0
 public bool SetEquals(LongBitSet <T> other)
 {
     return(bits == other.bits);
 }