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
Count
The number of elements
public int Count { get; }
Property Value
HasSuccessors
True, if there is any successor, otherwise False
public bool HasSuccessors { get; }
Property Value
IsAttached
True, if successors are attached, otherwise False
public bool IsAttached { get; }
Property Value
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
intThe 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
INotifiableThe 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
INotifiablethe DDG node
leaveDummy
boolTrue, to leave the dummy in operation, otherwise False
UnsetAll()
Clear the list
public void UnsetAll()
Events
Attached
public event EventHandler Attached
Event Type
Detached
public event EventHandler Detached