Public Member Functions | Public Attributes | Private Member Functions | List of all members
rqt_bag.timeline_cache.TimelineCache Class Reference
Inheritance diagram for rqt_bag.timeline_cache.TimelineCache:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, loader, listener=None, max_cache_size=100)
 
def cache_item (self, topic, t, item)
 
def enqueue (self, entry)
 
def get_item (self, topic, stamp, time_threshold)
 
def run (self)
 
def stop (self)
 

Public Attributes

 item_access
 
 items
 
 last_accessed
 
 listener
 
 loader
 
 lock
 
 max_cache_size
 
 queue
 
 stop_flag
 

Private Member Functions

def _limit_cache (self)
 
def _update_last_accessed (self, topic, stamp)
 

Detailed Description

Caches items for timeline renderers

Definition at line 43 of file timeline_cache.py.

Constructor & Destructor Documentation

◆ __init__()

def rqt_bag.timeline_cache.TimelineCache.__init__ (   self,
  loader,
  listener = None,
  max_cache_size = 100 
)

Definition at line 49 of file timeline_cache.py.

Member Function Documentation

◆ _limit_cache()

def rqt_bag.timeline_cache.TimelineCache._limit_cache (   self)
private
Removes LRU's from cache until size of each topic's cache is <= max_cache_size.

Definition at line 164 of file timeline_cache.py.

◆ _update_last_accessed()

def rqt_bag.timeline_cache.TimelineCache._update_last_accessed (   self,
  topic,
  stamp 
)
private
Maintains a sorted list of cache accesses by timestamp for each topic.

Definition at line 138 of file timeline_cache.py.

◆ cache_item()

def rqt_bag.timeline_cache.TimelineCache.cache_item (   self,
  topic,
  t,
  item 
)

Definition at line 93 of file timeline_cache.py.

◆ enqueue()

def rqt_bag.timeline_cache.TimelineCache.enqueue (   self,
  entry 
)

Definition at line 90 of file timeline_cache.py.

◆ get_item()

def rqt_bag.timeline_cache.TimelineCache.get_item (   self,
  topic,
  stamp,
  time_threshold 
)

Definition at line 107 of file timeline_cache.py.

◆ run()

def rqt_bag.timeline_cache.TimelineCache.run (   self)

Definition at line 64 of file timeline_cache.py.

◆ stop()

def rqt_bag.timeline_cache.TimelineCache.stop (   self)

Definition at line 180 of file timeline_cache.py.

Member Data Documentation

◆ item_access

rqt_bag.timeline_cache.TimelineCache.item_access

Definition at line 58 of file timeline_cache.py.

◆ items

rqt_bag.timeline_cache.TimelineCache.items

Definition at line 56 of file timeline_cache.py.

◆ last_accessed

rqt_bag.timeline_cache.TimelineCache.last_accessed

Definition at line 57 of file timeline_cache.py.

◆ listener

rqt_bag.timeline_cache.TimelineCache.listener

Definition at line 53 of file timeline_cache.py.

◆ loader

rqt_bag.timeline_cache.TimelineCache.loader

Definition at line 52 of file timeline_cache.py.

◆ lock

rqt_bag.timeline_cache.TimelineCache.lock

Definition at line 55 of file timeline_cache.py.

◆ max_cache_size

rqt_bag.timeline_cache.TimelineCache.max_cache_size

Definition at line 59 of file timeline_cache.py.

◆ queue

rqt_bag.timeline_cache.TimelineCache.queue

Definition at line 60 of file timeline_cache.py.

◆ stop_flag

rqt_bag.timeline_cache.TimelineCache.stop_flag

Definition at line 54 of file timeline_cache.py.


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


rqt_bag
Author(s): Dirk Thomas , Aaron Blasdel , Austin Hendrix , Tim Field
autogenerated on Fri Mar 3 2023 03:45:54