Claw
1.7.3
|
Implementation of the claw::real_number class. More...
#include <cmath>
Go to the source code of this file.
Functions | |
template<typename T > | |
claw::real_number< T > | operator- (const claw::real_number< T > &self) |
Get the opposite value of a number. | |
template<typename T > | |
claw::real_number< T > | operator- (T v, const claw::real_number< T > &self) |
Subtract a number to an other value. | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const claw::real_number< T > &self) |
Output a number in a stream. | |
template<typename T > | |
std::istream & | operator>> (std::istream &is, claw::real_number< T > &self) |
Read a number from a stream. |
Implementation of the claw::real_number class.
Definition in file real_number.tpp.
claw::real_number<T> operator- | ( | const claw::real_number< T > & | self | ) |
Get the opposite value of a number.
self | The number. |
Definition at line 303 of file real_number.tpp.
claw::real_number<T> operator- | ( | T | v, |
const claw::real_number< T > & | self | ||
) |
Subtract a number to an other value.
v | The other value. |
self | The number. |
Definition at line 315 of file real_number.tpp.
std::ostream& operator<< | ( | std::ostream & | os, |
const claw::real_number< T > & | self | ||
) |
Output a number in a stream.
os | The stream in which the value is written. |
self | The number. |
Definition at line 327 of file real_number.tpp.
References claw::real_number< T >::output().
std::istream & operator>> | ( | std::istream & | is, |
claw::real_number< T > & | self | ||
) |
Read a number from a stream.
is | The stream from which the value is read. |
self | The number. |
Definition at line 339 of file real_number.tpp.