NEURON
NrnMappingInfo Struct Reference

Compartment mapping information for NrnThread. More...

#include <nrnsection_mapping.h>

Public Member Functions

size_t size ()
 number of cells More...
 
void clear ()
 after writing NrnThread to file we remove all previous mapping information, free memory. More...
 
 ~NrnMappingInfo ()
 memory cleanup More...
 
CellMappingget_cell_mapping (int gid)
 get cell mapping information for given gid if exist otherwise return NULL. More...
 
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. More...
 

Public Attributes

std::vector< CellMapping * > mapping
 list of cells mapping More...
 

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 93 of file nrnsection_mapping.h.

Constructor & Destructor Documentation

◆ ~NrnMappingInfo()

NrnMappingInfo::~NrnMappingInfo ( )
inline

memory cleanup

Definition at line 113 of file nrnsection_mapping.h.

Member Function Documentation

◆ add_sec_mapping()

void NrnMappingInfo::add_sec_mapping ( int  gid,
SecMapping s 
)
inline

add section mapping information for given gid if cell is not peviously added, create new cell mapping.

Definition at line 133 of file nrnsection_mapping.h.

◆ clear()

void NrnMappingInfo::clear ( )
inline

after writing NrnThread to file we remove all previous mapping information, free memory.

Definition at line 105 of file nrnsection_mapping.h.

◆ get_cell_mapping()

CellMapping* NrnMappingInfo::get_cell_mapping ( int  gid)
inline

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

Definition at line 122 of file nrnsection_mapping.h.

◆ size()

size_t NrnMappingInfo::size ( )
inline

number of cells

Definition at line 98 of file nrnsection_mapping.h.

Member Data Documentation

◆ mapping

std::vector<CellMapping*> NrnMappingInfo::mapping

list of cells mapping

Definition at line 95 of file nrnsection_mapping.h.


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