User Guide
nmodl::codegen::LongitudinalDiffusionInfo Class Reference

Information required to print LONGITUDINAL_DIFFUSION callbacks. More...

Detailed Description

Information required to print LONGITUDINAL_DIFFUSION callbacks.

Definition at line 290 of file codegen_info.hpp.

#include <codegen_info.hpp>

Public Member Functions

 LongitudinalDiffusionInfo (const std::shared_ptr< ast::Name > &index_name, std::shared_ptr< ast::Expression > volume_expr, const std::shared_ptr< ast::Name > &rate_index_name, std::shared_ptr< ast::Expression > rate_expr)
 
std::shared_ptr< ast::Expressionvolume (const std::string &index_name) const
 Volume of this species. More...
 
std::shared_ptr< ast::Expressiondiffusion_rate (const std::string &index_name) const
 Difusion rate of this species. More...
 
double dfcdc (const std::string &) const
 The value of what NEURON calls dfcdc. More...
 

Protected Member Functions

std::shared_ptr< ast::Expressionsubstitute_index (const std::string &index_name, const std::string &old_index_name, const std::shared_ptr< ast::Expression > &old_expr) const
 

Private Attributes

std::string volume_index_name
 
std::shared_ptr< ast::Expressionvolume_expr
 
std::string rate_index_name
 
std::shared_ptr< ast::Expressionrate_expr
 

Constructor & Destructor Documentation

◆ LongitudinalDiffusionInfo()

nmodl::codegen::LongitudinalDiffusionInfo::LongitudinalDiffusionInfo ( const std::shared_ptr< ast::Name > &  index_name,
std::shared_ptr< ast::Expression volume_expr,
const std::shared_ptr< ast::Name > &  rate_index_name,
std::shared_ptr< ast::Expression rate_expr 
)

Definition at line 22 of file codegen_info.cpp.

Member Function Documentation

◆ dfcdc()

double nmodl::codegen::LongitudinalDiffusionInfo::dfcdc ( const std::string &  ) const

The value of what NEURON calls dfcdc.

Definition at line 41 of file codegen_info.cpp.

◆ diffusion_rate()

std::shared_ptr< ast::Expression > nmodl::codegen::LongitudinalDiffusionInfo::diffusion_rate ( const std::string &  index_name) const

Difusion rate of this species.

If the diffusion expression is an indexed expression, the index in the expression is substituted with index_name.

Definition at line 36 of file codegen_info.cpp.

◆ substitute_index()

std::shared_ptr< ast::Expression > nmodl::codegen::LongitudinalDiffusionInfo::substitute_index ( const std::string &  index_name,
const std::string &  old_index_name,
const std::shared_ptr< ast::Expression > &  old_expr 
) const
protected

Definition at line 48 of file codegen_info.cpp.

◆ volume()

std::shared_ptr< ast::Expression > nmodl::codegen::LongitudinalDiffusionInfo::volume ( const std::string &  index_name) const

Volume of this species.

If the volume expression is an indexed expression, the index in the expression is substituted with index_name.

Definition at line 32 of file codegen_info.cpp.

Member Data Documentation

◆ rate_expr

std::shared_ptr<ast::Expression> nmodl::codegen::LongitudinalDiffusionInfo::rate_expr
private

Definition at line 322 of file codegen_info.hpp.

◆ rate_index_name

std::string nmodl::codegen::LongitudinalDiffusionInfo::rate_index_name
private

Definition at line 321 of file codegen_info.hpp.

◆ volume_expr

std::shared_ptr<ast::Expression> nmodl::codegen::LongitudinalDiffusionInfo::volume_expr
private

Definition at line 319 of file codegen_info.hpp.

◆ volume_index_name

std::string nmodl::codegen::LongitudinalDiffusionInfo::volume_index_name
private

Definition at line 318 of file codegen_info.hpp.


The documentation for this class was generated from the following files: