#include <SpeciesRegistry.hpp>
◆ add()
| int openswmm::SpeciesRegistry::add |
( |
std::string | name, |
|
|
SpeciesKind | kind, |
|
|
std::string | units ) |
|
inline |
Append a species. Returns the new index, or -1 on a name collision (names are unique across ALL kinds — an MSX species may not shadow a pollutant).
◆ clear()
| void openswmm::SpeciesRegistry::clear |
( |
| ) |
|
|
inline |
◆ count()
| int openswmm::SpeciesRegistry::count |
( |
| ) |
const |
|
inlinenoexcept |
◆ find()
| int openswmm::SpeciesRegistry::find |
( |
std::string_view | name | ) |
const |
|
inline |
◆ kind()
| SpeciesKind openswmm::SpeciesRegistry::kind |
( |
int | i | ) |
const |
|
inline |
◆ name()
| const std::string & openswmm::SpeciesRegistry::name |
( |
int | i | ) |
const |
|
inline |
◆ pollutant_count()
| int openswmm::SpeciesRegistry::pollutant_count |
( |
| ) |
const |
|
inlinenoexcept |
◆ transported_count()
| int openswmm::SpeciesRegistry::transported_count |
( |
| ) |
const |
|
inlinenoexcept |
Species the ARD engine carries on its mesh: POLLUTANT + MSX_BULK (E4/R6) + RESERVED_AGE (A1a) + RESERVED_TEMPERATURE (H4). WALL species are element-local and stay off the mesh.
- Note
- This is a KIND whitelist, the shape lesson 51 warns about: it had to be edited when temperature joined, and will again for the next reserved kind. It currently has no callers in
src/, so a stale entry here is latent rather than live — which is exactly why it was still wrong when H4 arrived.
◆ truncate_to()
| void openswmm::SpeciesRegistry::truncate_to |
( |
int | n | ) |
|
|
inline |
Drop every entry at index >= n (E-C2: the MSX-block rebuild in the reactions CRUD API snapshots the tail, truncates, re-adds the MSX species from ReactionData, then restores the tail). Recounts pollutants defensively, though the pollutant block always precedes n.
◆ units()
| const std::string & openswmm::SpeciesRegistry::units |
( |
int | i | ) |
const |
|
inline |
The documentation for this class was generated from the following file: