Table of Contents

Struct DeltaView

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

A zero-allocation, filtered read-only view over a View's internal delta dictionary. Provides O(1) Count and Contains(long) lookups.

Lifetime: This struct shares the same lifetime as its parent ViewDelta. It becomes invalid after ClearDelta() is called on the owning View.

public readonly struct DeltaView : IReadOnlyCollection<long>, IEnumerable<long>, IEnumerable
Implements
Inherited Members

Properties

Count

Number of entity PKs in this delta category.

public int Count { get; }

Property Value

int

Methods

Contains(long)

O(1) check whether the given entity PK is in this delta category.

public bool Contains(long pk)

Parameters

pk long

Returns

bool

GetEnumerator()

public IEnumerator<long> GetEnumerator()

Returns

IEnumerator<long>