class documentation
class _DoubleLinkedListElement(object):
Constructor: _DoubleLinkedListElement(parent, value)
An element in a double linked list used by the LRU cache.
| Method | __init__ |
The default constructor. |
| Method | __repr__ |
Return a string representing this object |
| Method | swap |
Swap this element once forward towards the head. |
| Instance Variable | next |
next element in this double linked list |
| Instance Variable | parent |
DoubleLinkedList this element is a part of |
| Instance Variable | prev |
previous element in this double linked list |
| Instance Variable | value |
value of this element |
The default constructor.
| Parameters | |
parent:_DoubleLinkedList | DoubleLinkedList this element is a part of |
| value:any | value of this double linked list element |