User Guide
nmodl::codegen::IndexVariableInfo Class Reference

Helper to represent information about index/int variables. More...

Detailed Description

Helper to represent information about index/int variables.

Definition at line 111 of file codegen_cpp_visitor.hpp.

#include <codegen_cpp_visitor.hpp>

Public Member Functions

 IndexVariableInfo (std::shared_ptr< symtab::Symbol > symbol, bool is_vdata=false, bool is_index=false, bool is_integer=false)
 

Public Attributes

const std::shared_ptr< symtab::Symbolsymbol
 symbol for the variable More...
 
bool is_vdata = false
 if variable resides in vdata field of NrnThread typically true for bbcore pointer More...
 
bool is_index = false
 if this is pure index (e.g. More...
 
bool is_integer = false
 if this is an integer (e.g. More...
 
bool is_constant = false
 if the variable is qualified as constant (this is property of IndexVariable) More...
 

Constructor & Destructor Documentation

◆ IndexVariableInfo()

nmodl::codegen::IndexVariableInfo::IndexVariableInfo ( std::shared_ptr< symtab::Symbol symbol,
bool  is_vdata = false,
bool  is_index = false,
bool  is_integer = false 
)
inlineexplicit

Definition at line 130 of file codegen_cpp_visitor.hpp.

Member Data Documentation

◆ is_constant

bool nmodl::codegen::IndexVariableInfo::is_constant = false

if the variable is qualified as constant (this is property of IndexVariable)

Definition at line 128 of file codegen_cpp_visitor.hpp.

◆ is_index

bool nmodl::codegen::IndexVariableInfo::is_index = false

if this is pure index (e.g.

style_ion) variables is directly index and shouldn't be printed with data/vdata

Definition at line 121 of file codegen_cpp_visitor.hpp.

◆ is_integer

bool nmodl::codegen::IndexVariableInfo::is_integer = false

if this is an integer (e.g.

tqitem, point_process) variable which is printed as array accesses

Definition at line 125 of file codegen_cpp_visitor.hpp.

◆ is_vdata

bool nmodl::codegen::IndexVariableInfo::is_vdata = false

if variable resides in vdata field of NrnThread typically true for bbcore pointer

Definition at line 117 of file codegen_cpp_visitor.hpp.

◆ symbol

const std::shared_ptr<symtab::Symbol> nmodl::codegen::IndexVariableInfo::symbol

symbol for the variable

Definition at line 113 of file codegen_cpp_visitor.hpp.


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