Class SingletonSuccessorList
Denotes a successor list for a constant
Implements
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public class SingletonSuccessorList : ISuccessorList
Properties
| Edit this page View SourceAllSuccessors
Declaration
public IEnumerable<INotifiable> AllSuccessors { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INotifiable> |
Count
The number of elements
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
HasSuccessors
True, if there is any successor, otherwise False
Declaration
public bool HasSuccessors { get; }
Property Value
Type | Description |
---|---|
bool |
Instance
The static instance
Declaration
public static SingletonSuccessorList Instance { get; }
Property Value
Type | Description |
---|---|
SingletonSuccessorList |
IsAttached
True, if successors are attached, otherwise False
Declaration
public bool IsAttached { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceGetSuccessor(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 |
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 |
SetDummy()
Sets a dummy
Declaration
public void SetDummy()
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 |
UnsetAll()
Clear the list
Declaration
public void UnsetAll()