OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::mathexpr::Token Struct Reference

#include <MathExpr.hpp>

Collaboration diagram for openswmm::mathexpr::Token:

Public Attributes

TokenType type = TokenType::NUMBER
 
double value = 0.0
 For NUMBER tokens.
 
int var_idx = -1
 For VARIABLE tokens (index into variable table)
 
std::string var_name
 For VARIABLE tokens (name for lookup)
 

Member Data Documentation

◆ type

TokenType openswmm::mathexpr::Token::type = TokenType::NUMBER

◆ value

double openswmm::mathexpr::Token::value = 0.0

For NUMBER tokens.

◆ var_idx

int openswmm::mathexpr::Token::var_idx = -1

For VARIABLE tokens (index into variable table)

◆ var_name

std::string openswmm::mathexpr::Token::var_name

For VARIABLE tokens (name for lookup)


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