23#ifndef RECORDING_BACKEND_MEMORY_H
24#define RECORDING_BACKEND_MEMORY_H
128 const std::vector< std::string >& double_value_names,
129 const std::vector< std::string >& long_value_names )
override;
155 void set_value_names(
const std::vector< std::string >&,
const std::vector< std::string >& );
156 void push_back(
const Event&,
const std::vector< double >&,
const std::vector< long >& );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
Encapsulate information sent between nodes.
Definition event.h:103
Memory specialization of the RecordingBackend interface.
Definition recording_backend_memory.h:115
~RecordingBackendMemory() override
Definition recording_backend_memory.cpp:36
void enroll(const RecordingDevice &device, const Dictionary ¶ms) override
Enroll a RecordingDevice with the RecordingBackend.
Definition recording_backend_memory.cpp:53
void get_device_status(const RecordingDevice &device, Dictionary &) const override
Return the per-device status of the given recording device by writing it to the given params dictiona...
Definition recording_backend_memory.cpp:133
void pre_run_hook() override
Initialize global backend-specific data structures.
Definition recording_backend_memory.cpp:95
void post_run_hook() override
Clean up the backend at the end of a Run.
Definition recording_backend_memory.cpp:146
device_data_map device_data_
Definition recording_backend_memory.h:174
void set_value_names(const RecordingDevice &device, const std::vector< std::string > &double_value_names, const std::vector< std::string > &long_value_names) override
To make the names of recorded quantities known to the RecordingBackend, the vectors double_value_name...
Definition recording_backend_memory.cpp:82
void write(const RecordingDevice &, const Event &, const std::vector< double > &, const std::vector< long > &) override
Write the data from the event to the backend specific channel together with the values given.
Definition recording_backend_memory.cpp:107
void disenroll(const RecordingDevice &device) override
Disenroll a RecordingDevice from the RecordingBackend.
Definition recording_backend_memory.cpp:69
void get_device_defaults(Dictionary &) const override
Return the per-device defaults by writing it to the given params dictionary.
Definition recording_backend_memory.cpp:126
void prepare() override
Prepare the backend at begin of the NEST Simulate function.
Definition recording_backend_memory.cpp:170
void get_status(Dictionary &) const override
Return the status of the recording backend by writing it to the given params dictionary.
Definition recording_backend_memory.cpp:158
std::vector< std::map< size_t, DeviceData > > device_data_map
Definition recording_backend_memory.h:173
void initialize() override
Definition recording_backend_memory.cpp:41
void finalize() override
Definition recording_backend_memory.cpp:48
RecordingBackendMemory()
Definition recording_backend_memory.cpp:32
void set_status(const Dictionary &) override
Set the status of the recording backend using the key-value pairs contained in the params dictionary.
Definition recording_backend_memory.cpp:164
void post_step_hook() override
Do work required at the end of each simulation step.
Definition recording_backend_memory.cpp:152
void check_device_status(const Dictionary &) const override
Check if the given per-device properties are valid and usable by the backend.
Definition recording_backend_memory.cpp:119
void cleanup() override
Clean up the backend at the end of a user level call to the NEST Simulate function.
Definition recording_backend_memory.cpp:101
Abstract base class for all NESTio recording backends.
Definition recording_backend.h:67
Base class for all recording devices.
Definition recording_device.h:157
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
Definition recording_backend_memory.h:153
std::vector< std::string > long_value_names_
names for values of type long
Definition recording_backend_memory.h:167
std::vector< double > times_offset_
offsets of registered events if time_in_steps_
Definition recording_backend_memory.h:165
void push_back(const Event &, const std::vector< double > &, const std::vector< long > &)
Definition recording_backend_memory.cpp:194
std::vector< std::vector< long > > long_values_
recorded values of type long, one vector per value
Definition recording_backend_memory.h:169
std::vector< double > times_ms_
times of registered events in ms
Definition recording_backend_memory.h:163
void clear()
Definition recording_backend_memory.cpp:284
std::vector< std::string > double_value_names_
names for values of type double
Definition recording_backend_memory.h:166
void set_status(const Dictionary &)
Definition recording_backend_memory.cpp:263
void get_status(Dictionary &) const
Definition recording_backend_memory.cpp:221
std::vector< std::vector< double > > double_values_
recorded values of type double, one vector per value
Definition recording_backend_memory.h:168
std::vector< long > times_steps_
times of registered events in steps
Definition recording_backend_memory.h:164
std::vector< long > senders_
sender node IDs of the events
Definition recording_backend_memory.h:162
DeviceData()
Definition recording_backend_memory.cpp:177
void set_value_names(const std::vector< std::string > &, const std::vector< std::string > &)
Definition recording_backend_memory.cpp:183
bool time_in_steps_
Should time be recorded in steps (ms if false)
Definition recording_backend_memory.h:170