Storage<T> class
A storage wrapper for a combinatorics instance.
This allows us to remove selections from the structure and keep track of the remaining selectsions in a memory efficient way (one bit per selection).
(Only meant for small to moderate sized combinatorics structures.)
Constructors
-
Storage(Combinatorics<
T> combinatorics)
Properties
-
combinatorics
→ Combinatorics<
T> -
The combinatorics object being wrapped.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
List< T> selection) → void - Add a selection to the storage structure.
-
addAll(
List< List< selections) → voidT> > - Add some selections to the storage structure.
-
addWhere(
bool predicate(List< T> )) → void - Add selections matching a predicate to the storage selection.
-
contains(
List< T> selection) → bool - Whether a selection is still in the storage structure.
-
firstRemaining(
) → List< T> - The first remaining selection in the storage structure.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
List< T> selection) → void - Remove a selection from the storage structure.
-
removeAll(
List< List< selections) → voidT> > - Remove some selections from the storage structure.
-
removeWhere(
bool predicate(List< T> )) → void - Remove selections matching a predicate from the storage structure.
-
toggle(
List< T> selection) → void - Toggle whether a selection is still in the storage structure.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited