/// <summary> /// Does the given globalvar exist with the given name? /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the globalvar to check for (nested brack operations execute).</param> /// <returns>If a globalvar exists with the given name.</returns> public bool HasGlobal(RAM r, object varName) { return(GlobalMemory.HasGlobal(r, varName)); }
/// <summary> /// Does an Operator exist with the given name? /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="opName">The name of the Operator to look for (nested brack operations execute).</param> /// <returns></returns> public bool HasOpName(RAM r, object opName) { return(OperationSet.HasOpName(r, opName)); }
/// <summary> /// Execute an Operator with the given name and arguments. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="opName">The name of the Operator to execute.</param> /// <param name="arguments">The arguments to pass into the Operator (nested brack operations execute).</param> /// <returns>The resulting return of the Operator execution.</returns> public object ExecuteOperator(RAM r, object opName, object[] arguments) { return(OperationSet.ExecuteOperator(r, opName, arguments)); }
/// <summary> /// Get the names of the arguments of the given Script from this GlobalMemory. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="scriptName">The name of the Script (nested operators are executed).</param> /// <returns>The argument names</returns> public string[] GetScriptArguments(RAM r, object scriptName) { return(GlobalMemory.GetScriptArguments(r, scriptName)); }
/// <summary> /// Execute a Script. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="scriptName">The Script name.</param> /// <param name="args">The arguments.</param> /// <returns>The resulting return.</returns> public object ExecuteScript(RAM r, object scriptName, object[] args) { return(GlobalMemory.ExecuteScript(r, scriptName, args)); }
/// <summary> /// Get the Script with the given name. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="scriptName">The name of the Script to get from (nested brack operations execute).</param> /// <returns>The Script found with the given name.</returns> public Script GetScript(RAM r, object scriptName) { return(GlobalMemory.GetScript(r, scriptName)); }
/// <summary> /// Delete the Script with the given name from memory (with garbage collection). /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="scriptName">The name of the Script to delete (nested brack operations execute).</param> public void DeleteScript(RAM r, object scriptName) { GlobalMemory.DeleteScript(r, scriptName); }
/// <summary> /// Does a Script exist with the given name? /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="scriptName">The name of the Script to check for (nested brack operations execute).</param> /// <returns>If a Script exists with the given name.</returns> public bool HasScript(RAM r, object scriptName) { return(GlobalMemory.HasScript(r, scriptName)); }
/// <summary> /// Set the Script with the given name to have the given value, and declare a Script with the given name if none exist already. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="scriptName">The name of the Script to check for (nested brack operations execute).</param> /// <param name="script">The Script to add.</param> /// <returns>If a Script exists with the given name.</returns> public void SetScript(RAM r, object scriptName, Script script) { GlobalMemory.SetScript(r, scriptName, script); }
/// <summary> /// Get the value of the localvar with the given name. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the localvar to get from (nested brack operations execute).</param> /// <returns>The value found in the localvar with the given name.</returns> public object GetLocal(RAM r, object varName) { return(CurrentLocalMemory.GetLocal(r, varName)); }
/// <summary> /// Delete the localvar with the given name from memory (with garbage collection). /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the localvar to delete (nested brack operations execute).</param> public void DeleteLocal(RAM r, object varName) { CurrentLocalMemory.DeleteLocal(r, varName); }
/// <summary> /// Set the localvar with the given name to have the given value, and declare a localvar with the given name if none exist already. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the localvar to check for (nested brack operations execute).</param> /// <param name="value">The value to store in the localvars.</param> /// <returns>If a localvar exists with the given name.</returns> public void SetLocal(RAM r, object varName, object value) { CurrentLocalMemory.SetLocal(r, varName, value); }
/// <summary> /// Does a localvar exist with the given name? /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the localvars to check for (nested brack operations execute).</param> /// <returns>If a localvars exists with the given name.</returns> public bool HasLocal(RAM r, object varName) { return(CurrentLocalMemory.HasLocal(r, varName)); }
/// <summary> /// Delete the globavar with the given name from memory (with garbage collection). /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the globavar to delete (nested brack operations execute).</param> public void DeleteGlobal(RAM r, object varName) { GlobalMemory.DeleteGlobal(r, varName); }
/// <summary> /// Get the value of the globalvar with the given name. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the globavar to get from (nested brack operations execute).</param> /// <returns>The value found in the globalvar with the given name.</returns> public object GetGlobal(RAM r, object varName) { return(GlobalMemory.GetGlobal(r, varName)); }
/// <summary> /// Set the globalvar with the given name to have the given value, and declare a globalvar with the given name if none exist already. /// </summary> /// <param name="r">The RAM used for this execution.</param> /// <param name="varName">The name of the globalvar to check for (nested brack operations execute).</param> /// <param name="value">The value to store in the globalvar.</param> /// <returns>If a globalvar exists with the given name.</returns> public void SetGlobal(RAM r, object varName, object value) { GlobalMemory.SetGlobal(r, varName, value); }