Single benchmark unit.
More...
#include <Session.h>
Single benchmark unit.
- Todo:
- better name
Definition at line 118 of file Session.h.
◆ Unit() [1/3]
Unit::Unit |
( |
const std::string & |
name, |
|
|
const Function |
func |
|
) |
| |
|
inline |
◆ Unit() [2/3]
◆ Unit() [3/3]
Creates a unit, given its value, dimensions and a unit system in which the value is expressed.
Definition at line 247 of file Units.h.
◆ dimension()
◆ dimensionless()
static Unit Unit::dimensionless |
( |
const Float |
value | ) |
|
|
inlinestatic |
◆ getName()
const std::string& Unit::getName |
( |
| ) |
const |
|
inline |
◆ kilogram()
static Unit Unit::kilogram |
( |
const Float |
value | ) |
|
|
inlinestatic |
◆ meter()
◆ operator!=()
bool Unit::operator!= |
( |
const Unit & |
other | ) |
const |
|
inline |
◆ operator*=() [1/2]
◆ operator*=() [2/2]
Unit& Unit::operator*= |
( |
const Unit & |
other | ) |
|
|
inline |
◆ operator+=()
Unit& Unit::operator+= |
( |
const Unit & |
other | ) |
|
|
inline |
Arithmetics.
Definition at line 264 of file Units.h.
◆ operator-()
Unit Unit::operator- |
( |
| ) |
const |
|
inline |
◆ operator-=()
Unit& Unit::operator-= |
( |
const Unit & |
other | ) |
|
|
inline |
◆ operator/=()
Unit& Unit::operator/= |
( |
const Unit & |
other | ) |
|
|
inline |
◆ operator<()
bool Unit::operator< |
( |
const Unit & |
other | ) |
const |
|
inline |
◆ operator<=()
bool Unit::operator<= |
( |
const Unit & |
other | ) |
const |
|
inline |
◆ operator==()
bool Unit::operator== |
( |
const Unit & |
other | ) |
const |
|
inline |
◆ operator>()
bool Unit::operator> |
( |
const Unit & |
other | ) |
const |
|
inline |
◆ operator>=()
bool Unit::operator>= |
( |
const Unit & |
other | ) |
const |
|
inline |
◆ radian()
static Unit Unit::radian |
( |
const Float |
value | ) |
|
|
inlinestatic |
◆ run()
◆ second()
static Unit Unit::second |
( |
const Float |
value | ) |
|
|
inlinestatic |
◆ value()
Returns the value in given unit system.
Definition at line 255 of file Units.h.
◆ almostEqual
bool almostEqual |
( |
const Unit & |
u1, |
|
|
const Unit & |
u2, |
|
|
const Float |
eps |
|
) |
| |
|
friend |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
stream, |
|
|
const Unit & |
u |
|
) |
| |
|
friend |
Utility functions.
Prints in the most suitable units (so that the value is as close to 1 as possible).
Can be only used with base units.
Definition at line 50 of file Units.cpp.
◆ pow
Unit pow |
( |
const Unit & |
u, |
|
|
const int |
power |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files:
- /home/pavel/projects/astro/sph/src/bench/Session.h
- /home/pavel/projects/astro/sph/src/core/physics/Units.h