|
scifir-units 2.0.0
scifir-units is a library of units of measurement, angles, coordinates, fields, and related data, all lightweight, that help in the development of scientific software and scientific machines
|
#include <cstdint>#include <iostream>#include <map>#include <string>

Go to the source code of this file.
Classes | |
| class | scifir::prefix |
| Class that represents prefixes of the SI system of units. Each prefix sizes 1 byte. The prefix micro is added to a dimension with the symbol ยต. More... | |
Namespaces | |
| namespace | scifir |
| The namespace scifir contains all scifir-units, excepting the string literals, which are outside. | |
Functions | |
| prefix::type | scifir::prefix_string (const string &x) |
| Returns the value of the enum prefix::type associated with the string x given. | |
| prefix | scifir::closest_prefix (const prefix &actual_prefix, int actual_scale) |
| Returns the closes prefix related to the scale of the current value. It is used when displaying a scalar_unit to the most close prefix available. | |
| prefix | scifir::create_prefix_by_factor (int factor) |
| Creates the prefix of the factor given, which is always between a range. | |
| bool | operator== (const scifir::prefix &x, const scifir::prefix &y) |
| Comparison operator. Compares if two prefixes are the same, that's, if they have the same prefix::type. | |
| bool | operator!= (const scifir::prefix &x, const scifir::prefix &y) |
| Comparison operator. Compares if two prefixes are different, that's, if they don't have the same prefix::type. | |
| bool | operator<= (const scifir::prefix &x, const scifir::prefix &y) |
| Checks if prefix x is of a lower or equal factor than prefix y. | |
| bool | operator> (const scifir::prefix &x, const scifir::prefix &y) |
| Checks if prefix x is of a greather factor than prefix y. | |
| bool | operator>= (const scifir::prefix &x, const scifir::prefix &y) |
| Checks if prefix x is of an equal or greather factor than prefix y. | |
| ostream & | operator<< (ostream &os, const scifir::prefix &x) |
| Adds the string representation of the prefix x to an output stream. | |
| bool operator!= | ( | const scifir::prefix & | x, |
| const scifir::prefix & | y | ||
| ) |
Comparison operator. Compares if two prefixes are different, that's, if they don't have the same prefix::type.
Definition at line 441 of file prefix.cpp.
| ostream & operator<< | ( | ostream & | os, |
| const scifir::prefix & | x | ||
| ) |
Adds the string representation of the prefix x to an output stream.
Definition at line 461 of file prefix.cpp.
| bool operator<= | ( | const scifir::prefix & | x, |
| const scifir::prefix & | y | ||
| ) |
Checks if prefix x is of a lower or equal factor than prefix y.
Definition at line 446 of file prefix.cpp.
| bool operator== | ( | const scifir::prefix & | x, |
| const scifir::prefix & | y | ||
| ) |
Comparison operator. Compares if two prefixes are the same, that's, if they have the same prefix::type.
Definition at line 436 of file prefix.cpp.
| bool operator> | ( | const scifir::prefix & | x, |
| const scifir::prefix & | y | ||
| ) |
Checks if prefix x is of a greather factor than prefix y.
Definition at line 451 of file prefix.cpp.
| bool operator>= | ( | const scifir::prefix & | x, |
| const scifir::prefix & | y | ||
| ) |
Checks if prefix x is of an equal or greather factor than prefix y.
Definition at line 456 of file prefix.cpp.