The time in a simulation. Times can be safely compared for exact equality as long as they do not belong to overlapping unequal slabs.
More...
|
|
| Time () noexcept=default |
| | Default constructor gives an invalid Time.
|
| |
|
| Time (Slab slab, rational_t fraction) noexcept |
| | A time a given fraction of the way through the given slab.
|
| |
|
Time | with_slab (const Slab &new_slab) const noexcept |
| | Move the time to a different slab. The time must be at an end of the current slab and the new slab must share that endpoint.
|
| |
|
double | value () const noexcept |
| | Approximate numerical value of the Time.
|
| |
|
const Slab & | slab () const noexcept |
| |
|
const rational_t & | fraction () const noexcept |
| |
|
Time & | operator+= (const TimeDelta &delta) noexcept |
| |
|
Time & | operator-= (const TimeDelta &delta) noexcept |
| |
|
bool | is_at_slab_start () const noexcept |
| |
|
bool | is_at_slab_end () const noexcept |
| |
|
bool | is_at_slab_boundary () const noexcept |
| |
|
void | pup (PUP::er &p) noexcept |
| |
The time in a simulation. Times can be safely compared for exact equality as long as they do not belong to overlapping unequal slabs.