12template<
typename T,
typename H,
unsigned int sz>
19 void reg(T *inst, H *handle) {
20 for (
unsigned int i = 0; i < len; ++i) {
29 for (
unsigned int i = 0; i < len; ++i) {
30 if (h[i] == handle)
return t[i];
registry that maps classes to HAL handles
Definition registry.h:13
void reg(T *inst, H *handle)
register given class instance to handle
Definition registry.h:19
T * from(H *handle)
get registered class instance from handle
Definition registry.h:28