Show / Hide Table of Contents

Class ObservableAggregate<TSource, TAccumulator, TResult>

Denotes an abstract class for an aggregator incrementalization

Inheritance
object
NotifyValue<TResult>
ObservableAggregate<TSource, TAccumulator, TResult>
Implements
INotifyValue<TResult>
INotifiable
IDisposable
ISuccessorList
IValueChangedNotificationResult<TResult>
IValueChangedNotificationResult
INotificationResult
Inherited Members
NotifyValue<TResult>.Value
NotifyValue<TResult>.Successors
NotifyValue<TResult>.ExecutionMetaData
NotifyValue<TResult>.ValueChanged
NotifyValue<TResult>.OnValueChanged(ValueChangedEventArgs)
NotifyValue<TResult>.OnValueChanged(TResult, TResult)
NotifyValue<TResult>.Dispose()
NotifyValue<TResult>.HasSuccessors
NotifyValue<TResult>.IsAttached
NotifyValue<TResult>.Count
NotifyValue<TResult>.AllSuccessors
NotifyValue<TResult>.Set(INotifiable)
NotifyValue<TResult>.SetDummy()
NotifyValue<TResult>.Unset(INotifiable, bool)
NotifyValue<TResult>.UnsetAll()
NotifyValue<TResult>.GetSuccessor(int)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions.Linq
Assembly: NMF.Expressions.Linq.dll
Syntax
public abstract class ObservableAggregate<TSource, TAccumulator, TResult> : NotifyValue<TResult>, INotifyValue<TResult>, INotifiable, IDisposable, ISuccessorList, IValueChangedNotificationResult<TResult>, IValueChangedNotificationResult, INotificationResult
Type Parameters
Name Description
TSource

The source type of elements

TAccumulator

The accumulator used

TResult

The result type

Constructors

| Edit this page View Source

ObservableAggregate(INotifyEnumerable<TSource>, TAccumulator)

Creates a new instance

Declaration
protected ObservableAggregate(INotifyEnumerable<TSource> source, TAccumulator accumulator)
Parameters
Type Name Description
INotifyEnumerable<TSource> source

The incrementalized source collection

TAccumulator accumulator

The initial value for the accumulator

Exceptions
Type Condition
ArgumentNullException

Thrown if source is null

Properties

| Edit this page View Source

Accumulator

Gets the current accumulator

Declaration
protected TAccumulator Accumulator { get; set; }
Property Value
Type Description
TAccumulator
| Edit this page View Source

Dependencies

Nodes that notify this node.

Declaration
public override IEnumerable<INotifiable> Dependencies { get; }
Property Value
Type Description
IEnumerable<INotifiable>
Overrides
NotifyValue<TResult>.Dependencies
| Edit this page View Source

Source

Gets the source collection

Declaration
protected INotifyEnumerable<TSource> Source { get; }
Property Value
Type Description
INotifyEnumerable<TSource>

Methods

| Edit this page View Source

AddItem(TSource)

Adds the given item

Declaration
protected abstract void AddItem(TSource item)
Parameters
Type Name Description
TSource item

the item

| Edit this page View Source

Attach()

Declaration
protected override void Attach()
Overrides
NotifyValue<TResult>.Attach()
| Edit this page View Source

Detach()

Declaration
protected override void Detach()
Overrides
NotifyValue<TResult>.Detach()
| Edit this page View Source

Notify(IList<INotificationResult>)

Gets called when one of the dependencies signals a notification.

Declaration
public override INotificationResult Notify(IList<INotificationResult> sources)
Parameters
Type Name Description
IList<INotificationResult> sources

Contains information about what triggered this notification.

Returns
Type Description
INotificationResult

An object describing the changes that happened in this notification.

Overrides
NotifyValue<TResult>.Notify(IList<INotificationResult>)
| Edit this page View Source

RemoveItem(TSource)

Removes the given item

Declaration
protected abstract void RemoveItem(TSource item)
Parameters
Type Name Description
TSource item

the item

| Edit this page View Source

ResetAccumulator()

Resets the accumulator

Declaration
protected abstract void ResetAccumulator()

Implements

INotifyValue<T>
INotifiable
IDisposable
ISuccessorList
IValueChangedNotificationResult<T>
IValueChangedNotificationResult
INotificationResult

Extension Methods

DebugExtensions.ExportToDgml(INotifiable, string)
DebugExtensions.Visualize(INotifiable)
ReversableExtensions.AsReversable<T>(INotifyValue<T>, Action<T>)
ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX