#include <ObjectInstanceRegistry.h>
|
static void | register_instance (void *this_ptr, size_t size, Kind kind, void *subject_ptr) |
| Add an instance to the registry.
|
|
static void | unregister_instance (void *this_ptr) |
| Remove an instance from the registry.
|
|
static std::vector< std::pair< void *, Kind > > | instances_in_range (void *start, size_t size) |
| Returns the list of subject pointers for objects that have been directly registered within the given range.
|
|
Definition at line 20 of file ObjectInstanceRegistry.h.
◆ Kind
Enumerator |
---|
Invalid | |
Generator | |
GeneratorParam | |
GeneratorInput | |
GeneratorOutput | |
FilterParam | |
Definition at line 22 of file ObjectInstanceRegistry.h.
◆ ObjectInstanceRegistry() [1/2]
◆ ObjectInstanceRegistry() [2/2]
◆ register_instance()
static void Halide::Internal::ObjectInstanceRegistry::register_instance |
( |
void * | this_ptr, |
|
|
size_t | size, |
|
|
Kind | kind, |
|
|
void * | subject_ptr ) |
|
static |
Add an instance to the registry.
The size may be 0 for Param Kinds, but not for Generator. subject_ptr is the value actually associated with this instance; it is usually (but not necessarily) the same as this_ptr. Assert if this_ptr is already registered.
◆ unregister_instance()
static void Halide::Internal::ObjectInstanceRegistry::unregister_instance |
( |
void * | this_ptr | ) |
|
|
static |
Remove an instance from the registry.
Assert if not found.
◆ instances_in_range()
static std::vector< std::pair< void *, Kind > > Halide::Internal::ObjectInstanceRegistry::instances_in_range |
( |
void * | start, |
|
|
size_t | size ) |
|
static |
Returns the list of subject pointers for objects that have been directly registered within the given range.
If there is another containing object inside the range, instances within that object are skipped.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: