14#ifndef GLOBALPOINTERREGISTRY_H
15#define GLOBALPOINTERREGISTRY_H
59 void ns_store_pointer(
TypeHandle type,
void *ptr);
66 typedef phash_map<TypeHandle, void *> Pointers;
This class maintains a one-to-one mapping from TypeHandle to a void * pointer.
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.
static void * get_pointer(TypeHandle type)
Returns the pointer associated with the indicated TypeHandle, if any.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.