Ejemplo n.º 1
0
        public override void EvaluateArgumentsOfInstruction()
        {
            Variable           iteratorVar      = GetArgument(CommonSCKeys.Variable) as Variable;
            ArrayDataStructure dataStructureVar = GetArgument(CommonSCKeys.Array) as ArrayDataStructure;

            if (dataStructureVar != null && currIdxInArray < dataStructureVar.GetSize())
            {
                iteratorVar.SetValue(dataStructureVar.GetValueAtIndex(currIdxInArray));
            }
        }
Ejemplo n.º 2
0
 public override void EvaluateArgumentList()
 {
     if (GetArgumentAt(0)?.EvaluateArgument().GetType() != typeof(ArrayDataStructure))
     {
         arr = null;
     }
     else
     {
         arr = GetArgumentAt(0)?.EvaluateArgument() as ArrayDataStructure;
         arr.EvaluateArgumentList();
     }
     index = GetArgumentAt(1)?.EvaluateArgument() as IntDataType;
 }
Ejemplo n.º 3
0
 public override void EvaluateArgumentsOfInstruction()
 {
     if (GetArgument(arrIndexArgKey)?.EvaluateArgument().GetType() != typeof(ArrayDataStructure))
     {
         arr = null;
     }
     else
     {
         arr = GetArgument(arrIndexArgKey)?.EvaluateArgument() as ArrayDataStructure;
         //arr.EvaluateArgumentsOfInstruction();
     }
     index = GetArgument(arrIndexArgKey)?.EvaluateArgument() as IntDataType;
 }
Ejemplo n.º 4
0
 protected override void SetMyBlockInternalArg()
 {
     myBlockInternalArg = new ArrayDataStructure(this, arraySize);
 }