public TVData(int index, TNode node, Stack <TNode> areaNextNode = null, TVMemory memory = null) { Index = index; Node = node; AreaNextNode = areaNextNode ?? new Stack <TNode>(); Memory = memory ?? new TVMemory(); }
public TVData(TVData ti) { Index = ti.Index; Node = ti.Node; AreaNextNode = new Stack <TNode>(ti.AreaNextNode.Reverse()); Memory = new TVMemory(ti.Memory); }
public TVMemory(TVMemory memory) { Variables = new Dictionary <string, ICloneable>(); foreach (KeyValuePair <string, ICloneable> kv in memory.Variables) { Variables.Add(kv.Key, kv.Value.Clone() as ICloneable); } VariablesType = new Dictionary <string, Type>(memory.VariablesType); }
public TVData(TNode node, TVMemory memory = null) : this(0, node, null, memory) { }