NEURON
datum_indices.h
Go to the documentation of this file.
1 #pragma once
2 
3 // assume all Datum.pval point into this cell. In practice, this holds because
4 // they point either to the area or an ion property of the given node.
5 // This is tightly coupled to cache_efficient
6 // NrnThread.NrnThreadMembList.Memb_List.data and pdata etc.
7 class DatumIndices {
8  public:
9  DatumIndices() = default;
10  virtual ~DatumIndices();
11 
12  // These are the datum of mechanism `type`.
13  int type = -1;
14 
15  // `datum_index[i]` is the index of datum `i` inside the mechanism
16  // `datum_type[i]`.
17  //
18  // ordering as though pdata[i][j] was pdata[0][i*sz+j]
19  int* datum_type = nullptr; // negative codes semantics, positive codes mechanism type
20  int* datum_index = nullptr; // index of range variable relative to beginning of that type
21 };
int * datum_index
Definition: datum_indices.h:20
virtual ~DatumIndices()
int * datum_type
Definition: datum_indices.h:19
DatumIndices()=default