Aprepro 5.0x

Namespaces | Macros | Functions | Variables
apr_builtin.cc File Reference
`#include "apr_builtin.h"`
`#include <cctype>`
`#include <cerrno>`
`#include <cfenv>`
`#include <cmath>`
`#include <cstdio>`
`#include <cstdlib>`
`#include <ctime>`
`#include <fstream>`
`#include <functional>`
`#include <sstream>`
`#include <stdexcept>`
`#include <unordered_map>`
`#include <utility>`
`#include <sys/stat.h>`
`#include <unistd.h>`
`#include "apr_scanner.h"`
`#include "apr_tokenize.h"`
`#include "apr_util.h"`
`#include "aprepro.h"`
`#include "aprepro_parser.h"`
`#include <cassert>`
`#include <cstring>`
`#include <random>`

## Namespaces
| anonymous_namespace{apr_builtin.cc}
| SEAMS

## Macros
#define | PI 3.141592653589793238462643
#define | HYPOT(x, y) do_hypot(x, y)
#define | d2r(x) ((x)*PI / 180.)
#define | r2d(x) ((x)*180. / PI)
#define | max(x, y) (x) > (y) ? (x) : (y)
#define | min(x, y) (x) < (y) ? (x) : (y)
#define | LOG1P(x) std::log(1.0 + (x))

