Class find_constants (o2scl)¶
-
class
o2scl
::
find_constants
¶ Find constant values which match a search term.
Return values for find_nothrow()
-
typedef struct o2scl::find_constants::find_constants_list_s
find_constants_list
¶ Type for constant database (also used for list of matches)
-
const int
one_exact_match_unit_match
= 0¶
-
const int
one_exact_match_unit_diff
= 1¶
-
const int
exact_matches_no_unit
= 2¶
-
const int
exact_matches_unit_match
= 3¶
-
const int
exact_matches_unit_diff
= 4¶
-
const int
one_pattern_match_unit_match
= 5¶
-
const int
one_pattern_match_unit_diff
= 6¶
-
const int
pattern_matches_no_unit
= 7¶
-
const int
pattern_matches_unit_match
= 8¶
-
const int
pattern_matches_unit_diff
= 9¶
-
const int
no_matches
= 10¶
-
std::vector<find_constants_list>
list
¶ Database of constant values.
-
find_constants
()¶
-
int
find_nothrow
(std::string name, std::string unit, std::vector<find_constants_list> &matches, int verbose = 0)¶ Search for constants matching
name
with unitunit
(possibly empty) and store matches inindexes
.
-
void
find_print
(std::string name, std::string unit = "", size_t prec = 6, int verbose = 0)¶ Search for constants matching
name
with unitunit
and output result(s) with precisionprec
.
-
double
find_unique
(std::string name, std::string unit = "")¶ Find a unique match and return the numerical value.
-
struct
find_constants_list_s
¶ Type for constant database (also used for list of matches)
-
typedef struct o2scl::find_constants::find_constants_list_s