From 1cb54d29df3cee3e526d2def50eacd3a1581d2ce Mon Sep 17 00:00:00 2001 From: Ben Cumming <louncharf@gmail.com> Date: Mon, 29 Jan 2018 15:07:04 +0100 Subject: [PATCH] put arb_cell_description in arb namespace (#445) Added cell description to the Arbor namespace. --- src/lif_cell_description.hpp | 4 ++++ src/lif_cell_group.hpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/lif_cell_description.hpp b/src/lif_cell_description.hpp index 24c0973f..db5f4d50 100644 --- a/src/lif_cell_description.hpp +++ b/src/lif_cell_description.hpp @@ -1,5 +1,7 @@ #pragma once +namespace arb { + // Model parameteres of leaky integrate and fire neuron model. struct lif_cell_description { // Neuronal parameters. @@ -11,3 +13,5 @@ struct lif_cell_description { double V_reset = E_L; // Reset potential [mV]. double t_ref = 2; // Refractory period [ms]. }; + +} // namespace arb diff --git a/src/lif_cell_group.hpp b/src/lif_cell_group.hpp index 4a106738..6bf52b36 100644 --- a/src/lif_cell_group.hpp +++ b/src/lif_cell_group.hpp @@ -10,6 +10,7 @@ #include <vector> namespace arb { + class lif_cell_group: public cell_group { public: using value_type = double; @@ -50,4 +51,5 @@ private: // Time when the cell was last updated. std::vector<time_type> last_time_updated_; }; + } // namespace arb -- GitLab