NEURON
SecMapping Struct Reference

Section to segment mapping. More...

#include <nrnsection_mapping.h>

Public Member Functions

 SecMapping (int n, std::string s)
 
size_t size ()
 

Public Attributes

int nsec
 number of sections in section list More...
 
std::string name
 name of section list More...
 
std::vector< int > segments
 list of segments More...
 
std::vector< int > sections
 list sections associated with each segment More...
 
std::vector< double > seglfp_factors
 list of lfp factors associated with each segment More...
 
std::vector< size_t > electrode_offsets
 Electrode offsets as partial sums (CSR-style). More...
 

Detailed Description

Section to segment mapping.

For a section list (of particulat type), store mapping of section to segment. Note that the section is repeated when there are multiple segments in a section.

Definition at line 12 of file nrnsection_mapping.h.

Constructor & Destructor Documentation

◆ SecMapping()

SecMapping::SecMapping ( int  n,
std::string  s 
)
inline

Definition at line 33 of file nrnsection_mapping.h.

Member Function Documentation

◆ size()

size_t SecMapping::size ( )
inline

Definition at line 37 of file nrnsection_mapping.h.

Member Data Documentation

◆ electrode_offsets

std::vector<size_t> SecMapping::electrode_offsets

Electrode offsets as partial sums (CSR-style).

For a single report with N electrodes: [0, N]. Empty when no electrodes are associated.

Definition at line 31 of file nrnsection_mapping.h.

◆ name

std::string SecMapping::name

name of section list

Definition at line 17 of file nrnsection_mapping.h.

◆ nsec

int SecMapping::nsec

number of sections in section list

Definition at line 14 of file nrnsection_mapping.h.

◆ sections

std::vector<int> SecMapping::sections

list sections associated with each segment

Definition at line 23 of file nrnsection_mapping.h.

◆ seglfp_factors

std::vector<double> SecMapping::seglfp_factors

list of lfp factors associated with each segment

Definition at line 26 of file nrnsection_mapping.h.

◆ segments

std::vector<int> SecMapping::segments

list of segments

Definition at line 20 of file nrnsection_mapping.h.


The documentation for this struct was generated from the following file: