TrackedAtomsSet<T> class
Namespace: Arlecchino.Atoms.Tracked · Assembly: Arlecchino.Core
A set whose changes go on the undo stack, picked up by AtomHistory with nothing to register. Each call is one step, including one that puts several in at once.
public sealed class TrackedAtomsSet<T> : AtomsSet<T>, IReadableAtom<IReadOnlySet<T>>
Inherits from AtomsSet<T>
Implements IReadableAtom<IReadOnlySet<T><T>>
Constructors
| Member | Summary |
|---|---|
TrackedAtomsSet(IReadOnlyList<T>, IEqualityComparer<T>) | Creates an undoable set. |
Properties
| Member | Summary |
|---|---|
RecordsHistory |
Constructors in detail
TrackedAtomsSet(IReadOnlyList<T>, IEqualityComparer<T>)
public TrackedAtomsSet(IReadOnlyList<T> initial, IEqualityComparer<T> comparer);
Creates an undoable set.
Parameters
| Name | Type | Description |
|---|---|---|
initial | IReadOnlyList<T><T> | What it starts with; empty when omitted. |
comparer | IEqualityComparer<T><T> | How items are compared; the default comparer when omitted. |
Properties in detail
RecordsHistory
public virtual bool RecordsHistory { get; }
Type bool