cMHN
1.1
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
basic
direction.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_BASIC_DIRECTION_H
4
#define pRC_CORE_BASIC_DIRECTION_H
5
6
namespace
pRC
7
{
8
enum class
Direction
9
{
10
Leftwards
,
11
RightToLeft
=
Leftwards
,
12
Rightwards
,
13
LeftToRight
=
Rightwards
,
14
Upwards
,
15
Up
=
Upwards
,
16
Downwards
,
17
Down
=
Downwards
,
18
Forwards
,
19
Forward
=
Forwards
,
20
Backwards
,
21
Backward
=
Backwards
,
22
};
23
24
static
inline
constexpr
auto
reverse
(
Direction
const
D
)
25
{
26
switch
(
D
)
27
{
28
case
Direction::Leftwards
:
29
return
Direction::Rightwards
;
30
case
Direction::Rightwards
:
31
return
Direction::Leftwards
;
32
case
Direction::Upwards
:
33
return
Direction::Downwards
;
34
case
Direction::Downwards
:
35
return
Direction::Upwards
;
36
case
Direction::Forwards
:
37
return
Direction::Backwards
;
38
case
Direction::Backwards
:
39
return
Direction::Forwards
;
40
}
41
}
42
}
43
#endif
// pRC_CORE_BASIC_DIRECTION_H
D
pRC::Size const D
Definition
CalculatePThetaTests.cpp:9
pRC
Definition
cholesky.hpp:18
pRC::reverse
static constexpr auto reverse(Direction const D)
Definition
direction.hpp:24
pRC::Direction
Direction
Definition
direction.hpp:9
pRC::Direction::Down
@ Down
pRC::Direction::Downwards
@ Downwards
pRC::Direction::Forwards
@ Forwards
pRC::Direction::Up
@ Up
pRC::Direction::Rightwards
@ Rightwards
pRC::Direction::Forward
@ Forward
pRC::Direction::Upwards
@ Upwards
pRC::Direction::Backwards
@ Backwards
pRC::Direction::Backward
@ Backward
pRC::Direction::RightToLeft
@ RightToLeft
pRC::Direction::Leftwards
@ Leftwards
pRC::Direction::LeftToRight
@ LeftToRight
Generated by
1.10.0