Loading [MathJax]/extensions/tex2jax.js
AIToolbox
A library that offers tools for AI problem solving.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
d
e
h
i
l
n
q
Typedefs
a
b
c
d
f
h
m
p
q
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
i
k
m
n
o
p
q
r
s
t
v
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
v
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
Functions
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TypeTraits.hpp
Go to the documentation of this file.
1
#ifndef AI_TOOLBOX_FACTORED_BANDIT_TYPE_TRAITS_HEADER_FILE
2
#define AI_TOOLBOX_FACTORED_BANDIT_TYPE_TRAITS_HEADER_FILE
3
4
#include <ranges>
5
6
#include <
AIToolbox/Factored/Bandit/Types.hpp
>
7
8
namespace
AIToolbox::Factored::Bandit
{
14
template
<
typename
QR>
15
concept
IsQFunctionRule
= requires (
const
QR qr) {
16
{ qr.action } -> std::convertible_to<PartialAction>;
17
{ qr.value } -> std::convertible_to<double>;
18
};
19
23
template
<
typename
T>
24
concept
QFRuleRange
= std::ranges::range<T> && IsQFunctionRule<std::ranges::range_value_t<T>>;
25
}
26
27
#endif
Types.hpp
AIToolbox::Factored::Bandit::QFRuleRange
concept QFRuleRange
This concept represents a range of QFunctionRules.
Definition:
TypeTraits.hpp:24
AIToolbox::Factored::Bandit::IsQFunctionRule
concept IsQFunctionRule
This concept models the interface for a QFunctionRule.
Definition:
TypeTraits.hpp:15
AIToolbox::Factored::Bandit
Definition:
GraphUtils.hpp:12