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

Which element a flux evaluator is being called for. More...

#include <HeatOverrideData.hpp>

Collaboration diagram for openswmm::HeatElement:

Static Public Member Functions

static HeatElement node (int i)
 
static HeatElement link (int i)
 
static HeatElement subcatch (int i)
 
static HeatElement cell2d (int i)
 

Public Attributes

HeatElemKind kind = HeatElemKind::LINK
 
int index = -1
 

Detailed Description

Which element a flux evaluator is being called for.

Default-constructs to an INVALID index deliberately: a binding that forgets to pass a real element gets the global config (the accessors treat index < 0 as "no override"), which is the safe answer, while a gate that pins per-element behaviour still catches the omission. The alternative — defaulting to index 0 — would silently give every element the FIRST link's attributes.

Member Function Documentation

◆ cell2d()

static HeatElement openswmm::HeatElement::cell2d ( int i)
inlinestatic

◆ link()

static HeatElement openswmm::HeatElement::link ( int i)
inlinestatic
Here is the caller graph for this function:

◆ node()

static HeatElement openswmm::HeatElement::node ( int i)
inlinestatic
Here is the caller graph for this function:

◆ subcatch()

static HeatElement openswmm::HeatElement::subcatch ( int i)
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ index

int openswmm::HeatElement::index = -1

◆ kind

HeatElemKind openswmm::HeatElement::kind = HeatElemKind::LINK

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