コード例 #1
0
ファイル: DataFlowNode.cs プロジェクト: mirec12590/Echo
 /// <summary>
 /// Creates a new data flow graph node.
 /// </summary>
 /// <param name="id">A unique identifier for the node that can be used for indexing the node.</param>
 /// <param name="contents">The contents of the node.</param>
 public DataFlowNode(long id, TContents contents)
 {
     Id                   = id;
     Contents             = contents;
     StackDependencies    = new StackDependencyCollection <TContents>(this);
     VariableDependencies = new VariableDependencyCollection <TContents>(this);
 }
コード例 #2
0
ファイル: DataFlowNode.cs プロジェクト: lanicon/Echo
 /// <summary>
 /// Creates a new data flow graph node.
 /// </summary>
 /// <param name="id">A unique identifier for the node that can be used for indexing the node.</param>
 /// <param name="contents">The contents of the node.</param>
 public DataFlowNode(long id, TContents contents)
 {
     Id                   = id;
     Contents             = contents;
     StackDependencies    = new StackDependencyCollection <TContents>(this);
     VariableDependencies = new VariableDependencyCollection <TContents>(this);
     IncomingEdges        = new List <DataFlowEdge <TContents> >();
 }
コード例 #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="Enumerator"/> class.
 /// </summary>
 /// <param name="collection">The collection to enumerate.</param>
 public Enumerator(VariableDependencyCollection <TContents> collection)
 {
     _enumerator = collection._entries.GetEnumerator();
 }