NEURON
cabvars.h
Go to the documentation of this file.
1 /* /local/src/master/nrn/src/nrnoc/cabvars.h,v 1.5 1999/02/05 18:09:50 hines Exp */
2 #pragma once
3 #include "cabcode.h" // to provide cab_alloc, morph_alloc for backward compatibility
4 
5 #define XMECH 0
6 
7 
8 static struct { /* USERPROPERTY */
9  const char* name;
10  short type;
11  short index;
12 } usrprop[] = {{"nseg", 0, 0}, {"L", 1, 2}, {"rallbranch", 1, 4}, {"Ra", 1, 7}, {nullptr, 0, 0}};
13 
14 extern "C" {
16 #if EXTRACELLULAR
18 #endif
22 #if XMECH
23  _xmech_reg_(),
24 #endif
26 
27 static Pfrv mechanism[] = {/* type will start at 3 */
28  capac_reg_,
30 #if EXTRACELLULAR
31  /* extracellular requires special handling and must be type 5 */
33 #endif
34  passive0_reg_, /* twice as fast as model description? */
35  _stim_reg_,
36  _syn_reg_,
43  _hh_reg_,
51 #if XMECH
52  _xmech_reg_,
53 #endif
54  0};
55 } // extern "C"
56 
57 static const char* morph_mech[] = {
58  /* this is type 2 */
59  "0",
60  "morphology",
61  "diam",
62  0,
63  0,
64  0,
65 };
66 
67 #if 0
68  first two memb_func
69  NULL_CUR, NULL_ALLOC, NULL_STATE, NULL_INITIALIZE, (Pfri)0, 0, /*Unused*/
70  NULL_CUR, cab_alloc, NULL_STATE, NULL_INITIALIZE, (Pfri)0, 0, /*CABLESECTION*/
71 #endif
72 
73 
74 extern std::vector<Memb_func> memb_func;
void cab_alloc(Prop *p)
Definition: cabcode.cpp:421
void(* Pfrv)(void)
Definition: hocdec.h:31
int(* Pfri)(void)
Definition: hocdec.h:30
#define NULL_STATE
Definition: membfunc.h:55
#define NULL_ALLOC
Definition: membfunc.h:54
#define NULL_CUR
Definition: membfunc.h:53
#define NULL_INITIALIZE
Definition: membfunc.h:56
void capac_reg_()
short index
Definition: cabvars.h:11
void _stim_reg_()
void _syn_reg_()
void _pattern_reg_()
std::vector< Memb_func > memb_func
Definition: init.cpp:145
void _intfire1_reg_()
void _intfire2_reg_()
static const char * morph_mech[]
Definition: cabvars.h:57
void _passive_reg_()
const char * name
Definition: cabvars.h:9
void _svclmp_reg_()
void extracell_reg_()
void _intfire4_reg_()
void _hh_reg_()
void _netstim_reg_()
void _feature_reg_()
void _vclmp_reg_()
void _oclmp_reg_()
void _expsyn_reg_()
short type
Definition: cabvars.h:10
static struct @36 usrprop[]
void _apcount_reg_()
void _ppmark_reg_()
void _exp2syn_reg_()
void passive0_reg_()
static Pfrv mechanism[]
Definition: cabvars.h:27