Skip to main content

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

MemberSummary
TrackedAtomsSet(IReadOnlyList<T>, IEqualityComparer<T>)Creates an undoable set.

Properties

MemberSummary
RecordsHistory

Constructors in detail

TrackedAtomsSet(IReadOnlyList<T>, IEqualityComparer<T>)

public TrackedAtomsSet(IReadOnlyList<T> initial, IEqualityComparer<T> comparer);

Creates an undoable set.

Parameters

NameTypeDescription
initialIReadOnlyList<T><T>What it starts with; empty when omitted.
comparerIEqualityComparer<T><T>How items are compared; the default comparer when omitted.

Properties in detail

RecordsHistory

public virtual bool RecordsHistory { get; }

Type bool