repo.or.cz
/
ozulis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cast from float to int is real shit
[ozulis.git]
/
src
/
core
/
id.hh
blob
3b01075196cd8387acd0587c9ca305bcd354e78d
1
#ifndef CORE_ID_HH
2
# define CORE_ID_HH
3
4
# include <stdint.h>
5
6
namespace
core
7
{
8
typedef
int32_t
id_t
;
9
10
template
<
typename H
>
11
class
IdBase
12
{
13
public
:
14
static
id_t
nextId
();
15
};
16
17
template
<
typename H
,
typename T
>
18
class
Id
19
{
20
public
:
21
static
id_t
id
();
22
};
23
}
24
25
# include
"id.hxx"
26
27
#endif
/* !ID_HH */