NEST
2.6.0,not_revisioned_source_dir@0
|
#include <ring_buffer.h>
Public Member Functions | |
ListRingBuffer () | |
void | append_value (const long_t offs, const double_t) |
Append a value to the ring buffer list. More... | |
std::list< double_t > & | get_list (const long_t offs) |
void | clear () |
Initialize the buffer with empty lists. More... | |
void | resize () |
Resize the buffer according to max_thread and max_delay. More... | |
size_t | size () const |
Returns buffer size, for memory measurement. More... | |
Private Member Functions | |
size_t | get_index_ (const delay d) const |
Obtain buffer index. More... | |
Private Attributes | |
std::vector< std::list < double_t > > | buffer_ |
Buffered data. More... | |
nest::ListRingBuffer::ListRingBuffer | ( | ) |
Append a value to the ring buffer list.
offs | Arrival time relative to beginning of slice. |
double_t | Value to append. |
References buffer_, and get_index_().
void nest::ListRingBuffer::clear | ( | ) |
|
inlineprivate |
Obtain buffer index.
delay | delivery delay for event |
References assert(), buffer_, and nest::Scheduler::get_modulo().
Referenced by append_value(), and get_list().
References assert(), buffer_, get_index_(), and nest::Scheduler::get_min_delay().
void nest::ListRingBuffer::resize | ( | ) |
Resize the buffer according to max_thread and max_delay.
New elements are filled with empty lists.
References nest::Scheduler::get_max_delay(), and nest::Scheduler::get_min_delay().
|
inline |
Returns buffer size, for memory measurement.
References buffer_.
|
private |
Buffered data.
Referenced by append_value(), get_index_(), get_list(), and size().