1 #ifndef HALIDE_OBJECT_INSTANCE_REGISTRY_H
2 #define HALIDE_OBJECT_INSTANCE_REGISTRY_H
54 const void *introspection_helper);
71 void *subject_ptr =
nullptr;
74 bool registered_for_introspection =
false;
76 InstanceInfo() =
default;
77 InstanceInfo(
size_t size,
Kind kind,
void *subject_ptr,
bool registered_for_introspection)
78 : subject_ptr(subject_ptr), size(size), kind(kind), registered_for_introspection(registered_for_introspection) {
83 std::map<uintptr_t, InstanceInfo> instances;
85 ObjectInstanceRegistry() =
default;
88 ObjectInstanceRegistry(
const ObjectInstanceRegistry &) =
delete;
89 ObjectInstanceRegistry &
operator=(
const ObjectInstanceRegistry &) =
delete;
90 ObjectInstanceRegistry(ObjectInstanceRegistry &&) =
delete;
91 ObjectInstanceRegistry &
operator=(ObjectInstanceRegistry &&) =
delete;
97 #endif // HALIDE_OBJECT_INSTANCE_REGISTRY_H