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