NEURON
coreneuron::NrnThreadMappingInfo Struct Reference

Compartment mapping information for NrnThread. More...

#include <nrnsection_mapping.hpp>

Public Member Functions

size_t size () const
 number of cells More...
 
 ~NrnThreadMappingInfo ()
 memory cleanup More...
 
CellMappingget_cell_mapping (int gid) const
 get cell mapping information for given gid if exist otherwise return nullptr. More...
 
void add_cell_mapping (CellMapping *c)
 add mapping information of new cell More...
 
void add_segment_id (const int segment_id)
 add a new segment More...
 
void prepare_lfp ()
 Resize the lfp vector. More...
 

Public Attributes

std::vector< CellMapping * > mappingvec
 list of cells mapping More...
 
std::vector< int > segment_ids
 list of segment ids More...
 
std::vector< double > _lfp
 

Detailed Description

Compartment mapping information for NrnThread.

NrnThread could have more than one cell in cellgroup and we store this in vector.

Definition at line 170 of file nrnsection_mapping.hpp.

Constructor & Destructor Documentation

◆ ~NrnThreadMappingInfo()

coreneuron::NrnThreadMappingInfo::~NrnThreadMappingInfo ( )
inline

memory cleanup

Definition at line 185 of file nrnsection_mapping.hpp.

Member Function Documentation

◆ add_cell_mapping()

void coreneuron::NrnThreadMappingInfo::add_cell_mapping ( CellMapping c)
inline

add mapping information of new cell

Definition at line 204 of file nrnsection_mapping.hpp.

◆ add_segment_id()

void coreneuron::NrnThreadMappingInfo::add_segment_id ( const int  segment_id)
inline

add a new segment

Definition at line 209 of file nrnsection_mapping.hpp.

◆ get_cell_mapping()

CellMapping* coreneuron::NrnThreadMappingInfo::get_cell_mapping ( int  gid) const
inline

get cell mapping information for given gid if exist otherwise return nullptr.

Definition at line 194 of file nrnsection_mapping.hpp.

◆ prepare_lfp()

void coreneuron::NrnThreadMappingInfo::prepare_lfp ( )
inline

Resize the lfp vector.

Definition at line 214 of file nrnsection_mapping.hpp.

◆ size()

size_t coreneuron::NrnThreadMappingInfo::size ( ) const
inline

number of cells

Definition at line 180 of file nrnsection_mapping.hpp.

Member Data Documentation

◆ _lfp

std::vector<double> coreneuron::NrnThreadMappingInfo::_lfp

Definition at line 177 of file nrnsection_mapping.hpp.

◆ mappingvec

std::vector<CellMapping*> coreneuron::NrnThreadMappingInfo::mappingvec

list of cells mapping

Definition at line 172 of file nrnsection_mapping.hpp.

◆ segment_ids

std::vector<int> coreneuron::NrnThreadMappingInfo::segment_ids

list of segment ids

Definition at line 175 of file nrnsection_mapping.hpp.


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