#include <ring_buffer.h>
|
| | MultRBuffer () |
| |
| void | add_value (const long offs, const double) |
| | Add a value to the ring buffer.
|
| |
| double | get_value (const long offs) |
| | Read one value from ring buffer.
|
| |
| void | clear () |
| | Initialize the buffer with noughts.
|
| |
| 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< double > | buffer_ |
| | Buffered data.
|
| |
◆ MultRBuffer()
| nest::MultRBuffer::MultRBuffer |
( |
| ) |
|
◆ add_value()
| void nest::MultRBuffer::add_value |
( |
const long |
offs, |
|
|
const double |
v |
|
) |
| |
|
inline |
Add a value to the ring buffer.
- Parameters
-
| offs | Arrival time relative to beginning of slice. |
| double | Value to add. |
References buffer_, and get_index_().
◆ clear()
| void nest::MultRBuffer::clear |
( |
| ) |
|
Initialize the buffer with noughts.
References buffer_.
◆ get_index_()
| size_t nest::MultRBuffer::get_index_ |
( |
const long |
d | ) |
const |
|
inlineprivate |
◆ get_value()
| double nest::MultRBuffer::get_value |
( |
const long |
offs | ) |
|
|
inline |
◆ resize()
| void nest::MultRBuffer::resize |
( |
| ) |
|
◆ size()
| size_t nest::MultRBuffer::size |
( |
| ) |
const |
|
inline |
Returns buffer size, for memory measurement.
References buffer_.
Referenced by resize().
◆ buffer_
| std::vector< double > nest::MultRBuffer::buffer_ |
|
private |
The documentation for this class was generated from the following files: