Package org.openquark.cal.internal.runtime.lecc

Examples of org.openquark.cal.internal.runtime.lecc.RTValue


   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.getNeighbours
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue vertex = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue graph = ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue $dictvarCal_Core_Prelude_Eq_32 =
      $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
View Full Code Here


      }

      case 1: {
        // Cal.Core.Prelude.Just
        // Decompose data type to access members.
        RTValue vertexNum = $case1.get_value();

        return
          Indices_To_Vertices.$instance.f2S(
            graph,
            new RTFullApp.General._2._S(
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.fst
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue pair = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S(RTValue.lastRef(pair.evaluate($ec), pair = null), $ec);
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.filterListStrict$possiblyCons$3
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue next = $rootNode.getArgValue();
    RTValue $currentRootNode;
    RTValue accum = ($currentRootNode = $rootNode.prevArg()).getArgValue();
    RTValue pred = $currentRootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f3S(
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.decimalToInt
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue $x0$L = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f1S(
        ((BigDecimal)(java.lang.Object)
          $x0$L.evaluate($ec).getOpaqueValue()),
        $ec);
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Utilities.DirectedGraph.isEmpty
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue graph = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S(RTValue.lastRef(graph, graph = null), $ec);
  }
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.map
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue list = $rootNode.getArgValue();
    RTValue mapFunction = $rootNode.prevArg().getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return
      f2S(
View Full Code Here

      }

      case 1: {
        // Cal.Core.Prelude.Cons
        // Decompose data type to access members.
        RTValue listHead = $case1.get_head();
        RTValue listTail = $case1.get_tail();

        return
          new TYPE_List.CAL_Cons(
            mapFunction.apply(listHead),
            new RTFullApp.General._2._L(
View Full Code Here

        edges.getValue(),
        $ec);
  }

  private static final RTValue outEdgesMerged$11$def_Lazy(RTValue retainLoops, RTValue edges, RTValue vertex2Num, RTValue vertex1Num, RTExecutionContext $ec) throws CALExecutorException {
    RTValue letVar_filteredEdges =
      Merge_Vertices_Internal.filteredEdges$10$def_Lazy(
        retainLoops,
        edges.getValue(),
        vertex2Num,
        vertex1Num,
View Full Code Here

   * f
   * This method implements the function logic of the CAL function Cal.Core.Prelude.calValueToObject
   */
  public final RTValue f(final RTResultFunction $rootNode, final RTExecutionContext $ec) throws CALExecutorException {
    // Arguments
    RTValue $x0 = $rootNode.getArgValue();

    // Release the fields in the root node to open them to garbage collection
    $rootNode.clearMembers();
    return f1S(RTValue.lastRef($x0, $x0 = null), $ec);
  }
View Full Code Here

TOP

Related Classes of org.openquark.cal.internal.runtime.lecc.RTValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.