Space Engineers
|
Public Member Functions | |
void | Add (T item) |
void | AddToComplement (T item) |
void | Remove (T item) |
void | MoveToComplement (T item) |
bool | Contains (T item) |
bool | IsInComplement (T item) |
void | MoveToSet (T item) |
void | ClearSet () |
void | ClearComplement () |
void | AllToComplement () |
void | AllToSet () |
IEnumerable< T > | Set () |
IEnumerable< T > | Complement () |
IEnumerator< T > | GetEnumerator () |
void | Clear () |
Over a given set of elements W this class maintains two subsets A and B such that A ⋂ B = ∅, A ⋃ B = W, with constant time operations for moving elements from one set to the other.
Both subsets are individually iterable, as well as the whole W.
The order of elements in either set is never preserved.
When using this class with value types beware that they will be duplicated internally. Prefer to use class types or some form of lightweight reference with this.
Definition at line 20 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 29 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 37 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 150 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 156 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 183 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 139 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 126 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 168 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 95 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 173 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 101 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 77 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 108 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 47 of file MyIterableComplementSet.cs.
|
inline |
Definition at line 162 of file MyIterableComplementSet.cs.