repo.or.cz
/
scx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
~
[scx.git]
/
include
/
DataType.hpp
blob
2d4f4e882073dfaeaf32e29dbf5b09abf4b8440e
1
#ifndef SCX_DATATYPE_HPP
2
#define SCX_DATATYPE_HPP
3
4
namespace
scx
{
5
6
template
<
typename T
>
7
struct
Value
8
{
9
T val
;
10
T max
;
11
T min
;
12
13
Value
()
14
{
15
}
16
17
Value
(
T a
,
T b
,
T c
):
18
val
(
a
),
19
max
(
b
),
20
min
(
c
)
21
{
22
}
23
24
Value
(
T a
):
25
val
(
a
)
26
{
27
}
28
29
Value
(
T a
,
T b
):
30
max
(
a
),
31
min
(
b
)
32
{
33
}
34
35
Value
(
const
Value
&
val
):
36
val
(
val
.
val
),
37
max
(
val
.
max
),
38
min
(
val
.
min
)
39
{
40
}
41
};
42
};
43
44
#endif