Panda3D
Loading...
Searching...
No Matches
CRCache Class Reference

Public Member Functions

 __init__ (self, maxCacheItems=10)
 
 cache (self, distObj)
 
 checkCache (self)
 
 contains (self, doId)
 
 delete (self, doId)
 
 flush (self)
 
 isEmpty (self)
 
 retrieve (self, doId)
 
 turnOff (self)
 
 turnOn (self)
 

Public Attributes

dict dict = {}
 
list fifo = []
 
int maxCacheItems = maxCacheItems
 
 storedCacheItems = maxCacheItems
 
 storedMaxCache = self.maxCacheItems
 

Static Public Attributes

 notify = DirectNotifyGlobal.directNotify.newCategory("CRCache")
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
maxCacheItems = 10 )

Member Function Documentation

◆ cache()

cache ( self,
distObj )

◆ checkCache()

checkCache ( self)

◆ contains()

contains ( self,
doId )

◆ delete()

delete ( self,
doId )

◆ flush()

flush ( self)
Delete each item in the cache then clear all references to them

◆ isEmpty()

isEmpty ( self)

◆ retrieve()

retrieve ( self,
doId )

◆ turnOff()

turnOff ( self)

◆ turnOn()

turnOn ( self)

Member Data Documentation

◆ dict

dict = {}

◆ fifo

fifo = []

◆ maxCacheItems

int maxCacheItems = maxCacheItems

◆ notify

notify = DirectNotifyGlobal.directNotify.newCategory("CRCache")
static

◆ storedCacheItems

storedCacheItems = maxCacheItems

◆ storedMaxCache

storedMaxCache = self.maxCacheItems