Lines Matching defs:registry
1 /* Macros for general registry objects.
25 template<typename T> class registry;
29 Normally, a container class has a registry<> field named
33 However, a container may sometimes need to store the registry
40 /* Given a container of type T, return its registry. */
41 static registry<T> *get (T *obj)
53 This is handled using the registry system.
55 A class needing to allow this sort registration can add a registry
58 class some_container { registry<some_container> registry_fields; };
67 class registry
71 registry ()
76 ~registry ()
81 DISABLE_COPY_AND_ASSIGN (registry);
83 /* A type-safe registry key.
85 The registry itself holds just a "void *". This is not always
100 : m_key (registry<T>::new_key (cleanup))
110 registry<T> *reg_obj = registry_accessor<T>::get (obj);
119 registry<T> *reg_obj = registry_accessor<T>::get (obj);
153 /* A helper function that is called by the registry to delete the
187 /* Registry callbacks have this type. */
190 /* Get a new key for this particular registry. FREE is a callback.