SimpleLru
from panda3d.core import SimpleLru
- class SimpleLru
Bases:
Namable
An implementation of a very simple LRU algorithm. Also see AdaptiveLru.
Inheritance diagram
- __init__(*args, **kwargs)
- beginEpoch()
C++ Interface: begin_epoch(const SimpleLru self)
- /**
Marks the end of the previous epoch and the beginning of the next one.
This will evict any objects that are pending eviction, and also update any
internal bookkeeping.
*/
- begin_epoch()
C++ Interface: begin_epoch(const SimpleLru self)
- /**
Marks the end of the previous epoch and the beginning of the next one.
This will evict any objects that are pending eviction, and also update any
internal bookkeeping.
*/
- considerEvict()
C++ Interface: consider_evict(const SimpleLru self)
- /**
Evicts a sequence of objects if the queue is full.
*/
- consider_evict()
C++ Interface: consider_evict(const SimpleLru self)
- /**
Evicts a sequence of objects if the queue is full.
*/
- countActiveSize()
C++ Interface: count_active_size(SimpleLru self)
- /**
Returns the total size of the pages that were enqueued since the last call
to begin_epoch().
*/
- count_active_size()
C++ Interface: count_active_size(SimpleLru self)
- /**
Returns the total size of the pages that were enqueued since the last call
to begin_epoch().
*/
- evictTo()
C++ Interface: evict_to(const SimpleLru self, int target_size)
- /**
Evicts a sequence of objects until the queue fits within the indicated
target size, regardless of its normal max size.
*/
- evict_to()
C++ Interface: evict_to(const SimpleLru self, int target_size)
- /**
Evicts a sequence of objects until the queue fits within the indicated
target size, regardless of its normal max size.
*/
- getMaxSize()
C++ Interface: get_max_size(SimpleLru self)
- /**
Returns the max size of all objects that are allowed to be active on the
LRU.
*/
- getTotalSize()
C++ Interface: get_total_size(SimpleLru self)
- /**
Returns the total size of all objects currently active on the LRU.
*/
- get_max_size()
C++ Interface: get_max_size(SimpleLru self)
- /**
Returns the max size of all objects that are allowed to be active on the
LRU.
*/
- get_total_size()
C++ Interface: get_total_size(SimpleLru self)
- /**
Returns the total size of all objects currently active on the LRU.
*/
- setMaxSize()
C++ Interface: set_max_size(const SimpleLru self, int max_size)
- /**
Changes the max size of all objects that are allowed to be active on the
LRU.
If the size is (size_t)-1, there is no limit.
*/
- set_max_size()
C++ Interface: set_max_size(const SimpleLru self, int max_size)
- /**
Changes the max size of all objects that are allowed to be active on the
LRU.
If the size is (size_t)-1, there is no limit.
*/
- upcastToNamable()
C++ Interface: upcast_to_Namable(const SimpleLru self)
upcast from SimpleLru to Namable
- upcast_to_Namable()
C++ Interface: upcast_to_Namable(const SimpleLru self)
upcast from SimpleLru to Namable