예제 #1
0
파일: LongBitSet.cs 프로젝트: zredb/OpenRA
 public bool IsSupersetOf(LongBitSet <T> other)
 {
     return((bits | other.bits) == bits);
 }
예제 #2
0
파일: LongBitSet.cs 프로젝트: zredb/OpenRA
 public bool Overlaps(LongBitSet <T> other)
 {
     return((bits & other.bits) != 0);
 }
예제 #3
0
파일: LongBitSet.cs 프로젝트: zredb/OpenRA
 public bool Equals(LongBitSet <T> other)
 {
     return(other == this);
 }
예제 #4
0
파일: LongBitSet.cs 프로젝트: zredb/OpenRA
 public bool IsProperSupersetOf(LongBitSet <T> other)
 {
     return(IsSupersetOf(other) && !SetEquals(other));
 }
예제 #5
0
 public LongBitSet <T> Union(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits | other.bits));
 }
예제 #6
0
 public LongBitSet <T> SymmetricExcept(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits ^ other.bits));
 }
예제 #7
0
 public LongBitSet <T> Intersect(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits & other.bits));
 }
예제 #8
0
 public LongBitSet <T> Except(LongBitSet <T> other)
 {
     return(new LongBitSet <T>(bits & ~other.bits));
 }
예제 #9
0
 public bool SetEquals(LongBitSet <T> other)
 {
     return(bits == other.bits);
 }