test_type.h Source File

CPP API: test_type.h Source File
test_type.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: Khoa Nguyen
5 *
6 * Contact: Martin J. Kuehn <Martin.Kuehn@DLR.de>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 #ifndef MIO_ABM_TEST_TYPE_H
21 #define MIO_ABM_TEST_TYPE_H
22 
23 #include "abm/time.h"
25 
26 #include <cstdint>
27 
28 namespace mio
29 {
30 namespace abm
31 {
32 
36 enum class TestType : std::uint32_t
37 {
38  Generic,
39  Antigen,
40  PCR,
41 
42  Count
43 };
44 
48 struct TestResult {
50  bool result{false};
51 
54  {
55  return Members("TestResult").add("time_of_testing", time_of_testing).add("result", result);
56  }
57 };
58 
59 } // namespace abm
60 } // namespace mio
61 
62 #endif
Represents a point in time.
Definition: time.h:175
static min_max_return_type< ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 >, ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > >::type min(const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &a, const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &b)
Definition: ad.hpp:2599
TestType
Type of a Test.
Definition: test_type.h:37
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
List of a class's members.
Definition: default_serialize.h:113
Members< ValueTypes..., T > add(const char *member_name, T &member)
Add a class member.
Definition: default_serialize.h:139
The TestResult of a Person.
Definition: test_type.h:48
auto default_serialize()
This method is used by the default serialization feature.
Definition: test_type.h:53
bool result
The test result.
Definition: test_type.h:50
TimePoint time_of_testing
The TimePoint when the Person performs the test.
Definition: test_type.h:49