#include "../derived_units/physics_units.hpp"
#include "../units/base_units.hpp"
#include "../util/types.hpp"
#include "./coordinates_2d.hpp"
#include "./coordinates_3d.hpp"
#include <iostream>
#include <string>
#include <vector>
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 coordinates_nd< T > &x) |
|
string | scifir::to_string (const coordinates_nd< float > &x) |
|
template<typename T , typename U > |
T | scifir::distance (const coordinates_nd< T > &x, const coordinates_nd< U > &y) |
|
float | scifir::distance (const coordinates_nd< float > &x, const coordinates_nd< float > &y) |
|
template<typename T , typename U > |
bool | operator== (const scifir::coordinates_nd< T > &x, const scifir::coordinates_nd< U > &y) |
|
template<typename T , typename U > |
bool | operator!= (const scifir::coordinates_nd< T > &x, const scifir::coordinates_nd< U > &y) |
|
template<typename T > |
bool | operator== (const scifir::coordinates_nd< T > &x, const string &init_coordinates_nd) |
|
template<typename T > |
bool | operator!= (const scifir::coordinates_nd< T > &x, const string &init_coordinates_nd) |
|
template<typename T > |
bool | operator== (const string &init_coordinates_nd, const scifir::coordinates_nd< T > &x) |
|
template<typename T > |
bool | operator!= (const string &init_coordinates_nd, const scifir::coordinates_nd< T > &x) |
|
template<typename T > |
void | operator+= (string &x, const scifir::coordinates_nd< T > &y) |
|
template<typename T > |
string | operator+ (const string &x, const scifir::coordinates_nd< T > &y) |
|
template<typename T > |
string | operator+ (const scifir::coordinates_nd< T > &x, const string &y) |
|
template<typename T > |
ostream & | operator<< (ostream &os, const scifir::coordinates_nd< T > &x) |
|
ostream & | operator<< (ostream &os, const scifir::coordinates_nd< float > &x) |
|
template<typename T > |
istream & | operator>> (istream &is, scifir::coordinates_nd< T > &x) |
|
◆ operator!=() [1/3]
template<typename T , typename U >
◆ operator!=() [2/3]
◆ operator!=() [3/3]
◆ operator+() [1/2]
Definition at line 1245 of file coordinates_nd.hpp.
1246{
1248}
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<<() [1/2]
◆ operator<<() [2/2]
◆ operator==() [1/3]
template<typename T , typename U >
Definition at line 1181 of file coordinates_nd.hpp.
1182{
1183 if (x.values.size() == y.values.size())
1184 {
1185 for (int i = 0; i < x.values.size(); i++)
1186 {
1187 if (x.values[i] != y.values[i])
1188 {
1189 return false;
1190 }
1191 }
1192 return true;
1193 }
1194 else
1195 {
1196 return false;
1197 }
1198}
◆ operator==() [2/3]
◆ operator==() [3/3]
◆ operator>>()
Definition at line 1259 of file coordinates_nd.hpp.
1260{
1261 char a[256];
1262 is.getline(a, 256);
1263 string b(a);
1264 boost::trim(b);
1266 return is;
1267}