#include "../util/is_number.hpp"
#include "../util/types.hpp"
#include "../units/scalar_unit.hpp"
#include "boost/algorithm/string.hpp"
#include <cmath>
#include <iostream>
#include <string>
Go to the source code of this file.
|
namespace | scifir |
| The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
|
|
|
template<typename T > |
string | scifir::to_string (const lab_number< T > &x) |
|
bool | scifir::is_lab_number (const string &init_lab_number) |
|
template<typename T , typename U > |
bool | operator== (const scifir::lab_number< T > &x, const scifir::lab_number< U > &y) |
|
template<typename T , typename U > |
bool | operator!= (const scifir::lab_number< T > &x, const scifir::lab_number< U > &y) |
|
template<typename T > |
bool | operator== (const scifir::lab_number< T > &x, const string &init_lab_number) |
|
template<typename T > |
bool | operator!= (const scifir::lab_number< T > &x, const string &init_lab_number) |
|
template<typename T > |
bool | operator== (const string &init_lab_number, const scifir::lab_number< T > &x) |
|
template<typename T > |
bool | operator!= (const string &init_lab_number, const scifir::lab_number< T > &x) |
|
template<typename T > |
void | operator+= (string &x, const scifir::lab_number< T > &y) |
|
template<typename T > |
string | operator+ (const string &x, const scifir::lab_number< T > &y) |
|
template<typename T > |
string | operator+ (const scifir::lab_number< T > &x, const string &y) |
|
template<typename T > |
ostream & | operator<< (ostream &os, const scifir::lab_number< T > &x) |
|
template<typename T > |
istream & | operator>> (istream &is, scifir::lab_number< T > &x) |
|
◆ operator!=() [1/3]
template<typename T , typename U >
◆ operator!=() [2/3]
Definition at line 149 of file lab_number.hpp.
150{
151 return !(x == init_lab_number);
152}
◆ operator!=() [3/3]
Definition at line 162 of file lab_number.hpp.
163{
164 return !(init_lab_number == x);
165}
◆ operator+() [1/2]
Definition at line 180 of file lab_number.hpp.
181{
183}
string to_string(const aid &x)
Creates a string representation of aid, it's for aid equivalent to the display() function of aid.
◆ operator+() [2/2]
◆ operator+=()
◆ operator<<()
◆ operator==() [1/3]
template<typename T , typename U >
Definition at line 123 of file lab_number.hpp.
124{
125 if (x.value == y.value and x.error_value == y.error_value)
126 {
127 return true;
128 }
129 else
130 {
131 return false;
132 }
133}
◆ operator==() [2/3]
◆ operator==() [3/3]
◆ operator>>()
Definition at line 192 of file lab_number.hpp.
193{
194 char a[256];
195 is.getline(a, 256);
196 string b(a);
198 return is;
199}