Class CircularList
- Known Subclasses:
-
ModelList
A CircularList will store up to maxSize items. A size of -1
indicates that the list has no maxSize. Use the addItem method to
insert an item into the list. It will automatically remove the
oldest item in the list if it has reached the maxSize. Use the
nextItem method to retrieve the oldest visited item. Use the
getItem method to retrieve an item at a particular index.
| Method Summary |
| |
__init__(self,
size)
|
| |
__getitem__(self,
index)
|
| |
__len__(self)
|
| |
__str__(self)
|
| |
addItem(self,
item)
|
| |
nextItem(self)
|