PrevUpHomeNext

Function template uptime_bounds_for_action_prelude

fd::uptime_bounds_for_action_prelude — Determine coalesced uptime bounds for the given action schedule's ending time point. Also see uptime_bounds_for().

Synopsis

// In header: <fd/algorithm.h>


template<std::ranges::forward_range Rng> 
  std::optional< schedule_time_bounds > 
  uptime_bounds_for_action_prelude(const schedule_timepiece & actionSchedule, 
                                   const Rng & schedules);

Description

[Note] Note

The reference timpoint is the 'action' schedule's current ending time point.

Parameters:

actionSchedule

A single timepoint generator used as an 'action' schedule, whose current end time point is used.

schedules

List of timepoint generators.

Returns:

  • std::nullopt if actionSchedule isn't an 'action' schedule or @schedules don't contain any 'fixed duration' schedule.

  • empty time point bounds [{ not_a_date_time, not_a_date_time }] if outside of 'uptime' schedules or within a 'halt' schedule.

  • otherwise the coaleseced uptime bounds (i.e. longest duration period) of all 'fixed duration' schedules.


PrevUpHomeNext