1 #include <ozulis/core/assert.hh>
9 : Singleton
<IdBase
<H
> > (),
20 return IdBase
<H
>::instance().nextId_
++;
25 IdBase
<H
>::setParent(id_t parent
, id_t child
)
30 IdBase
<H
> & thiz
= IdBase
<H
>::instance();
32 assert(parent
< child
);
33 thiz
.parents_
[child
] = parent
;
34 thiz
.childs_
[parent
].insert(child
);
37 template <typename H
, typename T
>
41 static id_t id_
= IdBase
<H
>::nextId();
45 template <typename H
, typename P
, typename T
>
54 id_t parent
= Id
<H
, P
>::id();
57 IdBase
<H
>::setParent(parent
, id_
);