Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
BRepGraph_CacheKindRegistry Class Reference

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_CacheKindFindKind (const Standard_GUID &theGUID)
 Find descriptor by GUID.
 
static occ::handle< BRepGraph_CacheKindFindKind (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.
 

Detailed Description

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.

Member Function Documentation

◆ Contains() [1/2]

static bool BRepGraph_CacheKindRegistry::Contains ( const int theSlot)
static

Check whether a slot is registered.

◆ Contains() [2/2]

static bool BRepGraph_CacheKindRegistry::Contains ( const Standard_GUID & theGUID)
static

Check whether a GUID is registered.

◆ FindKind() [1/2]

static occ::handle< BRepGraph_CacheKind > BRepGraph_CacheKindRegistry::FindKind ( const int theSlot)
static

Find descriptor by slot.

◆ FindKind() [2/2]

static occ::handle< BRepGraph_CacheKind > BRepGraph_CacheKindRegistry::FindKind ( const Standard_GUID & theGUID)
static

Find descriptor by GUID.

◆ FindSlot() [1/2]

static int BRepGraph_CacheKindRegistry::FindSlot ( const Standard_GUID & theGUID)
static

Find slot by GUID. Returns -1 if not found.

◆ FindSlot() [2/2]

static bool BRepGraph_CacheKindRegistry::FindSlot ( const Standard_GUID & theGUID,
int & theSlot )
static

Find slot by GUID.

Parameters
[out]theSlotdense runtime slot if found
Returns
true if the GUID is registered

◆ NbRegistered()

static int BRepGraph_CacheKindRegistry::NbRegistered ( )
static

Number of registered cache kinds.

◆ Register()

static int BRepGraph_CacheKindRegistry::Register ( const occ::handle< BRepGraph_CacheKind > & theKind)
static

Register a cache kind descriptor. Idempotent: the same GUID always yields the same slot. Slot assignment is process-global and graph-instance independent.

Returns
dense runtime slot, or -1 for null input

The documentation for this class was generated from the following file: