Skip to main content

TrackedAtomsMap<TKey, TValue> class

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

A map whose changes go on the undo stack: what the user set per profile, the notes kept against each entry, the overrides of a configuration. AtomHistory picks it up with nothing to register, and each call is one step.

public sealed class TrackedAtomsMap<TKey, TValue> :
AtomsMap<TKey, TValue>,
IReadableAtom<IReadOnlyDictionary<TKey, TValue>>

Inherits from AtomsMap<TKey, TValue>
Implements IReadableAtom<IReadOnlyDictionary<TKey, TValue><TKey, TValue>>

Constructors

MemberSummary
TrackedAtomsMap(IReadOnlyDictionary<TKey, TValue>, IEqualityComparer<TKey>)Creates an undoable map.

Properties

MemberSummary
RecordsHistory

Constructors in detail

TrackedAtomsMap(IReadOnlyDictionary<TKey, TValue>, IEqualityComparer<TKey>)

public TrackedAtomsMap(IReadOnlyDictionary<TKey, TValue> initial, IEqualityComparer<TKey> comparer);

Creates an undoable map.

Parameters

NameTypeDescription
initialIReadOnlyDictionary<TKey, TValue><TKey, TValue>What it starts with; empty when omitted.
comparerIEqualityComparer<T><TKey>How keys are compared; the default comparer when omitted.

Properties in detail

RecordsHistory

public virtual bool RecordsHistory { get; }

Type bool