Go to the documentation of this file.
   43         : 
name(std::move(s)) {}
 
   52         return std::accumulate(
secmap.begin(), 
secmap.end(), 0, [](
int psum, 
const auto& item) {
 
   53             return psum + item.second.size();
 
   84                                [](
int psum, 
const auto& secmap) {
 
   85                                    return psum + secmap->num_sections();
 
   94                                [](
int psum, 
const auto& secmap) {
 
   95                                    return psum + secmap->num_segments();
 
  112             if (name == secmap->name) {
 
  117         std::cout << 
"Warning: Section mapping list " << name << 
" doesn't exist! \n";
 
  173             if (mapping->gid == gid) {
 
  
 
size_t num_sections() const noexcept
return total number of sections in section list
~NrnThreadMappingInfo()
memory cleanup
Compartment mapping information for a cell.
int num_sections() const
total number of sections in a cell
SecMapping(std::string s)
int num_segments() const
return number of segments in a cell
std::vector< int > segvec_type
type to store every section and associated segments
secseg_map_type::iterator secseg_it_type
void add_sec_map(SecMapping *s)
add new SecMapping
size_t num_segments() const
return number of segments in section list
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
size_t size() const
number of cells
CellMapping * get_cell_mapping(int gid) const
get cell mapping information for given gid if exist otherwise return nullptr.
Compartment mapping information for NrnThread.
std::vector< CellMapping * > mappingvec
list of cells mapping
secseg_map_type secmap
map of section and associated segments
size_t get_seclist_segment_count(const std::string &name) const
return segment count for specific section list with given name
std::map< int, segvec_type > secseg_map_type
std::string name
name of section list
size_t get_seclist_section_count(const std::string &name) const
return segment count for specific section list with given name
size_t size() const noexcept
number of section lists
Section to segment mapping.
void add_segment(int sec, int seg)
add section to associated segment
std::vector< SecMapping * > secmapvec
list of section lists (like soma, axon, apic)
void add_cell_mapping(CellMapping *c)
add mapping information of new cell
SecMapping * get_seclist_mapping(const std::string &name) const
return section list mapping with given name