140 cm->secmapping.push_back(
s);
int const size_t const size_t n
void nrn_write_mapping_info(const char *, int, NrnMappingInfo &)
dump mapping information to gid_3.dat file
Compartment mapping information for a cell.
std::vector< SecMapping * > secmapping
list of section lists (like soma, axon, apic)
int num_sections()
total number of sections in a cell
CellMapping(int g, SecMapping *s)
int num_segments()
total number of segments in a cell
size_t size()
number of section lists
Compartment mapping information for NrnThread.
size_t size()
number of cells
std::vector< CellMapping * > mapping
list of cells mapping
~NrnMappingInfo()
memory cleanup
void clear()
after writing NrnThread to file we remove all previous mapping information, free memory.
CellMapping * get_cell_mapping(int gid)
get cell mapping information for given gid if exist otherwise return NULL.
void add_sec_mapping(int gid, SecMapping *s)
add section mapping information for given gid if cell is not peviously added, create new cell mapping...
Section to segment mapping.
std::string name
name of section list
int num_electrodes
Number of electrodes per segment.
std::vector< int > segments
list of segments
std::vector< double > seglfp_factors
list of lfp factors associated with each segment
int nsec
number of sections in section list
std::vector< int > sections
list sections associated with each segment
SecMapping(int n, std::string s)