20 return get_global_ptr()->ns_get_pointer(type);
30 get_global_ptr()->ns_store_pointer(type, ptr);
40 get_global_ptr()->ns_clear_pointer(type);
52 if (_global_ptr ==
nullptr) {
static void * get_pointer(TypeHandle type)
Returns the pointer associated with the indicated TypeHandle, if any.
static void clear_pointer(TypeHandle type)
Removes the association of the given pointer with the indicated TypeHandle.
static void store_pointer(TypeHandle type, void *ptr)
Associates the given pointer with the indicated TypeHandle.
This class maintains a one-to-one mapping from TypeHandle to a void * pointer.
TypeHandle is the identifier used to differentiate C++ class types.