PrevUpHomeNext

Struct State

fd::correlating_timepieces_test_player::State

Synopsis

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



struct State {
  // member classes/structs/unions

  struct PerSchedule {

    // public member functions
    bool operator<(const PerSchedule &) const;
    PerSchedule & operator=(const PerSchedule &) = delete;

    // public data members
    schedule_timepiece & schedule;
    const std::ptrdiff_t scheduleIdx;
    const int nInitialReps;
    const bool beganWithinInterval;
    schedule_timepoint now;
    bool inScope;
    bool(* handle_execution_or_termination;
  };

  // public member functions
  State(std::reference_wrapper< correlating_timepieces_test_player::final_parameters >, 
        std::reference_wrapper< std::list< schedule_timepiece > >, 
        correlating_timepieces_test_player::callback_type &&);
  State(const State &) = delete;
  decltype(auto) sims();
  bool test_limit_reached() const noexcept;

  // public static functions
  static bool handle_termination(State &, PerSchedule &);
  static bool handle_launch(State &, PerSchedule &);

  // public data members
  correlating_timepieces_test_player::final_parameters & params;
  std::list< schedule_timepiece > & schedules;
  const correlating_timepieces_test_player::callback_type f;
  const scheduling_purpose purpose;
  const schedule_timepoint testLimitPoint;
  std::multiset< PerSchedule > ongoing;
};

Description

State public member functions

  1. State(std::reference_wrapper< correlating_timepieces_test_player::final_parameters > params, 
          std::reference_wrapper< std::list< schedule_timepiece > > schedules, 
          correlating_timepieces_test_player::callback_type && f);
  2. State(const State &) = delete;
  3. decltype(auto) sims();
  4. bool test_limit_reached() const noexcept;

State public static functions

  1. static bool handle_termination(State & s, PerSchedule & ongoing);
  2. static bool handle_launch(State & s, PerSchedule & ongoing);

PrevUpHomeNext