![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Process-global registry of cache kind descriptors. More...
#include <BRepGraph_TransientCache.hxx>
Static Public Member Functions | |
| static int | Register (const occ::handle< BRepGraph_CacheKind > &theKind) |
| Register a cache kind descriptor. Idempotent: the same GUID always yields the same slot. Slot assignment is process-global and graph-instance independent. | |
| static int | FindSlot (const Standard_GUID &theGUID) |
| Find slot by GUID. Returns -1 if not found. | |
| static bool | FindSlot (const Standard_GUID &theGUID, int &theSlot) |
| Find slot by GUID. | |
| static occ::handle< BRepGraph_CacheKind > | FindKind (const Standard_GUID &theGUID) |
| Find descriptor by GUID. | |
| static occ::handle< BRepGraph_CacheKind > | FindKind (const int theSlot) |
| Find descriptor by slot. | |
| static bool | Contains (const Standard_GUID &theGUID) |
| Check whether a GUID is registered. | |
| static bool | Contains (const int theSlot) |
| Check whether a slot is registered. | |
| static int | NbRegistered () |
| Number of registered cache kinds. | |
Process-global registry of cache kind descriptors.
Maps stable GUID identity to dense runtime slot index. Slot indices are an internal storage detail used by BRepGraph_TransientCache for O(1) indexing. The registry is shared across all BRepGraph instances in the current process, so cache-kind GUIDs should be globally unique.
Check whether a slot is registered.
|
static |
Check whether a GUID is registered.
|
static |
Find descriptor by slot.
|
static |
Find descriptor by GUID.
|
static |
Find slot by GUID. Returns -1 if not found.
|
static |
Find slot by GUID.
| [out] | theSlot | dense runtime slot if found |
|
static |
Register a cache kind descriptor. Idempotent: the same GUID always yields the same slot. Slot assignment is process-global and graph-instance independent.