/// <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); }
/// <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> >(); }
/// <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(); }