Show / Hide Table of Contents

Class NotifyValue<T>

Abstract base implementation of notify value

Inheritance
object
NotifyValue<T>
ObservableAggregate<TSource, TAccumulator, TResult>
Implements
INotifyValue<T>
INotifiable
IDisposable
ISuccessorList
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public abstract class NotifyValue<T> : INotifyValue<T>, INotifiable, IDisposable, ISuccessorList
Type Parameters
Name Description
T

The element type

Properties

| Edit this page View Source

AllSuccessors

Declaration
public IEnumerable<INotifiable> AllSuccessors { get; }
Property Value
Type Description
IEnumerable<INotifiable>
| Edit this page View Source

Count

The number of elements

Declaration
public int Count { get; }
Property Value
Type Description
int
| Edit this page View Source

Dependencies

Nodes that notify this node.

Declaration
public abstract IEnumerable<INotifiable> Dependencies { get; }
Property Value
Type Description
IEnumerable<INotifiable>
| Edit this page View Source

ExecutionMetaData

Used by the execution engine during incremental execution.

Declaration
public ExecutionMetaData ExecutionMetaData { get; }
Property Value
Type Description
ExecutionMetaData
| Edit this page View Source

HasSuccessors

True, if there is any successor, otherwise False

Declaration
public bool HasSuccessors { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsAttached

True, if successors are attached, otherwise False

Declaration
public bool IsAttached { get; }
Property Value
Type Description
bool
| Edit this page View Source

Successors

The nodes that will get notified by this node.

Declaration
public ISuccessorList Successors { get; }
Property Value
Type Description
ISuccessorList
| Edit this page View Source

Value

Gets the current value

Declaration
public abstract T Value { get; }
Property Value
Type Description
T

Methods

| Edit this page View Source

Attach()

Declaration
protected virtual void Attach()
| Edit this page View Source

Detach()

Declaration
protected virtual void Detach()
| Edit this page View Source

Dispose()

Declaration
public void Dispose()
| Edit this page View Source

GetSuccessor(int)

Gets the successor at the given index

Declaration
public INotifiable GetSuccessor(int index)
Parameters
Type Name Description
int index

The index

Returns
Type Description
INotifiable

The DDG node with the given index

| Edit this page View Source

Notify(IList<INotificationResult>)

Gets called when one of the dependencies signals a notification.

Declaration
public abstract 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.

| Edit this page View Source

OnValueChanged(ValueChangedEventArgs)

Gets called when the value changed

Declaration
protected virtual void OnValueChanged(ValueChangedEventArgs e)
Parameters
Type Name Description
ValueChangedEventArgs e

event args

| Edit this page View Source

OnValueChanged(T, T)

Raises the ValueChanged event

Declaration
protected void OnValueChanged(T oldValue, T newValue)
Parameters
Type Name Description
T oldValue

old value

T newValue

new value

| Edit this page View Source

Set(INotifiable)

Add the given DDG node to the list

Declaration
public void Set(INotifiable node)
Parameters
Type Name Description
INotifiable node

The DDG node to add

| Edit this page View Source

SetDummy()

Sets a dummy

Declaration
public void SetDummy()
| Edit this page View Source

Unset(INotifiable, bool)

Unset the given DDG node as successor

Declaration
public void Unset(INotifiable node, bool leaveDummy = false)
Parameters
Type Name Description
INotifiable node

the DDG node

bool leaveDummy

True, to leave the dummy in operation, otherwise False

| Edit this page View Source

UnsetAll()

Clear the list

Declaration
public void UnsetAll()

Events

| Edit this page View Source

ValueChanged

Gets fired when the value changed

Declaration
public event EventHandler<ValueChangedEventArgs> ValueChanged
Event Type
Type Description
EventHandler<ValueChangedEventArgs>

Implements

INotifyValue<T>
INotifiable
IDisposable
ISuccessorList

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