From be26448a2d31bf8900eb6ee1d8763e2f09605f34 Mon Sep 17 00:00:00 2001 From: "w.klijn" <nonoice@gmail.com> Date: Tue, 16 Aug 2016 17:36:28 +0200 Subject: [PATCH] Rename do_export to output --- miniapp/miniapp.cpp | 4 ++-- src/io/exporter.hpp | 2 +- src/io/exporter_spike_file.hpp | 2 +- tests/performance/io/disk_io.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/miniapp/miniapp.cpp b/miniapp/miniapp.cpp index d38d3999..9e96afa6 100644 --- a/miniapp/miniapp.cpp +++ b/miniapp/miniapp.cpp @@ -88,13 +88,13 @@ int main(int argc, char** argv) { m.set_global_spike_callback(file_export_type::do_nothing); m.set_local_spike_callback( [&](const std::vector<spike_type>& spikes) { - file_exporter->do_export(spikes); + file_exporter->output(spikes); }); } else { m.set_global_spike_callback( [&](const std::vector<spike_type>& spikes) { - file_exporter->do_export(spikes); + file_exporter->output(spikes); }); m.set_local_spike_callback(file_export_type::do_nothing); } diff --git a/src/io/exporter.hpp b/src/io/exporter.hpp index 85f7f212..de093aee 100644 --- a/src/io/exporter.hpp +++ b/src/io/exporter.hpp @@ -22,7 +22,7 @@ public: using spike_type = spike<cell_member_type, time_type>; // Performs the export of the data - virtual void do_export(const std::vector<spike_type>&) = 0; + virtual void output(const std::vector<spike_type>&) = 0; // Returns the status of the exporter virtual bool good() const = 0; diff --git a/src/io/exporter_spike_file.hpp b/src/io/exporter_spike_file.hpp index 56269e29..032d847f 100644 --- a/src/io/exporter_spike_file.hpp +++ b/src/io/exporter_spike_file.hpp @@ -51,7 +51,7 @@ public: // Performs the a export of the spikes to file // one id and spike time with 4 decimals after the comma on a // line space separated - void do_export(const std::vector<spike_type>& spikes) override + void output(const std::vector<spike_type>& spikes) override { for (auto spike : spikes) { char linebuf[45]; diff --git a/tests/performance/io/disk_io.cpp b/tests/performance/io/disk_io.cpp index 5182b0a8..2ca05c8b 100644 --- a/tests/performance/io/disk_io.cpp +++ b/tests/performance/io/disk_io.cpp @@ -100,7 +100,7 @@ int main(int argc, char** argv) for (auto idx = 0; idx < nr_repeats; ++idx) { auto time_start = timer::tic(); - exporter.do_export(spikes); + exporter.output(spikes); auto run_time = timer::toc(time_start); time_total += run_time; timings_arr[idx] = run_time; -- GitLab