PyFoam.Basics.RingBuffer module
A ring-buffer data structure
- class PyFoam.Basics.RingBuffer.RingBuffer(nr=1000)[source]
Bases:
objectA data structure that stores a number N of elements. The N+1-element overwrites the first and so on ….
- __dict__ = mappingproxy({'__module__': 'PyFoam.Basics.RingBuffer', '__doc__': 'A data structure that stores a number N of elements. The\n N+1-element overwrites the first and so on ....', '__init__': <function RingBuffer.__init__>, 'insert': <function RingBuffer.insert>, 'last': <function RingBuffer.last>, 'dump': <function RingBuffer.dump>, '__dict__': <attribute '__dict__' of 'RingBuffer' objects>, '__weakref__': <attribute '__weakref__' of 'RingBuffer' objects>, '__annotations__': {}})
- __module__ = 'PyFoam.Basics.RingBuffer'
- __weakref__
list of weak references to the object (if defined)