BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::electronics::NetlistElement Struct Reference

one element card ( R/C/L/V/I/D ), lexed but not interpreted: all payloads stay strings; numeric conversion and semantic validation are the netlist factory's job More...

#include <cl_NetlistParser.hpp>

Collaboration diagram for belfem::electronics::NetlistElement:
[legend]

Public Attributes

char mType = '?'
 element letter, case-folded: 'r' 'c' 'l' 'v' 'i' 'd'
string mName
Cell< stringmNodes
Cell< stringmValues
Map< string, stringmKwargs
 key=value tokens ( "r" -> "5k", "ic" -> "0" ), case-folded
index_t mLine = 0
 1-based physical line of the card's first line
string mCard
 the joined logical card as written, for error reporting

Detailed Description

one element card ( R/C/L/V/I/D ), lexed but not interpreted: all payloads stay strings; numeric conversion and semantic validation are the netlist factory's job

Member Data Documentation

◆ mCard

string belfem::electronics::NetlistElement::mCard

the joined logical card as written, for error reporting

◆ mKwargs

Map< string, string > belfem::electronics::NetlistElement::mKwargs

key=value tokens ( "r" -> "5k", "ic" -> "0" ), case-folded

◆ mLine

index_t belfem::electronics::NetlistElement::mLine = 0

1-based physical line of the card's first line

◆ mName

string belfem::electronics::NetlistElement::mName

full instance name, case-folded ( "is", "l1" ) – becomes the component label

◆ mNodes

Cell< string > belfem::electronics::NetlistElement::mNodes

the two node names, case-folded, as written ( "0", "gnd", "in" ); the ground remap happens in the factory

◆ mType

char belfem::electronics::NetlistElement::mType = '?'

element letter, case-folded: 'r' 'c' 'l' 'v' 'i' 'd'

◆ mValues

Cell< string > belfem::electronics::NetlistElement::mValues

positional tokens after the nodes, case-folded, parentheses and commas normalized to spaces ( "sin", "0", "500", "10" )


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