FUNCTION list_to_array

(* SCHEMA step_merged_ap_schema; *)
-- DIFF IN AP214
-- DIFF IN AP203e2
-- DIFF IN AP238 STEP-NC
-- DIFF IN AP224
-- DIFF IN AP232
FUNCTION list_to_array
      (lis : LIST [0:?] OF GENERIC : t;
       low : INTEGER;
       u : INTEGER ) : ARRAY [low:u] OF GENERIC : t;
   LOCAL
      n : INTEGER;
      res : ARRAY [low:u] OF GENERIC : t;
   END_LOCAL;
      n := SIZEOF(lis);
      IF n <> u - low + 1 THEN
         RETURN (?);
      ELSE
         res := [ lis[1]:0 ];
         REPEAT i := 2 TO n BY 1;
            res[(low + i - 1)] := lis[i];
         END_REPEAT;
         RETURN (res);
      END_IF;
END_FUNCTION;

Referenced By

Defintion list_to_array is references by the following definitions:
DefinitionType
 b_spline_curve ENTITY
 make_array_of_array FUNCTION
 rational_b_spline_curve ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2017-01-19T11:17:24-05:00