Skip to main content

LocalAtom<T> class

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

An atom the undo stack never sees: a filter, a cursor, a load in progress, a selection — state the user did not author and would not expect to travel back through. It notifies and repaints exactly as a TrackedAtom does.

public sealed class LocalAtom<T> : Atom<T>, IReadableAtom<T>

Inherits from Atom<T>
Implements IReadableAtom<T>

Constructors

MemberSummary
LocalAtom(T, IEqualityComparer<T>)Creates an atom holding a starting value, outside the undo history.

Properties

MemberSummary
RecordsHistory

Constructors in detail

LocalAtom(T, IEqualityComparer<T>)

public LocalAtom(T initial, IEqualityComparer<T> comparer);

Creates an atom holding a starting value, outside the undo history.

Parameters

NameTypeDescription
initialTThe value to start with.
comparerIEqualityComparer<T><T>How to decide that writing to it changed nothing; the default comparer for T is used when omitted.

Properties in detail

RecordsHistory

public virtual bool RecordsHistory { get; }

Type bool