Beispiel #1
0
 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();
 }
Beispiel #2
0
 public TVData(TVData ti)
 {
     Index        = ti.Index;
     Node         = ti.Node;
     AreaNextNode = new Stack <TNode>(ti.AreaNextNode.Reverse());
     Memory       = new TVMemory(ti.Memory);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 public TVData(TNode node, TVMemory memory = null)
     : this(0, node, null, memory)
 {
 }