Aprepro  5.0x
apr_builtin.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 1999-2020 National Technology & Engineering Solutions
3  * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4  * NTESS, the U.S. Government retains certain rights in this software.
5  *
6  * See packages/seacas/LICENSE for details
7  */
8 #ifndef APR_BUILTIN_H
9 #define APR_BUILTIN_H
10 
11 #include <cstdio>
12 
13 namespace SEAMS {
14  struct array;
15 
16  double do_acos(double x);
17  double do_acosd(double x);
18  double do_acosh(double x);
19  double do_angle(double x1, double y1, double x2, double y2);
20  double do_angled(double x1, double y1, double x2, double y2);
21  double do_asin(double x);
22  double do_asind(double x);
23  double do_asinh(double x);
24  double do_atan(double x);
25  double do_atan2(double x, double y);
26  double do_atan2d(double x, double y);
27  double do_atand(double x);
28  double do_atanh(double x);
29  double do_ceil(double x);
30  double do_cbrt(double x);
31  double do_cos(double x);
32  double do_cosd(double x);
33  double do_cosh(double x);
34  double do_d2r(double x);
35  double do_dim(double x, double y);
36  double do_dist(double x1, double y1, double x2, double y2);
37  double do_erf(double x);
38  double do_erfc(double x);
39  double do_exp(double x);
40  double do_expm1(double x);
41  double do_fabs(double x);
42  double do_floor(double x);
43  double do_nint(double x);
44  double do_fmod(double x, double y);
45  double do_hypot(double x, double y);
46  double do_int(double x);
47  double do_log(double x);
48  double do_log10(double x);
49  double do_max(double x, double y);
50  double do_min(double x, double y);
51  double do_pow(double x, double y);
52  double do_r2d(double x);
53  double do_rand(double xl, double xh);
54  double do_srand(double seed);
55  double do_rand_normal(double mean, double stddev);
56  double do_rand_lognormal(double mean, double stddev);
57  double do_rand_weibull(double alpha, double beta);
58  double do_sign(double x, double y);
59  double do_sin(double x);
60  double do_sind(double x);
61  double do_sinh(double x);
62  double do_sqrt(double x);
63  double do_tan(double x);
64  double do_tand(double x);
65  double do_tanh(double x);
66  double do_polarX(double rad, double ang);
67  double do_polarY(double rad, double ang);
68  double do_strtod(char *string);
69  double do_option(char *option, double value);
70  double do_word_count(char *string, char *delm);
71  double do_find_word(char *word, char *string, char *delm);
72  double do_lgamma(double val);
73  double do_tgamma(double val);
74  double do_juldayhms(double mon, double day, double year, double h, double mi, double se);
75  double do_julday(double mon, double day, double year);
76  double do_log1p(double x);
77  double do_rows(const array *arr);
78  double do_cols(const array *arr);
79  double do_time();
80 
81  const char *do_dumpsym();
82  const char *do_dumpfunc();
83  const char *do_dumpvar();
84  const char *do_get_date();
85  const char *do_get_iso_date();
86  const char *do_get_time();
87  const char *do_get_temp_filename();
88 
89  const char *do_dumpsym1(char *pre);
90  const char *do_dumpfunc1(char *pre);
91  const char *do_dumpvar1(char *pre);
92  const char *do_tolower(char *string);
93  const char *do_toupper(char *string);
94  const char *do_Units(char *type);
95  const char *do_file_to_string(char *filename);
96  const char *do_error(char *error_string);
97  const char *do_include_path(char *new_path);
98  const char *do_getenv(char *env);
99  const char *do_output(char *filename);
100  const char *do_append(char *filename);
101  const char *do_execute(char *string);
102  const char *do_rescan(char *string);
103 
104  const char *do_if(double x);
105  const char *do_notif(double x);
106  const char *do_elseif(double x);
107  const char *do_switch(double x);
108  const char *do_case(double x);
109  const char *do_intout(double intval);
110  const char *do_tostring(double x);
111 
112  const char *do_get_word(double n, char *string, char *delm);
113  const char *do_extract(char *string, char *begin, char *end);
114  const char *do_print_array(const array *my_array_data);
115 
116  const char *do_execute(char *string);
117  const char *do_getenv(char *env);
118  const char *do_tolower(char *string);
119  const char *do_toupper(char *string);
120  const char *do_tostring(double x);
121  const char *do_output(char *filename);
122  const char *do_append(char *filename);
123  const char *do_error(char *error_string);
124  const char *do_get_date();
125  const char *do_get_iso_date();
126  const char *do_get_time();
127  const char *do_get_word(double n, char *string, char *delm);
128  const char *do_file_to_string(char *filename);
129  const char *do_extract(char *string, char *begin, char *end);
130  const char *do_include_path(char *new_path);
131  const char *do_intout(double intval);
132  const char *do_print_array(array *my_array_data);
133  const char *do_str_if(char *string);
134  const char *do_str_notif(char *string);
135  const char *do_str_elseif(char *string);
136  const char *do_delete(char *string);
137 
138 #if defined(EXODUS_SUPPORT)
139  const char *do_exodus_info_range(char *filename, char *beg, char *end);
140  const char *do_exodus_info(char *filename, char *prefix);
141  const char *do_exodus_meta(char *filename);
142 #endif
143 
144  array *do_csv_array(const char *filename, double skip);
145  array *do_csv_array1(const char *filename);
146  array *do_csv_array2(const char *filename, const char *comment);
147  array *do_make_array(double rows, double cols);
148  array *do_make_array_init(double rows, double cols, double init);
149  array *do_linear_array(double init, double final, double count);
150  array *do_identity(double size);
151  array *do_transpose(const array *a);
152  array *do_array_from_string(const char *string, const char *delm);
153 } // namespace SEAMS
154 
155 #endif
SEAMS::do_tanh
double do_tanh(double x)
Definition: apr_builtin.cc:438
SEAMS::do_atan2
double do_atan2(double x, double y)
Definition: apr_builtin.cc:228
SEAMS::do_getenv
const char * do_getenv(char *env)
Definition: apr_builtin.cc:673
SEAMS
Definition: apr_aprepro.cc:41
SEAMS::do_sinh
double do_sinh(double x)
Definition: apr_builtin.cc:408
SEAMS::do_r2d
double do_r2d(double x)
Definition: apr_builtin.cc:170
SEAMS::do_acosd
double do_acosd(double x)
Definition: apr_builtin.cc:268
SEAMS::do_Units
const char * do_Units(char *type)
Definition: apr_units.cc:305
SEAMS::do_str_if
const char * do_str_if(char *string)
Definition: apr_builtin.cc:821
SEAMS::do_word_count
double do_word_count(char *string, char *delm)
Definition: apr_builtin.cc:626
SEAMS::do_str_elseif
const char * do_str_elseif(char *string)
Definition: apr_builtin.cc:837
SEAMS::do_error
const char * do_error(char *error_string)
Definition: apr_builtin.cc:895
SEAMS::do_csv_array1
array * do_csv_array1(const char *filename)
Definition: apr_builtin.cc:996
SEAMS::do_julday
double do_julday(double mon, double day, double year)
Definition: apr_builtin.cc:480
SEAMS::array
Definition: aprepro.h:37
SEAMS::do_append
const char * do_append(char *filename)
Definition: apr_builtin.cc:604
SEAMS::do_tand
double do_tand(double x)
Definition: apr_builtin.cc:204
SEAMS::do_intout
const char * do_intout(double intval)
Definition: apr_builtin.cc:769
SEAMS::do_rand_normal
double do_rand_normal(double mean, double stddev)
Definition: apr_builtin.cc:298
SEAMS::do_identity
array * do_identity(double size)
Definition: apr_builtin.cc:957
SEAMS::do_rescan
const char * do_rescan(char *string)
Definition: apr_builtin.cc:796
SEAMS::do_linear_array
array * do_linear_array(double init, double final, double count)
Definition: apr_builtin.cc:969
SEAMS::do_erf
double do_erf(double x)
Definition: apr_builtin.cc:372
SEAMS::do_toupper
const char * do_toupper(char *string)
Definition: apr_builtin.cc:555
SEAMS::do_dist
double do_dist(double x1, double y1, double x2, double y2)
Definition: apr_builtin.cc:111
SEAMS::do_notif
const char * do_notif(double x)
Definition: apr_builtin.cc:809
SEAMS::do_asinh
double do_asinh(double x)
Definition: apr_builtin.cc:489
SEAMS::do_srand
double do_srand(double seed)
Definition: apr_builtin.cc:285
SEAMS::do_print_array
const char * do_print_array(const array *my_array_data)
Definition: apr_builtin.cc:904
SEAMS::do_switch
const char * do_switch(double x)
Definition: apr_builtin.cc:845
SEAMS::do_asind
double do_asind(double x)
Definition: apr_builtin.cc:252
SEAMS::do_rand_weibull
double do_rand_weibull(double alpha, double beta)
Definition: apr_builtin.cc:310
SEAMS::do_option
double do_option(char *option, double value)
Definition: apr_builtin.cc:732
SEAMS::do_if
const char * do_if(double x)
Definition: apr_builtin.cc:802
SEAMS::do_delete
const char * do_delete(char *string)
Definition: apr_builtin.cc:934
SEAMS::do_angled
double do_angled(double x1, double y1, double x2, double y2)
Definition: apr_builtin.cc:134
SEAMS::do_make_array
array * do_make_array(double rows, double cols)
Definition: apr_builtin.cc:941
SEAMS::do_tgamma
double do_tgamma(double val)
Definition: apr_builtin.cc:452
SEAMS::do_expm1
double do_expm1(double x)
Definition: apr_builtin.cc:364
SEAMS::do_elseif
const char * do_elseif(double x)
Definition: apr_builtin.cc:815
SEAMS::do_cols
double do_cols(const array *arr)
Definition: apr_builtin.cc:495
SEAMS::do_dumpvar1
const char * do_dumpvar1(char *pre)
Definition: apr_builtin.cc:726
SEAMS::do_sin
double do_sin(double x)
Definition: apr_builtin.cc:180
SEAMS::do_get_temp_filename
const char * do_get_temp_filename()
Definition: apr_builtin.cc:888
SEAMS::do_dim
double do_dim(double x, double y)
Definition: apr_builtin.cc:324
SEAMS::do_asin
double do_asin(double x)
Definition: apr_builtin.cc:260
SEAMS::do_dumpsym
const char * do_dumpsym()
Definition: apr_builtin.cc:696
SEAMS::do_atand
double do_atand(double x)
Definition: apr_builtin.cc:236
SEAMS::do_get_date
const char * do_get_date()
Definition: apr_builtin.cc:498
SEAMS::do_acosh
double do_acosh(double x)
Definition: apr_builtin.cc:487
SEAMS::do_file_to_string
const char * do_file_to_string(char *filename)
Definition: apr_builtin.cc:656
SEAMS::do_dumpvar
const char * do_dumpvar()
Definition: apr_builtin.cc:708
SEAMS::do_atan2d
double do_atan2d(double x, double y)
Definition: apr_builtin.cc:220
SEAMS::do_exp
double do_exp(double x)
Definition: apr_builtin.cc:356
SEAMS::do_atan
double do_atan(double x)
Definition: apr_builtin.cc:244
SEAMS::do_sind
double do_sind(double x)
Definition: apr_builtin.cc:172
SEAMS::do_tolower
const char * do_tolower(char *string)
Definition: apr_builtin.cc:543
SEAMS::do_strtod
double do_strtod(char *string)
Definition: apr_builtin.cc:688
SEAMS::do_transpose
array * do_transpose(const array *a)
Definition: apr_builtin.cc:983
SEAMS::do_cbrt
double do_cbrt(double x)
Definition: apr_builtin.cc:427
SEAMS::do_juldayhms
double do_juldayhms(double mon, double day, double year, double h, double mi, double se)
Definition: apr_builtin.cc:454
SEAMS::do_pow
double do_pow(double x, double y)
Definition: apr_builtin.cc:146
SEAMS::do_d2r
double do_d2r(double x)
Definition: apr_builtin.cc:168
SEAMS::do_log
double do_log(double x)
Definition: apr_builtin.cc:392
SEAMS::do_rows
double do_rows(const array *arr)
Definition: apr_builtin.cc:493
SEAMS::do_array_from_string
array * do_array_from_string(const char *string, const char *delm)
Definition: apr_builtin.cc:1094
SEAMS::do_hypot
double do_hypot(double x, double y)
Definition: apr_builtin.cc:144
SEAMS::do_cosh
double do_cosh(double x)
Definition: apr_builtin.cc:348
SEAMS::do_erfc
double do_erfc(double x)
Definition: apr_builtin.cc:374
SEAMS::do_max
double do_max(double x, double y)
Definition: apr_builtin.cc:152
SEAMS::do_nint
double do_nint(double x)
Definition: apr_builtin.cc:100
SEAMS::do_acos
double do_acos(double x)
Definition: apr_builtin.cc:276
SEAMS::do_make_array_init
array * do_make_array_init(double rows, double cols, double init)
Definition: apr_builtin.cc:947
SEAMS::anonymous_namespace{apr_units.cc}::comment
std::string & comment()
Definition: apr_units.cc:23
SEAMS::do_fabs
double do_fabs(double x)
Definition: apr_builtin.cc:332
SEAMS::do_atanh
double do_atanh(double x)
Definition: apr_builtin.cc:491
SEAMS::do_find_word
double do_find_word(char *word, char *string, char *delm)
Definition: apr_builtin.cc:631
SEAMS::do_cosd
double do_cosd(double x)
Definition: apr_builtin.cc:188
SEAMS::do_str_notif
const char * do_str_notif(char *string)
Definition: apr_builtin.cc:829
SEAMS::do_dumpsym1
const char * do_dumpsym1(char *pre)
Definition: apr_builtin.cc:714
SEAMS::do_cos
double do_cos(double x)
Definition: apr_builtin.cc:196
SEAMS::do_get_time
const char * do_get_time()
Definition: apr_builtin.cc:528
SEAMS::do_log10
double do_log10(double x)
Definition: apr_builtin.cc:400
SEAMS::do_output
const char * do_output(char *filename)
Definition: apr_builtin.cc:583
SEAMS::do_floor
double do_floor(double x)
Definition: apr_builtin.cc:376
SEAMS::do_sqrt
double do_sqrt(double x)
Definition: apr_builtin.cc:416
SEAMS::do_dumpfunc
const char * do_dumpfunc()
Definition: apr_builtin.cc:702
SEAMS::do_rand_lognormal
double do_rand_lognormal(double mean, double stddev)
Definition: apr_builtin.cc:304
SEAMS::do_include_path
const char * do_include_path(char *new_path)
Definition: apr_builtin.cc:763
SEAMS::do_min
double do_min(double x, double y)
Definition: apr_builtin.cc:160
SEAMS::do_int
double do_int(double x)
Definition: apr_builtin.cc:91
SEAMS::do_lgamma
double do_lgamma(double val)
Definition: apr_builtin.cc:450
SEAMS::do_ceil
double do_ceil(double x)
Definition: apr_builtin.cc:340
SEAMS::do_csv_array2
array * do_csv_array2(const char *filename, const char *comment)
Definition: apr_builtin.cc:1047
SEAMS::do_angle
double do_angle(double x1, double y1, double x2, double y2)
Definition: apr_builtin.cc:122
SEAMS::do_get_iso_date
const char * do_get_iso_date()
Definition: apr_builtin.cc:513
SEAMS::do_sign
double do_sign(double x, double y)
Definition: apr_builtin.cc:316
SEAMS::do_time
double do_time()
Definition: apr_builtin.cc:84
SEAMS::do_csv_array
array * do_csv_array(const char *filename, double skip)
Definition: apr_builtin.cc:998
SEAMS::do_tostring
const char * do_tostring(double x)
Definition: apr_builtin.cc:567
init
Definition: init_structs.h:16
SEAMS::do_polarX
double do_polarX(double rad, double ang)
Definition: apr_builtin.cc:446
SEAMS::do_tan
double do_tan(double x)
Definition: apr_builtin.cc:212
SEAMS::do_polarY
double do_polarY(double rad, double ang)
Definition: apr_builtin.cc:448
SEAMS::do_dumpfunc1
const char * do_dumpfunc1(char *pre)
Definition: apr_builtin.cc:720
SEAMS::do_fmod
double do_fmod(double x, double y)
Definition: apr_builtin.cc:384
SEAMS::do_rand
double do_rand(double xl, double xh)
Definition: apr_builtin.cc:292
SEAMS::do_execute
const char * do_execute(char *string)
Definition: apr_builtin.cc:790
SEAMS::do_case
const char * do_case(double x)
Definition: apr_builtin.cc:851
SEAMS::do_get_word
const char * do_get_word(double n, char *string, char *delm)
Definition: apr_builtin.cc:643
SEAMS::do_log1p
double do_log1p(double x)
Definition: apr_builtin.cc:485
SEAMS::do_extract
const char * do_extract(char *string, char *begin, char *end)
Definition: apr_builtin.cc:857