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_compartments () const
 return number of compartments 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 (std::shared_ptr< SecMapping > s)
 add new SecMapping More...
 
std::shared_ptr< SecMappingget_seclist_mapping (const SectionType type) const
 return section list mapping with given type More...
 
size_t get_seclist_compartment_count (const SectionType type) const
 return compartment count for specific section list with given type More...
 
size_t get_seclist_section_count (const SectionType type) const
 return segment count for specific section list with given type More...
 
void add_segment_lfp_factor (const int segment_id, std::vector< double > &factors)
 add the lfp electrode factors of a segment_id More...
 

Public Attributes

int gid
 gid of a cell More...
 
std::vector< std::shared_ptr< SecMapping > > sec_mappings
 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 69 of file nrnsection_mapping.hpp.

Constructor & Destructor Documentation

◆ CellMapping()

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

Definition at line 79 of file nrnsection_mapping.hpp.

Member Function Documentation

◆ add_sec_map()

void coreneuron::CellMapping::add_sec_map ( std::shared_ptr< SecMapping s)
inline

add new SecMapping

Definition at line 117 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 151 of file nrnsection_mapping.hpp.

◆ get_seclist_compartment_count()

size_t coreneuron::CellMapping::get_seclist_compartment_count ( const SectionType  type) const
inline

return compartment count for specific section list with given type

Definition at line 134 of file nrnsection_mapping.hpp.

◆ get_seclist_mapping()

std::shared_ptr<SecMapping> coreneuron::CellMapping::get_seclist_mapping ( const SectionType  type) const
inline

return section list mapping with given type

Definition at line 122 of file nrnsection_mapping.hpp.

◆ get_seclist_section_count()

size_t coreneuron::CellMapping::get_seclist_section_count ( const SectionType  type) const
inline

return segment count for specific section list with given type

Definition at line 142 of file nrnsection_mapping.hpp.

◆ num_compartments()

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

return number of compartments in a cell

Definition at line 93 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 103 of file nrnsection_mapping.hpp.

◆ num_sections()

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

total number of sections in a cell

Definition at line 83 of file nrnsection_mapping.hpp.

◆ size()

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

number of section lists

Definition at line 112 of file nrnsection_mapping.hpp.

Member Data Documentation

◆ gid

int coreneuron::CellMapping::gid

gid of a cell

Definition at line 71 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 77 of file nrnsection_mapping.hpp.

◆ sec_mappings

std::vector<std::shared_ptr<SecMapping> > coreneuron::CellMapping::sec_mappings

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

Definition at line 74 of file nrnsection_mapping.hpp.


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