Skip to main content

LocalAtomsMap<TKey, TValue> class

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

A map the undo stack never sees: what a scan found per folder, the sizes worked out so far, the state of each connection. It notifies and asks for a frame exactly as a TrackedAtomsMap does.

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

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

Constructors

MemberSummary
LocalAtomsMap(IReadOnlyDictionary<TKey, TValue>, IEqualityComparer<TKey>)Creates a map outside the undo history.

Properties

MemberSummary
RecordsHistory

Constructors in detail

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

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

Creates a map outside the undo history.

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