26 #ifndef ANTIOCH_IN_SI_H
27 #define ANTIOCH_IN_SI_H
48 InSI(
int i0=0,
int i1=0,
int i2=0,
int i3=0,
int i4=0,
int i5=0,
int i6=0,
int i7=0):
55 << rhs.
get_m() <<
"(m),"
57 << rhs.
get_s() <<
"(s),"
58 << rhs.
get_A() <<
"(A),"
59 << rhs.
get_K() <<
"(K),"
141 return (!(*
this == rhs));
147 if(
this == &rhs){
return *
this;}
272 return (
InSI(*
this) /= rhs);
int get_m() const
meter power getter
bool operator!=(const InSI &rhs) const
Not bool const operator==(const InSI&)
bool operator==(const InSI &rhs) const
Bool equalize operator, true if all the powers are equal.
InSI operator/(int rhs) const
Dividing operator, see InSi & operator/=(int) for details.
friend std::ostream & operator<<(std::ostream &out, const InSI &rhs)
<< operator, to format the power vector
InSI & operator/=(int rhs)
Dividing operator.
int get_rad() const
radian power getter
InSI & operator-=(const InSI &rhs)
Substracting operator, substract all the powers.
InSI operator-(const InSI &rhs) const
Substracting operator, substract all the powers.
InSI(int i0=0, int i1=0, int i2=0, int i3=0, int i4=0, int i5=0, int i6=0, int i7=0)
Building constructor, fully descriptive, with zeros as default values to simplify coder's interface...
int get_mol() const
mol power getter
int get_s() const
second power getter
int get_kg() const
kilogramme power getter
#define antioch_unit_error(description)
void clear()
Set all the powers to zeros.
InSI operator*(int rhs) const
Multiplying operator, multiply all the powers.
int get_A() const
ampere power getter
Seven integers to characterize the power vector.
int get_K() const
kelvin power getter
InSI operator+(const InSI &rhs) const
Adding operator, add all the powers.
InSI & operator*=(int rhs)
Multiplying operator, multiply all the powers.
int get_cd() const
candela power getter
bool empty() const
Check if empty (all values to zero)
InSI & operator=(const InSI &rhs)
Assignement operator, equalize all the powers.
The parameters are reduced parameters.
InSI & operator+=(const InSI &rhs)
Adding operator, add all the powers.