Table of Contents

Class SingleSuccessorList

Namespace
NMF.Expressions
Assembly
NMF.Expressions.dll

Denotes a class optimized for a single element

public class SingleSuccessorList : ISuccessorList, IEnumerable<INotifiable>, IEnumerable
Inheritance
SingleSuccessorList
Implements
Inherited Members
Extension Methods

Properties

AllSuccessors

public IEnumerable<INotifiable> AllSuccessors { get; }

Property Value

IEnumerable<INotifiable>

Count

The number of elements

public int Count { get; }

Property Value

int

HasSuccessors

True, if there is any successor, otherwise False

public bool HasSuccessors { get; }

Property Value

bool

IsAttached

True, if successors are attached, otherwise False

public bool IsAttached { get; }

Property Value

bool

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<INotifiable> GetEnumerator()

Returns

IEnumerator<INotifiable>

An enumerator that can be used to iterate through the collection.

GetSuccessor(int)

Gets the successor at the given index

public INotifiable GetSuccessor(int index)

Parameters

index int

The index

Returns

INotifiable

The DDG node with the given index

Set(INotifiable)

Add the given DDG node to the list

public void Set(INotifiable node)

Parameters

node INotifiable

The DDG node to add

SetDummy()

Sets a dummy

public void SetDummy()

Unset(INotifiable, bool)

Unset the given DDG node as successor

public void Unset(INotifiable node, bool leaveDummy = false)

Parameters

node INotifiable

the DDG node

leaveDummy bool

True, to leave the dummy in operation, otherwise False

UnsetAll()

Clear the list

public void UnsetAll()

Events

Attached

public event EventHandler Attached

Event Type

EventHandler

Detached

public event EventHandler Detached

Event Type

EventHandler