Skip to main content

TrackedAtomsStack<T> class

Namespace: Arlecchino.Atoms.Tracked · Assembly: Arlecchino.Core

A stack whose changes go on the undo stack of their own: the steps the user piled up, a draft being unwound. AtomHistory picks it up with nothing to register, and each call is one step.

public sealed class TrackedAtomsStack<T> : AtomsStack<T>, IReadableAtom<IReadOnlyList<T>>

Inherits from AtomsStack<T>
Implements IReadableAtom<IReadOnlyList<T><T>>

Constructors

MemberSummary
TrackedAtomsStack(IReadOnlyList<T>)Creates an undoable stack.

Properties

MemberSummary
RecordsHistory

Constructors in detail

TrackedAtomsStack(IReadOnlyList<T>)

public TrackedAtomsStack(IReadOnlyList<T> initial);

Creates an undoable stack.

Parameters

NameTypeDescription
initialIReadOnlyList<T><T>What is already on it, top first; empty when omitted.

Properties in detail

RecordsHistory

public virtual bool RecordsHistory { get; }

Type bool