Relative time durations and absolute time points.
More...
|
template<typename Tick > |
bool | embb::base::operator== (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Compares two durations (equality). More...
|
|
template<typename Tick > |
bool | embb::base::operator!= (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Compares two durations (inequality). More...
|
|
template<typename Tick > |
bool | embb::base::operator< (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Compares two durations (less than) More...
|
|
template<typename Tick > |
bool | embb::base::operator> (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Compares two durations (greater than) More...
|
|
template<typename Tick > |
bool | embb::base::operator<= (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Compares two durations (less than or equal to) More...
|
|
template<typename Tick > |
bool | embb::base::operator>= (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Compares two durations (greater than or equal to) More...
|
|
template<typename Tick > |
Duration< Tick > | embb::base::operator+ (const Duration< Tick > &lhs, const Duration< Tick > &rhs) |
| Adds two durations. More...
|
|
Relative time durations and absolute time points.
template<typename Tick >
bool embb::base::operator== |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Compares two durations (equality).
- Returns
true
if lhs
is equal to rhs
, otherwise false
- Parameters
-
[in] | lhs | Left-hand side of equality operator |
[in] | rhs | Right-hand side of equality operator |
template<typename Tick >
bool embb::base::operator!= |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Compares two durations (inequality).
- Returns
true
if lhs
is not equal to rhs
, otherwise false
- Parameters
-
[in] | lhs | Left-hand side of inequality operator |
[in] | rhs | Right-hand side of inequality operator |
template<typename Tick >
bool embb::base::operator< |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Compares two durations (less than)
- Returns
true
if lhs
is shorter than rhs
.
- Parameters
-
[in] | lhs | Left-hand side of less than operator |
[in] | rhs | Right-hand side of less than operator |
template<typename Tick >
bool embb::base::operator> |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Compares two durations (greater than)
- Returns
true
if lhs
is longer than rhs
.
- Parameters
-
[in] | lhs | Left-hand side of greater than operator |
[in] | rhs | Right-hand side of greater than operator |
template<typename Tick >
bool embb::base::operator<= |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Compares two durations (less than or equal to)
- Returns
true
if lhs
is shorter than or equal to rhs
.
- Parameters
-
[in] | lhs | Left-hand side of less than or equal to operator |
[in] | rhs | Right-hand side of less than or equal to operator |
template<typename Tick >
bool embb::base::operator>= |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Compares two durations (greater than or equal to)
- Returns
true
if lhs
is longer than or equal to rhs
.
- Parameters
-
[in] | lhs | Left-hand side of greater than or equal to operator |
[in] | rhs | Right-hand side of greater than or equal to operator |
template<typename Tick >
Duration<Tick> embb::base::operator+ |
( |
const Duration< Tick > & |
lhs, |
|
|
const Duration< Tick > & |
rhs |
|
) |
| |
Adds two durations.
- Returns
- Sum of
lhs
and rhs
.
- Parameters
-
[in] | lhs | Left-hand side of addition operator |
[in] | rhs | Right-hand side of addition operator |