Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CRCache Class Reference

Public Member Functions

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

Public Attributes

 dict
 
 fifo
 
 maxCacheItems
 
 storedCacheItems
 
 storedMaxCache
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  maxCacheItems = 10 
)

Member Function Documentation

◆ cache()

def cache (   self,
  distObj 
)

◆ checkCache()

def checkCache (   self)

◆ contains()

def contains (   self,
  doId 
)

◆ delete()

def delete (   self,
  doId 
)

◆ flush()

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

◆ isEmpty()

def isEmpty (   self)

◆ retrieve()

def retrieve (   self,
  doId 
)

◆ turnOff()

def turnOff (   self)

◆ turnOn()

def turnOn (   self)

Member Data Documentation

◆ dict

dict

◆ fifo

fifo

◆ maxCacheItems

maxCacheItems

◆ notify

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

◆ storedCacheItems

storedCacheItems

◆ storedMaxCache

storedMaxCache