Main Page
Namespaces
Classes
Files
File List
File Members
include
dataflow_lite
dataflow
priority_options.h
Go to the documentation of this file.
1
/*
2
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License").
5
* You may not use this file except in compliance with the License.
6
* A copy of the License is located at
7
*
8
* http://aws.amazon.com/apache2.0
9
*
10
* or in the "license" file accompanying this file. This file is distributed
11
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
* express or implied. See the License for the specific language governing
13
* permissions and limitations under the License.
14
*/
15
16
17
#pragma once
18
namespace
Aws
{
19
namespace
DataFlow {
20
21
enum
PriorityLevel
: uint {
22
LOWEST_PRIORITY
= 0,
23
LOW_PRIORITY
,
24
MEDIUM_PRIORITY
,
25
HIGH_PRIORITY
,
26
HIGHEST_PRIORITY
27
};
28
29
struct
PriorityOptions
{
30
explicit
PriorityOptions
(
PriorityLevel
level =
MEDIUM_PRIORITY
) {
31
priority_level
= level;
32
}
33
PriorityLevel
priority_level
;
34
35
inline
bool
operator >
(
const
PriorityOptions
&other)
const
{
36
return
priority_level > other.
priority_level
;
37
}
38
39
inline
bool
operator <
(
const
PriorityOptions
&other)
const
{
40
return
priority_level < other.
priority_level
;
41
}
42
};
43
44
}
// namespace DataFlow
45
}
// namespace Aws
Aws::DataFlow::PriorityOptions::PriorityOptions
PriorityOptions(PriorityLevel level=MEDIUM_PRIORITY)
Definition:
priority_options.h:30
Aws
Aws::DataFlow::HIGHEST_PRIORITY
Definition:
priority_options.h:26
Aws::DataFlow::LOWEST_PRIORITY
Definition:
priority_options.h:22
Aws::DataFlow::HIGH_PRIORITY
Definition:
priority_options.h:25
Aws::DataFlow::PriorityOptions::priority_level
PriorityLevel priority_level
Definition:
priority_options.h:33
Aws::DataFlow::PriorityOptions::operator<
bool operator<(const PriorityOptions &other) const
Definition:
priority_options.h:39
Aws::DataFlow::PriorityOptions
Definition:
priority_options.h:29
Aws::DataFlow::MEDIUM_PRIORITY
Definition:
priority_options.h:24
Aws::DataFlow::LOW_PRIORITY
Definition:
priority_options.h:23
Aws::DataFlow::PriorityOptions::operator>
bool operator>(const PriorityOptions &other) const
Definition:
priority_options.h:35
Aws::DataFlow::PriorityLevel
PriorityLevel
Definition:
priority_options.h:21
dataflow_lite
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:22