CoreNEURON
mech_mapping.hpp
Go to the documentation of this file.
1
/*
2
# =============================================================================
3
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
4
#
5
# See top-level LICENSE file for details.
6
# =============================================================================
7
*/
8
9
#pragma once
10
11
/*
12
* todo : currently mod2c has exactly 4 different variable categories
13
* that are registered to coreneuron.
14
*/
15
#define NB_MECH_VAR_CATEGORIES 4
16
17
/*
18
* SerializedNames
19
*
20
* names are passed serialized using the following format:
21
* SerializedNames : {"0",[[<CategorieNames>,]*0,]* [[<CategorieNames>,]* 0]}
22
* All categories must be filled, if they are emtpy, just an other 0 follow.
23
*
24
* ex: {"0", "name1", "name2", 0, "name3, "name4", 0,0,0}
25
* This means the first categorie with names {name1,name2},
26
* the second categorie with {name3, name4}, 2 last categories are empty
27
*/
28
namespace
coreneuron
{
29
struct
Memb_list;
30
31
using
SerializedNames
=
const
char
**;
32
33
// return pointer to value of a variable's mechanism, or nullptr if not found
34
extern
double
*
get_var_location_from_var_name
(
int
mech_id,
35
const
char
* variable_name,
36
Memb_list
* ml,
37
int
local_index);
38
39
// initialize mapping of variable names of mechanism, to their places in memory
40
extern
void
register_all_variables_offsets
(
int
mech_id,
SerializedNames
variable_names);
41
42
}
// namespace coreneuron
coreneuron::register_all_variables_offsets
void register_all_variables_offsets(int mech_id, SerializedNames variable_names)
Definition:
mech_mapping.cpp:58
coreneuron::get_var_location_from_var_name
double * get_var_location_from_var_name(int mech_id, const char *variable_name, Memb_list *ml, int node_index)
Definition:
mech_mapping.cpp:39
coreneuron::Memb_list
Definition:
mechanism.hpp:131
coreneuron
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
Definition:
corenrn_parameters.cpp:12
coreneuron::SerializedNames
const char ** SerializedNames
Definition:
mech_mapping.hpp:31
coreneuron
mechanism
mech_mapping.hpp