#include <ring_buffer.h>
|
| | ListRingBuffer () |
| |
| void | append_value (const long offs, const double) |
| | Append a value to the ring buffer list.
|
| |
| std::list< double > & | get_list (const long offs) |
| |
| void | clear () |
| | Initialize the buffer with empty lists.
|
| |
| void | resize () |
| | Resize the buffer according to max_thread and max_delay.
|
| |
| size_t | size () const |
| | Returns buffer size, for memory measurement.
|
| |
|
| size_t | get_index_ (const long d) const |
| | Obtain buffer index.
|
| |
|
| std::vector< std::list< double > > | buffer_ |
| | Buffered data.
|
| |
◆ ListRingBuffer()
| nest::ListRingBuffer::ListRingBuffer |
( |
| ) |
|
◆ append_value()
| void nest::ListRingBuffer::append_value |
( |
const long |
offs, |
|
|
const double |
v |
|
) |
| |
|
inline |
Append a value to the ring buffer list.
- Parameters
-
| offs | Arrival time relative to beginning of slice. |
| double | Value to append. |
References buffer_, and get_index_().
◆ clear()
| void nest::ListRingBuffer::clear |
( |
| ) |
|
Initialize the buffer with empty lists.
Also resizes the buffer if necessary.
References buffer_, and resize().
◆ get_index_()
| size_t nest::ListRingBuffer::get_index_ |
( |
const long |
d | ) |
const |
|
inlineprivate |
◆ get_list()
| std::list< double > & nest::ListRingBuffer::get_list |
( |
const long |
offs | ) |
|
|
inline |
◆ resize()
| void nest::ListRingBuffer::resize |
( |
| ) |
|
◆ size()
| size_t nest::ListRingBuffer::size |
( |
| ) |
const |
|
inline |
Returns buffer size, for memory measurement.
References buffer_.
Referenced by resize().
◆ buffer_
| std::vector< std::list< double > > nest::ListRingBuffer::buffer_ |
|
private |
The documentation for this class was generated from the following files: