NEURON
coreneuron::CellMapping Struct Reference

Compartment mapping information for a cell. More...

#include <nrnsection_mapping.hpp>

Public Member Functions

 CellMapping (int g)
 
int num_sections () const
 total number of sections in a cell More...
 
int num_segments () const
 return number of segments in a cell More...
 
int num_electrodes () const
 return the number of electrodes in the lfp_factors map More...
 
size_t size () const noexcept
 number of section lists More...
 
void add_sec_map (SecMapping *s)
 add new SecMapping More...
 
SecMappingget_seclist_mapping (const std::string &name) const
 return section list mapping with given name More...
 
size_t get_seclist_segment_count (const std::string &name) const
 return segment count for specific section list with given name More...
 
size_t get_seclist_section_count (const std::string &name) const
 return segment count for specific section list with given name More...
 
void add_segment_lfp_factor (const int segment_id, std::vector< double > &factors)
 add the lfp electrode factors of a segment_id More...
 
 ~CellMapping ()
 

Public Attributes

int gid
 gid of a cell More...
 
std::vector< SecMapping * > secmapvec
 list of section lists (like soma, axon, apic) More...
 
std::unordered_map< int, std::vector< double > > lfp_factors
 map containing segment ids an its respective lfp factors More...
 

Detailed Description

Compartment mapping information for a cell.

A cell can have multiple section list types like soma, axon, apic, dend etc. User will add these section lists using HOC interface.

Definition at line 70 of file nrnsection_mapping.hpp.

Constructor & Destructor Documentation

◆ CellMapping()

coreneuron::CellMapping::CellMapping ( int  g)
inline

Definition at line 80 of file nrnsection_mapping.hpp.

◆ ~CellMapping()

coreneuron::CellMapping::~CellMapping ( )
inline

Definition at line 158 of file nrnsection_mapping.hpp.

Member Function Documentation

◆ add_sec_map()

void coreneuron::CellMapping::add_sec_map ( SecMapping s)
inline

add new SecMapping

Definition at line 118 of file nrnsection_mapping.hpp.

◆ add_segment_lfp_factor()

void coreneuron::CellMapping::add_segment_lfp_factor ( const int  segment_id,
std::vector< double > &  factors 
)
inline

add the lfp electrode factors of a segment_id

Definition at line 154 of file nrnsection_mapping.hpp.

◆ get_seclist_mapping()

SecMapping* coreneuron::CellMapping::get_seclist_mapping ( const std::string &  name) const
inline

return section list mapping with given name

Definition at line 123 of file nrnsection_mapping.hpp.

◆ get_seclist_section_count()

size_t coreneuron::CellMapping::get_seclist_section_count ( const std::string &  name) const
inline

return segment count for specific section list with given name

Definition at line 144 of file nrnsection_mapping.hpp.

◆ get_seclist_segment_count()

size_t coreneuron::CellMapping::get_seclist_segment_count ( const std::string &  name) const
inline

return segment count for specific section list with given name

Definition at line 135 of file nrnsection_mapping.hpp.

◆ num_electrodes()

int coreneuron::CellMapping::num_electrodes ( ) const
inline

return the number of electrodes in the lfp_factors map

Definition at line 104 of file nrnsection_mapping.hpp.

◆ num_sections()

int coreneuron::CellMapping::num_sections ( ) const
inline

total number of sections in a cell

Definition at line 84 of file nrnsection_mapping.hpp.

◆ num_segments()

int coreneuron::CellMapping::num_segments ( ) const
inline

return number of segments in a cell

Definition at line 94 of file nrnsection_mapping.hpp.

◆ size()

size_t coreneuron::CellMapping::size ( ) const
inlinenoexcept

number of section lists

Definition at line 113 of file nrnsection_mapping.hpp.

Member Data Documentation

◆ gid

int coreneuron::CellMapping::gid

gid of a cell

Definition at line 72 of file nrnsection_mapping.hpp.

◆ lfp_factors

std::unordered_map<int, std::vector<double> > coreneuron::CellMapping::lfp_factors

map containing segment ids an its respective lfp factors

Definition at line 78 of file nrnsection_mapping.hpp.

◆ secmapvec

std::vector<SecMapping*> coreneuron::CellMapping::secmapvec

list of section lists (like soma, axon, apic)

Definition at line 75 of file nrnsection_mapping.hpp.


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