|
bool | is_mac_app (const std::string &) |
|
bool | program_path (const std::string &a_arg0, std::string &a_path) |
|
bool | if_mouse_startup (const std::string &a_arg0, const std::string &a_env_HOME_DIR, const std::vector< std::string > &a_home_dirs, std::ostream &a_out) |
|
void | app_res_dir (const std::string &a_exe_path, std::string &a_res_dir) |
|
void | new_argcv (const std::vector< std::string > &a_args, int &a_argc, char **&a_argv) |
|
void | delete_argcv (int &a_argc, char **&a_argv) |
|
bool | check_args (const std::vector< std::string > &a_args, unsigned int a_number, std::ostream &a_out) |
|
bool | check_min (const std::vector< std::string > &a_args, unsigned int a_number, std::string &a_last, std::ostream &a_out) |
|
bool | check_min_args (const std::vector< std::string > &aArgs, unsigned int a_number, std::ostream &a_out) |
|
bool | check_or_args (const std::vector< std::string > &aArgs, unsigned int a_1, unsigned int a_2, std::ostream &a_out) |
|
std::vector< std::string > | to (int a_argc, char **a_argv) |
|
template<class T > |
bool | contract (const array< T > &aA, unsigned int aIA, const array< T > &aB, unsigned int aIB, array< T > &aR) |
|
template<class T > |
bool | swap (const array< T > &aV, unsigned int aI1, unsigned int aI2, array< T > &aR) |
|
template<class T > |
void | dump (std::ostream &a_out, const tools::array< T > &a_array, const std::string &a_title) |
|
template<class T > |
void | diff (std::ostream &a_out, const array< T > &aA, const array< T > &aB, T a_epsilon) |
|
template<class T > |
array< T > | operator+ (const array< T > &a1, const array< T > &a2) |
|
template<class T > |
array< T > | operator- (const array< T > &a1, const array< T > &a2) |
|
template<class T > |
array< T > | operator* (const T &a_fac, const array< T > &a_m) |
|
void | b2s (bool a_value, std::string &a_s) |
|
void | bas (bool a_value, std::string &a_s) |
|
void | b2s (const std::vector< bool > &a_vals, std::string &a_s, const std::string &a_sep="\n", bool a_sep_at_end=false) |
|
void | buf2lines (char *a_buffer, std::vector< std::string > &a_lines) |
|
void | buf2lines (size_t a_size, const char *a_buffer, std::vector< std::string > &a_lines) |
|
bool | strings2buf (const std::vector< std::string > &a_strings, size_t &a_size, char *&a_buffer) |
|
bool | buf2strings (size_t a_size, char *a_buffer, std::vector< std::string > &a_strings) |
|
template<class T > |
void | destroy (T *&a_v) |
|
template<class T , class I > |
bool | carray_copy (T *&a_v, I a_n, const T *a_from) |
|
template<class T , class I > |
bool | copy (T *&a_v, I a_n, const T *a_from) |
|
template<class I , class T , class TO > |
bool | min_max (I a_n, const void *a_v, TO &a_mn, TO &a_mx) |
|
template<class I , class T , class TO > |
bool | min_max_S_S2 (I a_n, const void *a_v, TO &a_mn, TO &a_mx, TO &a_S, TO &a_S2) |
|
template<class I , class T , class TO > |
bool | min_max_mean_rms (I a_n, const void *a_v, TO &a_mn, TO &a_mx, TO &a_mean, TO &a_rms, TO(*a_sqrt)(TO), TO(*a_fabs)(TO)) |
|
template<class I , class T , class HISTO > |
bool | h1_fill (I a_n, const void *a_v, HISTO &a_histo) |
|
template<class T , class I > |
T * | _4s_to_3s (const T *a_4s, const I &a_w, const I &a_h) |
|
bool | is_upper (char a_char) |
|
bool | is_lower (char a_char) |
|
bool | is_digit (char a_char) |
|
bool | is_letter (char a_char) |
|
bool | is_printable (char a_char) |
|
char | LF () |
|
char | CR () |
|
cid | _cid (byte) |
|
cid | _cid (char) |
|
cid | _cid (unsigned short) |
|
cid | _cid (short) |
|
cid | _cid (unsigned int) |
|
cid | _cid (int) |
|
cid | _cid (float) |
|
cid | _cid (double) |
|
cid | _cid (bool) |
|
cid | _cid (uint64) |
|
cid | _cid (int64) |
|
cid | _cid (const std::string &) |
|
cid | _cid (fits_bit) |
|
cid | _cid (csv_time) |
|
template<class T > |
cid | _cid (const std::vector< T > &) |
|
template<class T > |
cid | _cid_std_vector () |
|
bool | cid2s (cid a_id, std::string &a_s) |
|
template<class T > |
void | cmem_free (T *&a_p) |
|
template<class T > |
T * | cmem_alloc (size_t a_num) |
|
template<class T > |
T * | cmem_alloc_copy (const T *a_from, size_t a_num) |
|
template<class T > |
bool | cmp (std::ostream &a_out, const T &a_what, const T &a_ref, const T &a_error=T()) |
|
const colorf & | colorf_default () |
|
char * | str_dup (const char *a_cstr) |
|
char * | str_from_buffer (const char *a_buffer, size_t a_len) |
|
void | str_del (char *&a_cstr) |
|
char * | str_new (size_t a_l=0, char a_char=' ') |
|
bool | str_cat (char *&a_1, const char a_c) |
|
bool | str_cat (char *&a_1, const char *a_2) |
|
void | str_rev (char *a_s) |
|
char * | str_sub (const char *a_s, unsigned int a_pos, unsigned int a_sz=0) |
|
char * | str_rep (const char *a_s, unsigned int a_pos, unsigned int a_sz, const char *a_new) |
|
void | str_skip (char *&a_cstr, char a_c) |
|
char * | beg_LC_NUMERIC () |
|
void | end_LC_NUMERIC (char *&a_s) |
|
bool | str_2d (const char *a_s, double &a_v) |
|
size_t | str_lcpy (char *dst, const char *src, size_t siz) |
|
size_t | str_lcat (char *dst, const char *src, size_t siz) |
|
template<class VECTOR > |
bool | str_2ds (char *a_s, const char *a_sep, VECTOR &a_v) |
|
template<class NUMBER , class PREC > |
bool | numbers_are_equal (const NUMBER &a_left, const NUMBER &a_right, const PREC &a_prec, PREC(*a_fabs)(const NUMBER &)) |
|
template<class NUMBER , class PREC > |
bool | is_zero (const NUMBER &a_left, const PREC &a_prec, PREC(*a_fabs)(const NUMBER &)) |
|
template<class VEC , class PREC > |
bool | vectors_are_equal (const VEC &a_1, const VEC &a_2, const PREC &a_prec, PREC(*a_fabs)(const PREC &)) |
|
template<class VECVEC , class PREC > |
bool | vecvecs_are_equal (const VECVEC &a_1, const VECVEC &a_2, const PREC &a_prec, PREC(*a_fabs)(const PREC &)) |
|
template<class NUMBER , class PREC > |
bool | numbers_are_equal (const NUMBER &a_left, const NUMBER &a_right, const PREC &a_prec, PREC(*a_fabs)(NUMBER)) |
| PREC(*a_fabs)(PREC) : /////////////////////////////////////////////////////////////////////////////////////. More...
|
|
template<class VEC , class PREC > |
bool | vectors_are_equal (const VEC &a_1, const VEC &a_2, const PREC &a_prec, PREC(*a_fabs)(PREC)) |
|
template<class VECVEC , class PREC > |
bool | vecvecs_are_equal (const VECVEC &a_1, const VECVEC &a_2, const PREC &a_prec, PREC(*a_fabs)(PREC)) |
|
bool | rep_env (std::string &a_string) |
|
bool | file_name (const std::string &a_path, std::string &a_name) |
|
bool | find_with_dirs (std::ostream &a_out, const std::vector< std::string > &a_dirs, const std::string &a_file, std::string &a_path, bool a_verbose=false) |
|
bool | find_with_env (std::ostream &a_out, const std::string &a_env, const std::string &a_file, std::string &a_path, bool a_verbose=false) |
|
bool | is_env (const std::string &a_string) |
|
bool | get_env (const std::string &a_string, std::string &a_value) |
|
template<class T > |
bool | get_env (const std::string &a_string, T &a_v, const T &a_def=T()) |
|
bool | get_env_bool (const std::string &a_string, bool &a_v) |
|
void | get_lines (const std::string &a_string, std::vector< std::string > &a_lines) |
|
void * | mem_alloc (size_t a_size) |
|
void * | mem_realloc (void *a_ptr, size_t a_size) |
|
void | mem_free (void *a_ptr) |
|
int | mem_init (size_t) |
|
template<class T > |
T | hls_to_rgb2 (T rn1, T rn2, T huei) |
|
template<class T > |
void | hls_to_rgb (T hue, T light, T satur, T &a_r, T &a_g, T &a_b) |
|
template<class T > |
void | rgb_to_hls (T rr, T gg, T bb, T &hue, T &light, T &satur) |
|
void | tex_expand_size (unsigned int a_w, unsigned int &a_h, unsigned int &a_ew, unsigned int &a_eh) |
|
void | box_3f_make_empty (float &a_mn_x, float &a_mn_y, float &a_mn_z, float &a_mx_x, float &a_mx_y, float &a_mx_z) |
|
void | box_3f_extend_by (float &a_mn_x, float &a_mn_y, float &a_mn_z, float &a_mx_x, float &a_mx_y, float &a_mx_z, float a_x, float a_y, float a_z) |
|
bool | box_3f_is_empty (float a_mn_x, float a_mx_x) |
|
template<class VEC2 > |
double | is_left (const VEC2 &P0, const VEC2 &P1, const VEC2 &P2) |
|
template<class VEC2 > |
bool | is_inside (const VEC2 &a_P, const std::vector< VEC2 > &a_V) |
|
template<class T > |
double | is_left (const std::pair< T, T > &P0, const std::pair< T, T > &P1, const std::pair< T, T > &P2) |
|
template<class T > |
bool | inside (const std::pair< T, T > &a_P, const std::vector< std::pair< T, T > > &a_V) |
|
template<class VEC2 > |
bool | intersect (const VEC2 &P1, const VEC2 &Q1, const VEC2 &P2, const VEC2 &Q2, VEC2 &a_out) |
|
template<class T , unsigned int D> |
nmat< T > | copy (const mat< T, D > &a_from) |
|
template<class VECTOR > |
void | multiply (VECTOR &a_vec, const typename VECTOR::value_type &a_mat) |
|
template<class VECTOR > |
void | multiply (VECTOR &a_vec, const typename VECTOR::value_type::elem_t &a_value) |
|
template<class MAT > |
void | conjugate (MAT &a_m, typename MAT::elem_t(*a_conj)(const typename MAT::elem_t &)) |
| related to complex numbers : ////////////////////////////////////////////////////// More...
|
|
template<class MAT > |
bool | is_real (MAT &a_m, typename MAT::elem_t::value_type(*a_imag)(const typename MAT::elem_t &)) |
|
template<class MAT , class PREC > |
bool | is_real_prec (MAT &a_m, typename MAT::elem_t::value_type(*a_imag)(const typename MAT::elem_t &), const PREC &a_prec, PREC(*a_fabs)(const typename MAT::elem_t::value_type &)) |
|
template<class MAT > |
bool | is_imag (MAT &a_m, typename MAT::elem_t::value_type(*a_real)(const typename MAT::elem_t &)) |
|
template<class CMAT , class RMAT > |
bool | to_real (const CMAT &a_c, RMAT &a_r, typename CMAT::elem_t::value_type(*a_real)(const typename CMAT::elem_t &)) |
|
template<class RMAT , class CMAT > |
bool | to_complex (const RMAT &a_r, CMAT &a_c) |
|
template<class MAT > |
void | dagger (MAT &a_m, typename MAT::elem_t(*a_conj)(const typename MAT::elem_t &)) |
|
template<class CMAT , class RMAT > |
bool | decomplex (const CMAT &a_c, RMAT &a_r, typename CMAT::elem_t::value_type(*a_real)(const typename CMAT::elem_t &), typename CMAT::elem_t::value_type(*a_imag)(const typename CMAT::elem_t &)) |
|
template<class VEC_CMAT , class VEC_RMAT > |
bool | decomplex (const VEC_CMAT &a_vc, VEC_RMAT &a_vr, typename VEC_CMAT::value_type::elem_t::value_type(*a_real)(const typename VEC_CMAT::value_type::elem_t &), typename VEC_CMAT::value_type::elem_t::value_type(*a_imag)(const typename VEC_CMAT::value_type::elem_t &)) |
|
template<class MAT > |
MAT | commutator (const MAT &a1, const MAT &a2) |
|
template<class MAT > |
MAT | anticommutator (const MAT &a1, const MAT &a2) |
|
template<class MAT > |
void | commutator (const MAT &a1, const MAT &a2, MAT &a_tmp, MAT &a_res) |
|
template<class MAT , class T > |
void | commutator (const MAT &a1, const MAT &a2, MAT &a_tmp, T a_vtmp[], MAT &a_res) |
|
template<class MAT > |
void | anticommutator (const MAT &a1, const MAT &a2, MAT &a_tmp, MAT &a_res) |
|
template<class MAT , class T > |
void | anticommutator (const MAT &a1, const MAT &a2, MAT &a_tmp, T a_vtmp[], MAT &a_res) |
|
template<class T , unsigned int D> |
bool | commutator_equal (const mat< T, D > &a_1, const mat< T, D > &a_2, const mat< T, D > &a_c, const T &a_prec) |
|
template<class T , unsigned int D> |
bool | anticommutator_equal (const mat< T, D > &a_1, const mat< T, D > &a_2, const mat< T, D > &a_c, const T &a_prec) |
|
template<class T , unsigned int D> |
mat< T, D > | operator- (const mat< T, D > &a1, const mat< T, D > &a2) |
|
template<class T , unsigned int D> |
mat< T, D > | operator+ (const mat< T, D > &a1, const mat< T, D > &a2) |
|
template<class T , unsigned int D> |
mat< T, D > | operator* (const mat< T, D > &a1, const mat< T, D > &a2) |
|
template<class T , unsigned int D> |
mat< T, D > | operator* (const T &a_fac, const mat< T, D > &a_m) |
|
template<class T > |
nmat< T > | operator- (const nmat< T > &a1, const nmat< T > &a2) |
|
template<class T > |
nmat< T > | operator+ (const nmat< T > &a1, const nmat< T > &a2) |
|
template<class T > |
nmat< T > | operator* (const nmat< T > &a1, const nmat< T > &a2) |
|
template<class T > |
nmat< T > | operator* (const T &a_fac, const nmat< T > &a_m) |
|
template<class MAT , class REAL > |
bool | mat_fabs (const MAT &a_in, MAT &a_ou, REAL(*a_fabs)(const typename MAT::elem_t &)) |
|
template<class MAT > |
void | matrix_set (MAT &a_m, TOOLS_MELEM a_00, TOOLS_MELEM a_01, TOOLS_MELEM a_10, TOOLS_MELEM a_11) |
| specific D=2 /////////////////////////////// More...
|
|
template<class MAT > |
void | matrix_set (MAT &a_m, TOOLS_MELEM a_00, TOOLS_MELEM a_01, TOOLS_MELEM a_02, TOOLS_MELEM a_10, TOOLS_MELEM a_11, TOOLS_MELEM a_12, TOOLS_MELEM a_20, TOOLS_MELEM a_21, TOOLS_MELEM a_22) |
| specific D=3 /////////////////////////////// More...
|
|
template<class MAT > |
void | matrix_set (MAT &a_m, TOOLS_MELEM a_00, TOOLS_MELEM a_01, TOOLS_MELEM a_02, TOOLS_MELEM a_03, TOOLS_MELEM a_10, TOOLS_MELEM a_11, TOOLS_MELEM a_12, TOOLS_MELEM a_13, TOOLS_MELEM a_20, TOOLS_MELEM a_21, TOOLS_MELEM a_22, TOOLS_MELEM a_23, TOOLS_MELEM a_30, TOOLS_MELEM a_31, TOOLS_MELEM a_32, TOOLS_MELEM a_33) |
| specific D=4 /////////////////////////////// More...
|
|
template<class MAT > |
void | matrix_set (MAT &a_m, TOOLS_MELEM a_00, TOOLS_MELEM a_01, TOOLS_MELEM a_02, TOOLS_MELEM a_03, TOOLS_MELEM a_04, TOOLS_MELEM a_10, TOOLS_MELEM a_11, TOOLS_MELEM a_12, TOOLS_MELEM a_13, TOOLS_MELEM a_14, TOOLS_MELEM a_20, TOOLS_MELEM a_21, TOOLS_MELEM a_22, TOOLS_MELEM a_23, TOOLS_MELEM a_24, TOOLS_MELEM a_30, TOOLS_MELEM a_31, TOOLS_MELEM a_32, TOOLS_MELEM a_33, TOOLS_MELEM a_34, TOOLS_MELEM a_40, TOOLS_MELEM a_41, TOOLS_MELEM a_42, TOOLS_MELEM a_43, TOOLS_MELEM a_44) |
| specific D=5 /////////////////////////////// More...
|
|
template<class MAT > |
void | matrix_set (MAT &a_m, TOOLS_MELEM a_00, TOOLS_MELEM a_01, TOOLS_MELEM a_02, TOOLS_MELEM a_03, TOOLS_MELEM a_04, TOOLS_MELEM a_05, TOOLS_MELEM a_10, TOOLS_MELEM a_11, TOOLS_MELEM a_12, TOOLS_MELEM a_13, TOOLS_MELEM a_14, TOOLS_MELEM a_15, TOOLS_MELEM a_20, TOOLS_MELEM a_21, TOOLS_MELEM a_22, TOOLS_MELEM a_23, TOOLS_MELEM a_24, TOOLS_MELEM a_25, TOOLS_MELEM a_30, TOOLS_MELEM a_31, TOOLS_MELEM a_32, TOOLS_MELEM a_33, TOOLS_MELEM a_34, TOOLS_MELEM a_35, TOOLS_MELEM a_40, TOOLS_MELEM a_41, TOOLS_MELEM a_42, TOOLS_MELEM a_43, TOOLS_MELEM a_44, TOOLS_MELEM a_45, TOOLS_MELEM a_50, TOOLS_MELEM a_51, TOOLS_MELEM a_52, TOOLS_MELEM a_53, TOOLS_MELEM a_54, TOOLS_MELEM a_55) |
| specific D=6 /////////////////////////////// More...
|
|
template<class MAT > |
void | matrix_set (MAT &a_m, TOOLS_MELEM a_00, TOOLS_MELEM a_01, TOOLS_MELEM a_02, TOOLS_MELEM a_03, TOOLS_MELEM a_04, TOOLS_MELEM a_05, TOOLS_MELEM a_06, TOOLS_MELEM a_07, TOOLS_MELEM a_08, TOOLS_MELEM a_09, TOOLS_MELEM a_10, TOOLS_MELEM a_11, TOOLS_MELEM a_12, TOOLS_MELEM a_13, TOOLS_MELEM a_14, TOOLS_MELEM a_15, TOOLS_MELEM a_16, TOOLS_MELEM a_17, TOOLS_MELEM a_18, TOOLS_MELEM a_19, TOOLS_MELEM a_20, TOOLS_MELEM a_21, TOOLS_MELEM a_22, TOOLS_MELEM a_23, TOOLS_MELEM a_24, TOOLS_MELEM a_25, TOOLS_MELEM a_26, TOOLS_MELEM a_27, TOOLS_MELEM a_28, TOOLS_MELEM a_29, TOOLS_MELEM a_30, TOOLS_MELEM a_31, TOOLS_MELEM a_32, TOOLS_MELEM a_33, TOOLS_MELEM a_34, TOOLS_MELEM a_35, TOOLS_MELEM a_36, TOOLS_MELEM a_37, TOOLS_MELEM a_38, TOOLS_MELEM a_39, TOOLS_MELEM a_40, TOOLS_MELEM a_41, TOOLS_MELEM a_42, TOOLS_MELEM a_43, TOOLS_MELEM a_44, TOOLS_MELEM a_45, TOOLS_MELEM a_46, TOOLS_MELEM a_47, TOOLS_MELEM a_48, TOOLS_MELEM a_49, TOOLS_MELEM a_50, TOOLS_MELEM a_51, TOOLS_MELEM a_52, TOOLS_MELEM a_53, TOOLS_MELEM a_54, TOOLS_MELEM a_55, TOOLS_MELEM a_56, TOOLS_MELEM a_57, TOOLS_MELEM a_58, TOOLS_MELEM a_59, TOOLS_MELEM a_60, TOOLS_MELEM a_61, TOOLS_MELEM a_62, TOOLS_MELEM a_63, TOOLS_MELEM a_64, TOOLS_MELEM a_65, TOOLS_MELEM a_66, TOOLS_MELEM a_67, TOOLS_MELEM a_68, TOOLS_MELEM a_69, TOOLS_MELEM a_70, TOOLS_MELEM a_71, TOOLS_MELEM a_72, TOOLS_MELEM a_73, TOOLS_MELEM a_74, TOOLS_MELEM a_75, TOOLS_MELEM a_76, TOOLS_MELEM a_77, TOOLS_MELEM a_78, TOOLS_MELEM a_79, TOOLS_MELEM a_80, TOOLS_MELEM a_81, TOOLS_MELEM a_82, TOOLS_MELEM a_83, TOOLS_MELEM a_84, TOOLS_MELEM a_85, TOOLS_MELEM a_86, TOOLS_MELEM a_87, TOOLS_MELEM a_88, TOOLS_MELEM a_89, TOOLS_MELEM a_90, TOOLS_MELEM a_91, TOOLS_MELEM a_92, TOOLS_MELEM a_93, TOOLS_MELEM a_94, TOOLS_MELEM a_95, TOOLS_MELEM a_96, TOOLS_MELEM a_97, TOOLS_MELEM a_98, TOOLS_MELEM a_99) |
| specific D=10 ////////////////////////////// More...
|
|
template<class MAT > |
void | dump (std::ostream &a_out, const std::string &aCMT, const MAT &a_matrix) |
|
template<class MAT > |
bool | check_invert (const MAT &a_matrix, std::ostream &a_out) |
|
template<class T > |
const mat3< T > & | mat3_zero () |
| common matrices : ////////////////////////// More...
|
|
template<class T > |
std::ostream & | operator<< (std::ostream &a_out, const mat3< T > &a_mtx) |
|
template<class T > |
const mat4< T > & | mat4_zero () |
| common matrices : ////////////////////////// More...
|
|
template<class T > |
const T * | get_data (const mat4< T > &a_v) |
|
template<class T > |
std::ostream & | operator<< (std::ostream &a_out, const mat4< T > &a_mtx) |
|
const std::string & | stype (const mat4f &) |
|
bool | tos (const rotf &a_v, std::string &a_s) |
|
template<class T > |
const T * | get_data (const vec2< T > &a_v) |
|
template<class T > |
std::ostream & | operator<< (std::ostream &a_out, const vec2< T > &a_this) |
|
vec2f | operator* (float a_f, const vec2f &a_v) |
|
bool | set_from_vec (vec2f &a_v, const std::vector< float > &a_sv) |
|
template<class T > |
const T * | get_data (const vec3< T > &a_v) |
|
template<class T > |
void | get_normal (const vec3< T > &a_p0, const vec3< T > &a_p1, const vec3< T > &a_p2, vec3< T > &a_nm, vec3< T > &a_tmp_1, vec3< T > &a_tmp_2, T(*a_sqrt)(T)) |
|
template<class VEC3 > |
void | direction (const VEC3 &a_p0, const VEC3 &a_p1, const VEC3 &a_p2, VEC3 &a_value) |
|
template<class VEC3 > |
void | area (const VEC3 &a_p0, const VEC3 &a_p1, const VEC3 &a_p2, typename VEC3::elem_t &a_value, VEC3 &a_tmp_1, VEC3 &a_tmp_2, VEC3 &a_tmp_3) |
|
template<class VEC3 > |
void | area (const VEC3 &a_p0, const VEC3 &a_p1, const VEC3 &a_p2, typename VEC3::elem_t &a_value) |
|
template<class T > |
void | direction (const T &a_0_x, const T &a_0_y, const T &a_0_z, const T &a_1_x, const T &a_1_y, const T &a_1_z, const T &a_2_x, const T &a_2_y, const T &a_2_z, vec3< T > &a_value) |
|
template<class T > |
std::ostream & | operator<< (std::ostream &a_out, const vec3< T > &a_this) |
|
vec3d | operator* (double a_f, const vec3d &a_v) |
|
bool | set_from_vec (vec3d &a_v, const std::vector< double > &a_sv) |
|
vec3f | operator* (float a_f, const vec3f &a_v) |
|
void | get_normal (const vec3f &a_p0, const vec3f &a_p1, const vec3f &a_p2, vec3f &a_nm, vec3f &a_tmp_1, vec3f &a_tmp_2) |
|
bool | set_from_vec (vec3f &a_v, const std::vector< float > &a_sv) |
|
template<class T > |
const T * | get_data (const vec4< T > &a_v) |
|
template<class T > |
std::ostream & | operator<< (std::ostream &a_out, const vec4< T > &a_this) |
|
bool | set_from_vec (vec4f &a_v, const std::vector< float > &a_sv) |
|
template<class K , class V > |
void | safe_clear (std::map< K, V * > &a_m) |
|
template<class K , class V > |
void | find_and_remove_value (std::map< K, V * > &a_m, V *a_value) |
|
template<class K , class V > |
bool | delete_key (std::map< K, V * > &a_m, const K &a_key) |
|
template<class K , class V > |
void | raw_clear (std::map< K, V * > &a_m) |
|
template<class K , class V > |
void | copy (std::map< K, V * > &a_to, const std::map< K, V * > &a_from) |
|
template<class K , class V > |
bool | add_unique (std::map< K, V * > &a_map, const K &a_key, V *a_value, bool a_delete) |
|
template<class K , class V > |
bool | find (const std::map< K, V > &a_map, const K &a_key, V &a_value) |
|
template<class K , class V > |
bool | is_key (const std::map< K, V > &a_map, const K &a_key) |
|
double | pi () |
|
double | two_pi () |
|
double | half_pi () |
|
double | deg2rad () |
|
double | rad2deg () |
|
bool | in_domain_all (double) |
|
bool | in_domain_log (double a_x) |
|
bool | in_domain_tan (double a_x) |
|
bool | in_domain_acos (double a_x) |
|
double | dcos (const double &a_x) |
|
double | dsin (const double &a_x) |
|
double | dpow (const double &a_x, const double &a_y) |
|
double | dcosh (const double &a_x) |
|
double | dsinh (const double &a_x) |
|
double | dconj (const double &a_x) |
|
double | dfabs (const double &a_x) |
|
double | dsqrt (const double &a_x) |
|
long double | ldfabs (const long double &a_x) |
|
bool | dpow (const double &a_x, const double &a_y, double &a_v) |
|
double | dgaussian (const double &a_x, const double &a_mean, const double &a_sigma) |
|
float | fpi () |
|
float | ftwo_pi () |
|
float | fhalf_pi () |
|
float | fdeg2rad () |
|
float | frad2deg () |
|
int | fround (const float &a_x) |
|
float | fstep (const float &a_x) |
|
float | fcos (const float &x) |
|
float | fsin (const float &x) |
|
float | facos (const float &x) |
|
float | fasin (const float &x) |
|
float | ftan (const float &x) |
|
float | fatan (const float &x) |
|
float | fatan2 (const float &x, const float &y) |
|
float | fsqrt (const float &x) |
|
float | fpow (const float &x, const float &y) |
|
float | fexp (const float &x) |
|
float | flog (const float &x) |
|
float | flog10 (const float &x) |
|
float | ffloor (const float &x) |
|
float | fceil (const float &x) |
|
float | fcosh (const float &x) |
|
float | fsinh (const float &x) |
|
float | ffabs (const float &x) |
|
template<class T > |
T | mn (const T &a, const T &b) |
|
template<class T > |
T | mx (const T &a, const T &b) |
|
template<class T > |
T | min_of (const T &a, const T &b) |
|
template<class T > |
T | max_of (const T &a, const T &b) |
|
bool | num2s (unsigned short a_value, std::string &a_s) |
|
bool | num2s (short a_value, std::string &a_s) |
|
bool | num2s (unsigned int a_value, std::string &a_s) |
|
bool | num2s (int a_value, std::string &a_s) |
|
bool | num2s (uint64 a_value, std::string &a_s) |
|
bool | num2s (int64 a_value, std::string &a_s) |
|
bool | num2s (float a_value, std::string &a_s) |
|
bool | num2s (double a_value, std::string &a_s) |
|
bool | size_t2s (size_t a_value, std::string &a_s) |
|
bool | ptrdiff_t2s (ptrdiff_t a_value, std::string &a_s) |
|
template<class T > |
bool | numas (const T &a_value, std::string &a_s) |
|
template<class T > |
bool | size_tas (const T &a_value, std::string &a_s) |
|
bool | num2s (const std::string &a_value, std::string &a_s) |
|
template<class VEC > |
bool | nums2s (const VEC &a_vals, std::string &a_s, const std::string &a_sep="\n", bool a_sep_at_end=false) |
|
template<class T > |
bool | nums2s (const std::vector< T > &a_vals, std::string &a_s, const std::string &a_sep="\n", bool a_sep_at_end=false) |
|
void | out_error (std::ostream &a_out, const char *location, const char *fmt,...) |
|
void | suffix (const std::string &a_string, std::string &a_value, bool a_back=true) |
|
void | nosuffix (const std::string &a_string, std::string &a_value, bool a_back=true) |
|
void | path_no_suffix (const std::string &a_string, std::string &a_value) |
|
bool | has_dir (const std::string &a_string) |
|
void | base_name (const std::string &a_path, std::string &a_value) |
|
std::string | suffix (const std::string &a_string, bool a_back=true) |
|
std::string | nosuffix (const std::string &a_string, bool a_back=true) |
|
std::string | base_name (const std::string &a_path) |
|
bool | is_absolute_path (const std::string &a_path) |
|
bool | path_name_suffix (const std::string &a_string, std::string &a_path, std::string &a_name, std::string &a_suffix) |
|
std::string | dir_name (const std::string &a_path, unsigned int a_num=1) |
|
void | quote (std::string &a_path) |
|
bool | is_f77 (const std::string &a_path) |
|
bool | is_cpp (const std::string &a_path) |
|
bool | is_python (const std::string &a_path) |
|
bool | url_parse (const std::string &a_url, std::string &a_host, unsigned int &a_port, std::string &a_path) |
|
bool | env_append (const std::string &a_env, const std::string &a_sep, const std::vector< std::string > &a_vals) |
|
bool | env_path_append (const std::string &a_env, const std::vector< std::string > &a_paths) |
|
bool | env_append_path (const std::string &a_env, const std::string &a_path) |
|
bool | is_little_endian () |
|
const char * | os () |
|
bool | _WIN32_defined () |
|
const char * | processor () |
|
const char * | compiler_name () |
|
void | compiler (char a_s[128]) |
|
bool | to_pointer (const std::string &a_string, void *&a_value) |
|
bool | to_pointer (const char *a_string, void *&a_value) |
|
bool | p2s (const void *a_value, std::string &a_s) |
|
bool | p2sx (const void *a_value, std::string &a_s) |
|
bool | put_env (const std::string &a_env, const std::string &a_value) |
|
bool | rm_env (const std::string &a_env) |
|
bool | rcmp (const char *a_1, const char *a_2) |
|
bool | rcmp (const std::string &a_1, const char *a_2) |
|
bool | rcmp (const char *a_1, const std::string &a_2) |
|
bool | rcmp (const std::string &a_1, const std::string &a_2) |
|
template<class T > |
bool | realloc (T *&a_pointer, size_t a_new_size, size_t a_old_size, bool a_init=false) |
|
bool | s2time (const std::string &a_string, time_t &a_time) |
|
bool | time2s (std::string &a_s) |
|
template<class FROM , class TO > |
TO * | safe_cast (FROM &a_o) |
|
template<class FROM , class TO > |
const TO * | safe_cast (const FROM &a_o) |
|
template<class FROM , class TO > |
TO * | id_cast (FROM &a_o) |
|
template<class FROM , class TO > |
const TO * | id_cast (const FROM &a_o) |
|
std::string | gui_toolkit (args &a_args, bool a_rm_in_args) |
|
bool | window_size_from_args (const args &a_args, unsigned int &a_ww, unsigned int &a_wh) |
|
void | remove_window_size_args (args &a_args) |
|
bool | is_beg (const std::string &a_s, const std::string &a_b, bool a_forward=true) |
|
bool | is_beg (const std::string &a_s, const std::string &a_b, std::string &a_cmd, bool a_forward=true) |
|
template<class TO > |
void * | cmp_cast (const TO *a_this, const std::string &a_class) |
|
template<class TO > |
void * | cmp_cast (const TO *a_this, cid a_id) |
|
bool | belong (const std::string &a_string, char a_c) |
|
size_t | numchar (const std::string &a_string, char a_c) |
|
bool | is_spaces (const std::string &a_string) |
|
const std::string & | sep () |
|
const std::string & | psep () |
|
const std::string & | res_sep () |
|
void | serrno (std::string &a_s) |
|
bool | mnmx (std::ostream &a_out, sg::node &a_node, vec3f &a_mn, vec3f &a_mx) |
|
bool | center_adjust (std::ostream &a_out, sg::node &a_node, sg::matrix &a_tsf, unsigned int a_ww, unsigned int a_wh, float a_height, float &a_dx, float &a_dy, float &a_dz, bool a_verbose=true) |
|
bool | center_adjust (std::ostream &a_out, sg::node &a_node, sg::matrix &a_tsf, unsigned int a_ww, unsigned int a_wh, float a_height, bool a_verbose=true) |
|
bool | match (const std::string &a_string, const std::string &a_pattern, bool a_check_for_wilds=true) |
|
bool | match2 (const std::string &a_string, const std::string &a_pattern) |
|
void | filter (std::vector< std::string > &a_v, const std::string &a_pattern, bool a_check_for_wilds=true) |
|
const std::string & | s_partial_derivative () |
|
int | vsnpf (char *a_s, size_t a_n, const char *a_fmt, va_list args) |
|
int | snpf (char *a_s, size_t a_n, const char *a_fmt,...) |
|
template<class T > |
bool | snums (const std::string &a_string, std::istringstream &a_iss, std::vector< std::string > &a_tmp, const std::string &a_sep, std::vector< T > &a_values, bool a_clear=true) |
|
template<class T > |
bool | snums (const std::string &a_string, const std::string &a_sep, std::vector< T > &a_values, bool a_clear=true) |
|
bool | vsprintf (std::string &a_string, int a_length, const char *a_format, va_list a_args) |
|
bool | sprintf (std::string &a_string, int a_length, const char *a_format,...) |
|
bool | print2sv (std::string &a_string, int a_length, const char *a_format, va_list a_args) |
|
bool | print2s (std::string &a_string, int a_length, const char *a_format,...) |
|
template<class MATRIX > |
void | set_matrix (MATRIX &a_matrix, const std::string &a_fmt) |
|
void | replace (std::string &a_string, char a_old, char a_new) |
|
bool | replace (std::string &a_string, const std::string &a_old, const std::string &a_new) |
|
bool | replace_ (std::string &a_string, const std::string &a_old, const std::string &a_new) |
|
bool | replace (std::vector< std::string > &a_strings, const std::string &a_old, const std::string &a_new) |
|
void | toxml (std::string &a_string) |
|
std::string | to_xml (const std::string &a_string) |
|
void | to_win (std::string &a_string) |
|
void | to_win_python (std::string &a_string) |
|
int | std_system (std::ostream &a_out, const std::string &a_string) |
|
bool | to (const std::string &a_string, bool &a_value, bool a_def=false) |
|
bool | tob (const std::string &a_string, bool &a_value, bool a_def=false) |
|
template<class T > |
bool | to (const std::string &a_s, T &a_v, const T &a_def=T()) |
|
template<class T > |
bool | to (T &a_field, const std::string &a_s, bool &a_changed) |
|
template<class T > |
bool | to (std::ostream &a_out, const std::string &a_string, T &a_value) |
|
bool | to (std::ostream &a_out, const std::string &a_string, bool &a_value) |
|
bool | to_size_t (const std::string &a_string, size_t &a_value, const size_t &a_def=0) |
|
bool | strip (std::string &a_string, what a_type=both, char a_char=' ') |
|
bool | strip (std::vector< std::string > &a_strings, what a_type=both, char a_char=' ') |
|
const std::string & | stype (unsigned char) |
|
const std::string & | stype (char) |
|
const std::string & | stype (unsigned short) |
|
const std::string & | stype (short) |
|
const std::string & | stype (int) |
|
const std::string & | stype (unsigned int) |
|
const std::string & | stype (float) |
|
const std::string & | stype (double) |
|
const std::string & | stype (bool) |
|
const std::string & | stype (int64) |
|
const std::string & | stype (uint64) |
|
const std::string & | stype (const std::string &) |
|
template<class T > |
const std::string & | stype (const T &) |
|
bool | stemplate (const std::string &a_s, std::string &a_inc) |
|
const std::string & | stype (const std::vector< std::string > &) |
|
template<class T > |
bool | values (const std::string &a_string, const std::string &a_sep, bool a_take_empty, std::vector< T > &a_values) |
|
int | process_id () |
|
bool | equal (std::ostream &a_out, const char *a_file, int a_line, const std::string &a_v, const std::string &a_expected) |
|
bool | equal (std::ostream &a_out, const char *a_file, int a_line, bool a_v, bool a_expected) |
|
template<class CLASS > |
bool | valid_pointer (std::ostream &a_out, const char *a_file, int a_line, CLASS *a_p) |
|
template<class INTEGER > |
bool | equal (std::ostream &a_out, const char *a_file, int a_line, const INTEGER &a_v, const INTEGER &a_expected) |
|
template<class INTEGER > |
bool | not_equal (std::ostream &a_out, const char *a_file, int a_line, const INTEGER &a_v, const INTEGER &a_expected) |
|
template<class INTEGER > |
bool | ge (std::ostream &a_out, const char *a_file, int a_line, const INTEGER &a_v, const INTEGER &a_expected) |
|
template<class REAL > |
bool | equal (std::ostream &a_out, const char *a_file, int a_line, const REAL &a_v, const REAL &a_expected, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &)) |
|
template<class REAL > |
bool | not_equal (std::ostream &a_out, const char *a_file, int a_line, const REAL &a_v, const REAL &a_expected, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &)) |
|
template<class NUMBER , class PREC > |
bool | _equal (std::ostream &a_out, const char *a_file, int a_line, const NUMBER &a_v, const NUMBER &a_expected, const PREC &a_tolerance, PREC(*a_fabs)(const NUMBER &)) |
|
template<class REAL > |
bool | equal (std::ostream &a_out, const char *a_file, int a_line, size_t a_size, const REAL *a_v, const REAL *a_expected, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &)) |
|
template<class VEC , class REAL > |
bool | equal (std::ostream &a_out, const char *a_file, int a_line, const VEC &a_1, const VEC &a_2, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &)) |
|
template<class MAT , class REAL > |
bool | mat_equal (std::ostream &a_out, const char *a_file, int a_line, const MAT &a_1, const MAT &a_2, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &)) |
|
bool | equal (std::ostream &a_out, const char *a_file, int a_line, const std::vector< std::string > &a_v, const std::vector< std::string > &a_expected) |
|
std::string | tos (unsigned char a_value) |
|
std::string | tos (char a_value) |
|
std::string | tos (unsigned short a_value) |
|
std::string | tos (short a_value) |
|
std::string | tos (unsigned int a_value) |
|
std::string | tosx (unsigned int a_value) |
|
std::string | tos (int a_value) |
|
std::string | tos (uint64 a_value) |
|
std::string | tos (int64 a_value) |
|
std::string | tos (float a_value) |
|
std::string | tos (double a_value) |
|
std::string | tos (bool a_value) |
|
std::string | tos (const std::string &a_value) |
|
template<class T > |
std::string | tos (const std::vector< T > &a_vals, const std::string &a_sep="\n", bool a_sep_at_end=false) |
|
std::string | tos (unsigned int a_linen, const char *a_lines[]) |
|
void | toss (const char *a_from, char a_s[], unsigned int &a_l) |
|
template<class T > |
void | tosu (T a_i, char a_s[], unsigned int &a_l) |
|
void | tolowercase (std::string &a_string) |
|
void | touppercase (std::string &a_string) |
|
const char * | int32_format () |
|
const char * | int64_format () |
|
const char * | uint32_format () |
|
const char * | uint64_format () |
|
const char * | upointer_format () |
|
const char * | upointer_format_x () |
|
uint32 | uint32_mx () |
|
uint64 | uint64_mx () |
|
unsigned int | size_char () |
|
unsigned int | size_short () |
|
unsigned int | size_int () |
|
unsigned int | size_int64 () |
|
unsigned int | size_float () |
|
unsigned int | size_double () |
|
const char * | type_format (float) |
|
const char * | type_format (double) |
|
const char * | type_format (char) |
|
const char * | type_format (short) |
|
const char * | type_format (int) |
|
const char * | type_format (int64) |
|
const char * | type_format (unsigned char) |
|
const char * | type_format (unsigned short) |
|
const char * | type_format (unsigned int) |
|
const char * | type_format (uint64) |
|
template<class T > |
const T * | vec_data (const std::vector< T > &a_vec) |
|
template<class T > |
T * | vec_data (std::vector< T > &a_vec) |
|
void | tools_vdata_check_compile () |
|
unsigned int | version () |
|
template<class T > |
T * | find_named (const std::vector< T * > &a_vec, const std::string &a_name) |
|
template<class T > |
const T * | find_obj_named (const std::vector< T > &a_vec, const std::string &a_name) |
|
template<class T > |
T * | find_obj_named (std::vector< T > &a_vec, const std::string &a_name) |
|
template<class T > |
T * | find_named_case_insensitive (const std::vector< T * > &a_vec, const std::string &a_name) |
|
template<class T > |
void | safe_clear (std::vector< T * > &a_vec) |
| T* : /////////////////////////////////////////////////. More...
|
|
template<class T > |
void | safe_reverse_clear (std::vector< T * > &a_vec) |
|
template<class T > |
void | raw_clear (std::vector< T * > &a_vec) |
|
template<class T > |
void | copy (std::vector< T * > &a_to, const std::vector< T * > &a_from) |
|
template<class T > |
void | vcopy (std::vector< T * > &a_to, const std::vector< T * > &a_from) |
|
template<class T > |
void | append (std::vector< T > &a_vec, const std::vector< T > &a_from) |
|
template<class T > |
void | append (std::vector< T > &a_vec, typename std::vector< T >::size_type a_num, const T *a_from) |
|
template<class T > |
void | removep (std::vector< T * > &a_vec, const T *a_elem) |
|
template<class T > |
bool | is_inp (const std::vector< T * > &a_vec, const T *a_item) |
|
template<class T > |
void | push_back_unique (std::vector< T > &a_vec, const T &a_v) |
| T : ////////////////////////////////////////////////////////////////////. More...
|
|
template<class T > |
bool | remove (std::vector< T > &a_vals, const T &a_elem) |
|
template<class T > |
void | vfilter (std::vector< T > &a_vals, bool(*a_filter_func)(const T &a_elem)) |
|
template<class T > |
void | unique (std::vector< T > &a_vec) |
|
template<class T > |
bool | is_in (const std::vector< T > &a_vec, const T &a_item) |
|
template<class T > |
bool | item_index (const std::vector< T > &a_vec, const T &a_item, unsigned int &a_index) |
|
template<class T > |
bool | belong (const std::vector< T > &a_vec, const T &a_item) |
|
template<class T > |
bool | minimum (const std::vector< T > &a_vec, T &a_value) |
|
template<class T > |
bool | maximum (const std::vector< T > &a_vec, T &a_value) |
|
template<class T > |
T | sum (const std::vector< T > &a_vec) |
|
template<class T > |
void | filter (std::vector< T > &a_vec, unsigned int a_min, unsigned int a_max) |
|
template<class T > |
void | steps (std::vector< T > &a_vec, unsigned int a_number) |
|
template<class T > |
bool | add (std::vector< T > &a_vec, const std::vector< T > &a_v) |
|
template<class T > |
bool | vequ (const std::vector< T > &a_vec, const std::vector< T > &a_v) |
|
template<class T > |
bool | vadd (std::vector< T > &a_vec, const std::vector< T > &a_v) |
|
template<class T > |
bool | sub (std::vector< T > &a_vec, const std::vector< T > &a_v) |
|
template<class T > |
bool | div (std::vector< T > &a_vec, const std::vector< T > &a_v) |
|
template<class T > |
void | add (std::vector< T > &a_vec, const T &a_v) |
|
template<class T > |
void | sub (std::vector< T > &a_vec, const T &a_v) |
|
template<class T > |
void | mul (std::vector< T > &a_vec, const T &a_v) |
|
template<class T > |
bool | vmul (std::vector< T > &a_vec, const std::vector< T > &a_v) |
|
template<class T > |
void | div (std::vector< T > &a_vec, const T &a_v) |
|
template<class FROM , class TO > |
void | convert (const std::vector< FROM > &a_from, std::vector< TO > &a_to) |
|
template<class T > |
bool | min_max (const std::vector< T > &a_vec, T &a_min, T &a_max) |
|
template<class T > |
bool | mean_rms (const std::vector< T > &a_vec, T &a_mean, T &a_rms, T(*a_sqrt)(T), T(*a_fabs)(T)) |
| T(*a_fabs)(T) : ///////////////////////////////////////////////////////////////////////////////////////////. More...
|
|
template<class T > |
bool | min_max_mean_rms (const std::vector< T > &a_vec, T &a_min, T &a_max, T &a_mean, T &a_rms, T(*a_sqrt)(T), T(*a_fabs)(T)) |
|
template<class T > |
bool | mean_rms (const std::vector< T > &a_vec, T &a_mean, T &a_rms, T(*a_sqrt)(const T &), T(*a_fabs)(const T &)) |
| T(*a_fabs)(const T&) : ///////////////////////////////////////////////////////////////////////////////////////////. More...
|
|
template<class T > |
bool | min_max_mean_rms (const std::vector< T > &a_vec, T &a_min, T &a_max, T &a_mean, T &a_rms, T(*a_sqrt)(const T &), T(*a_fabs)(const T &)) |
|
template<class T > |
void | dump (const std::vector< T > &a_vec, std::ostream &a_out) |
|
template<class K , class V > |
void | add (std::vector< std::pair< K, V > > &a_vec, const K &a_key, const V &a_value) |
|
template<class K , class V > |
bool | find (const std::vector< std::pair< K, V > > &a_vec, const K &a_key, V &a_value) |
|
template<class K , class V > |
bool | rfind (const std::vector< std::pair< K, V > > &a_vec, const K &a_key, V &a_value) |
|
template<class K , class V > |
bool | is_key (const std::vector< std::pair< K, V > > &a_vec, const K &a_key) |
|
template<class K , class V > |
bool | find_key (const std::vector< std::pair< K, V > > &a_vec, const V &a_value, K &a_key) |
|
template<class K , class V > |
void | sort_by_second (std::vector< std::pair< K, V > > &a_vec) |
|
template<class K , class V > |
bool | remove (std::vector< std::pair< K, V > > &a_vec, const K &a_key) |
|
template<class K , class V > |
bool | remove (std::vector< std::pair< K, V > > &a_vec, const K &a_key, bool a_delete) |
|
void | words (const std::string &a_string, const std::string &a_sep, bool a_take_empty, std::vector< std::string > &a_words, bool a_clear=true) |
|
void | words (const std::string &a_string, const std::string &a_sep, bool a_take_empty, unsigned int &a_wn, std::string::size_type a_wps[], std::string::size_type a_wls[]) |
|
bool | compress_buffer (std::ostream &a_out, unsigned int a_level, unsigned int a_srcsize, const char *a_src, unsigned int a_tgtsize, char *a_tgt, unsigned int &a_irep) |
|
bool | decompress_buffer (std::ostream &a_out, unsigned int a_srcsize, const char *a_src, unsigned int a_tgtsize, char *a_tgt, unsigned int &a_irep) |
|
int | gunzip_get_byte (char *&a_buffer) |
|
int | gunzip_check_header (char *&a_buffer) |
|
bool | gunzip_buffer (std::ostream &a_out, unsigned int a_srcsize, const char *a_src, unsigned int a_tgtsize, char *a_tgt, unsigned int &a_irep) |
|