1 #ifndef NRN_SECTION_MAPPING 2 #define NRN_SECTION_MAPPING 30 return segments.size();
50 secmapping.push_back(s);
56 for(
size_t i = 0;
i < secmapping.size();
i++) {
57 nsec += secmapping[
i]->nsec;
65 for(
size_t i = 0;
i < secmapping.size();
i++) {
66 nseg += secmapping[
i]->segments.size();
73 return secmapping.size();
77 for(
size_t i = 0;
i < secmapping.size();
i++) {
95 return mapping.size();
102 for(
size_t i = 0;
i < mapping.size();
i++) {
110 for(
size_t i = 0;
i < mapping.size();
i++) {
119 for(
int i = 0;
i < mapping.size();
i++) {
120 if ( mapping[
i]->gid == gid)
134 mapping.push_back(c);
143 #endif // NRN_SECTION_MAPPING Section to segment mapping.
int nsec
number of sections in section list
size_t size()
number of section lists
void clear()
after writing NrnThread to file we remove all previous mapping information, free memory.
std::vector< SecMapping * > secmapping
list of section lists (like soma, axon, apic)
std::string name
name of section list
CellMapping(int g, SecMapping *s)
int num_segments()
total number of segments in a cell
int const size_t const size_t n
int num_sections()
total number of sections in a cell
CellMapping * get_cell_mapping(int gid)
get cell mapping information for given gid if exist otherwise return NULL.
~NrnMappingInfo()
memory cleanup
Compartment mapping information for NrnThread.
size_t size()
number of cells
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...
SecMapping(int n, std::string s)
void nrn_write_mapping_info(const char *, int, NrnMappingInfo &)
dump mapping information to gid_3.dat file
std::vector< CellMapping * > mapping
list of cells mapping
Compartment mapping information for a cell.
std::vector< int > segments
list of segments
std::vector< int > sections
list sections associated with each segment