blob: e8ffd088e265fddb36e7e0175d3bcb293dd9348c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/*
* include/framework/QueryInterface.h
*
* Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
*
* All rights reserved. Published under the Modified BSD License.
*
*/
#pragma once
#include <vector>
#include <concepts>
#include "framework/interface/Record.h"
#include "util/types.h"
#include "framework/scheduling/Task.h"
template <typename S>
concept SchedulerInterface = requires(S s, size_t i, void *vp, de::Job j) {
{S(i, i)};
{s.schedule_job(j, i, vp)} -> std::convertible_to<void>;
{s.shutdown()};
};
|