## Functions
std::vector< std::string > & | anonymous_namespace{apr_builtin.cc}::get_tokenized_strings (const char *string, const char *delm)
std::mt19937_64 | anonymous_namespace{apr_builtin.cc}::rng (rd())
void | anonymous_namespace{apr_builtin.cc}::reset_error ()
double | SEAMS::do_time ()
double | SEAMS::do_int (double x)
double | SEAMS::do_nint (double x)
double | SEAMS::do_dist (double x1, double y1, double x2, double y2)
double | SEAMS::do_angle (double x1, double y1, double x2, double y2)
double | SEAMS::do_angled (double x1, double y1, double x2, double y2)
double | SEAMS::do_hypot (double x, double y)
double | SEAMS::do_max (double x, double y)
double | SEAMS::do_min (double x, double y)
double | SEAMS::do_d2r (double x)
double | SEAMS::do_r2d (double x)
double | SEAMS::do_sind (double x)
double | SEAMS::do_sin (double x)
double | SEAMS::do_cosd (double x)
double | SEAMS::do_cos (double x)
double | SEAMS::do_tand (double x)
double | SEAMS::do_tan (double x)
double | SEAMS::do_atan2d (double x, double y)
double | SEAMS::do_atan2 (double x, double y)
double | SEAMS::do_atand (double x)
double | SEAMS::do_atan (double x)
double | SEAMS::do_asind (double x)
double | SEAMS::do_asin (double x)
double | SEAMS::do_acosd (double x)
double | SEAMS::do_acos (double x)
double | SEAMS::do_srand (double seed)
double | SEAMS::do_rand (double xl, double xh)
double | SEAMS::do_rand_normal (double mean, double stddev)
double | SEAMS::do_rand_lognormal (double mean, double stddev)
double | SEAMS::do_rand_weibull (double alpha, double beta)
double | SEAMS::do_sign (double x, double y)
double | SEAMS::do_dim (double x, double y)
double | SEAMS::do_fabs (double x)
double | SEAMS::do_ceil (double x)
double | SEAMS::do_cosh (double x)
double | SEAMS::do_exp (double x)
double | SEAMS::do_expm1 (double x)
double | SEAMS::do_floor (double x)
double | SEAMS::do_fmod (double x, double y)
double | SEAMS::do_log (double x)
double | SEAMS::do_log10 (double x)
double | SEAMS::do_sinh (double x)
double | SEAMS::do_sqrt (double x)
double | SEAMS::do_tanh (double x)
double | SEAMS::do_polarX (double rad, double ang)
double | SEAMS::do_polarY (double rad, double ang)
double | SEAMS::do_lgamma (double val)
double | SEAMS::do_juldayhms (double mon, double day, double year, double h, double mi, double se)
double | SEAMS::do_julday (double mon, double day, double year)
double | SEAMS::do_log1p (double x)
double | SEAMS::do_acosh (double x)
double | SEAMS::do_asinh (double x)
double | SEAMS::do_atanh (double x)
double | SEAMS::do_rows (const array *arr)
double | SEAMS::do_cols (const array *arr)
const char * | SEAMS::do_get_date ()
const char * | SEAMS::do_get_iso_date ()
const char * | SEAMS::do_get_time ()
const char * | SEAMS::do_tolower (char *string)
const char * | SEAMS::do_toupper (char *string)
const char * | SEAMS::do_tostring (double x)
const char * | SEAMS::do_output (char *filename)
const char * | SEAMS::do_append (char *filename)
double | SEAMS::do_word_count (char *string, char *delm)
double | SEAMS::do_find_word (char *word, char *string, char *delm)
const char * | SEAMS::do_get_word (double n, char *string, char *delm)
const char * | SEAMS::do_file_to_string (char *filename)
const char * | SEAMS::do_getenv (char *env)
double | SEAMS::do_strtod (char *string)
const char * | SEAMS::do_dumpsym ()
const char * | SEAMS::do_dumpfunc ()
const char * | SEAMS::do_dumpvar ()
const char * | SEAMS::do_dumpsym1 (char *pre)
const char * | SEAMS::do_dumpfunc1 (char *pre)
const char * | SEAMS::do_dumpvar1 (char *pre)
double | SEAMS::do_option (char *option, double value)
const char * | SEAMS::do_include_path (char *new_path)
const char * | SEAMS::do_intout (double intval)
const char * | SEAMS::do_execute (char *string)
const char * | SEAMS::do_rescan (char *string)
const char * | SEAMS::do_if (double x)
const char * | SEAMS::do_notif (double x)
const char * | SEAMS::do_elseif (double x)
const char * | SEAMS::do_str_if (char *string)
const char * | SEAMS::do_str_notif (char *string)
const char * | SEAMS::do_str_elseif (char *string)
const char * | SEAMS::do_switch (double x)
const char * | SEAMS::do_case (double x)
const char * | SEAMS::do_extract (char *string, char *begin, char *end)
const char * | SEAMS::do_get_temp_filename ()
const char * | SEAMS::do_error (char *error_string)
const char * | SEAMS::do_print_array (const array *my_array_data)
const char * | SEAMS::do_delete (char *string)
array * | SEAMS::do_make_array (double rows, double cols)
array * | SEAMS::do_make_array_init (double rows, double cols, double init)
array * | SEAMS::do_identity (double size)
array * | SEAMS::do_linear_array (double init, double final, double count)
array * | SEAMS::do_transpose (const array *a)
array * | SEAMS::do_csv_array1 (const char *filename)
array * | SEAMS::do_csv_array (const char *filename, double skip)
array * | SEAMS::do_csv_array2 (const char *filename, const char *comment)
array * | SEAMS::do_array_from_string (const char *string, const char *delm)

## Variables
std::unordered_map< size_t, std::vector< std::string > > | anonymous_namespace{apr_builtin.cc}::tokenized_strings
std::random_device | anonymous_namespace{apr_builtin.cc}::rd
double | SEAMS::cof []

## Macro Definition Documentation

## ◆ d2r

#define d2r | ( |  | x | ) | ((x)*PI / 180.)

## ◆ HYPOT

#define HYPOT | ( |  | x,
|  |  | y
| ) |  | do_hypot(x, y)

## ◆ LOG1P

#define LOG1P | ( |  | x | ) | std::log(1.0 + (x))

## ◆ max

#define max | ( |  | x,
|  |  | y
| ) |  | (x) > (y) ? (x) : (y)

## ◆ min

#define min | ( |  | x,
|  |  | y
| ) |  | (x) < (y) ? (x) : (y)

## ◆ PI

#define PI 3.141592653589793238462643

## ◆ r2d

#define r2d | ( |  | x | ) | ((x)*180. / PI)