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
|
Go to the source code of this file.
Classes | |
class | scifir::zid |
Class that allows to store information about a zone, including the astronomical object inside which the zone is. The zone can be in any astronomical object, not only the Earth is supported. Initialization string example: "(P) universe:milky-way:solar-system:earth (Z) chile:region-metropolitana:santiago:providencia". More... | |
Namespaces | |
namespace | scifir |
The namespace scifir contains all scifir-units, excepting the string literals, which are outside. | |
Functions | |
string | scifir::to_string (const zid &x) |
Returns a string representation of zid, same as display(). | |
string | scifir::to_string (const zid::type &x) |
Converts a value of the enum zid::type to its string representation, which is a single letter. The value COUNTRY returns C. The value REGION returns R. The value SETTLEMENT returns S. The value ZONE returns Z. | |
zid::type | scifir::create_zone_type (const string &zone_type_abbreviation) |
Creates an instance of a zid::type with the given string, which is the reverse as the to_string() function of zid::type. | |
bool | operator== (const scifir::zid &x, const scifir::zid &y) |
Returns true if the type and all data are the same between x and y. | |
bool | operator!= (const scifir::zid &x, const scifir::zid &y) |
Returns true if the type or any data is different between x and y. | |
bool | operator== (const scifir::zid &x, const string &init_zid_full) |
Returns true if x and the zid constructed with init_zid_full are equal. | |
bool | operator!= (const scifir::zid &x, const string &init_zid_full) |
Returns true if x and the zid constructed with init_zid_full are different. | |
bool | operator== (const string &init_zid_full, const scifir::zid &x) |
Returns true if x and the zid constructed with init_zid_full are equal. | |
bool | operator!= (const string &init_zid_full, const scifir::zid &x) |
Returns true if x and the zid constructed with init_zid_full are different. | |
void | operator+= (string &x, const scifir::zid &y) |
Concatenates the string representation of zid y to the string x. | |
string | operator+ (const string &x, const scifir::zid &y) |
Concatenates x with the string representation of zid y. | |
string | operator+ (const scifir::zid &y, const string &x) |
Concatenates x with the string representation of zid y. | |
ostream & | operator<< (ostream &os, const scifir::zid &x) |
Adds the string representation of the zid x to an output stream os. | |
istream & | operator>> (istream &is, scifir::zid &x) |
Allows that an istream initializes by string a zid x. | |
bool operator!= | ( | const scifir::zid & | x, |
const scifir::zid & | y | ||
) |
bool operator!= | ( | const scifir::zid & | x, |
const string & | init_zid_full | ||
) |
bool operator!= | ( | const string & | init_zid_full, |
const scifir::zid & | x | ||
) |
string operator+ | ( | const scifir::zid & | y, |
const string & | x | ||
) |
string operator+ | ( | const string & | x, |
const scifir::zid & | y | ||
) |
void operator+= | ( | string & | x, |
const scifir::zid & | y | ||
) |
ostream & operator<< | ( | ostream & | os, |
const scifir::zid & | x | ||
) |
Adds the string representation of the zid x to an output stream os.
Definition at line 419 of file zid.cpp.
bool operator== | ( | const scifir::zid & | x, |
const scifir::zid & | y | ||
) |
Returns true if the type and all data are the same between x and y.
Definition at line 336 of file zid.cpp.
bool operator== | ( | const scifir::zid & | x, |
const string & | init_zid_full | ||
) |
Returns true if x and the zid constructed with init_zid_full are equal.
Definition at line 374 of file zid.cpp.
bool operator== | ( | const string & | init_zid_full, |
const scifir::zid & | x | ||
) |
Returns true if x and the zid constructed with init_zid_full are equal.
istream & operator>> | ( | istream & | is, |
scifir::zid & | x | ||
) |
Allows that an istream initializes by string a zid x.
Definition at line 424 of file zid.cpp.