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
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
address.hpp File Reference
#include "./zid.hpp"
#include <cstdint>
#include <sstream>
#include <string>
Include dependency graph for address.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  scifir::address
 

Namespaces

namespace  scifir
 The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
 

Functions

bool operator== (const scifir::address &x, const scifir::address &y)
 
bool operator!= (const scifir::address &x, const scifir::address &y)
 
ostream & operator<< (ostream &os, const scifir::address &x)
 

Function Documentation

◆ operator!=()

bool operator!= ( const scifir::address x,
const scifir::address y 
)

Definition at line 88 of file address.cpp.

89{
90 return !(x == y);
91}

◆ operator<<()

ostream & operator<< ( ostream &  os,
const scifir::address x 
)

Definition at line 93 of file address.cpp.

94{
95 return os << x.display();
96}
string display() const
Definition address.cpp:49

◆ operator==()

bool operator== ( const scifir::address x,
const scifir::address y 
)

Definition at line 76 of file address.cpp.

77{
78 if(x.zid == y.zid and x.location == y.location and x.postal_code == y.postal_code and x.inner_location == y.inner_location)
79 {
80 return true;
81 }
82 else
83 {
84 return false;
85 }
86}
string inner_location
Definition address.hpp:35
string location
Definition address.hpp:34
string postal_code
Definition address.hpp:36
scifir::zid zid
Definition address.hpp:33