cast from float to int is real shit
[ozulis.git] / src / core / id.hh
blob3b01075196cd8387acd0587c9ca305bcd354e78d
1 #ifndef CORE_ID_HH
2 # define CORE_ID_HH
4 # include <stdint.h>
6 namespace core
8 typedef int32_t id_t;
10 template <typename H>
11 class IdBase
13 public:
14 static id_t nextId();
17 template <typename H, typename T>
18 class Id
20 public:
21 static id_t id();
25 # include "id.hxx"
27 #endif /* !ID_HH */