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

#include <TransportPolicy.hpp>

Collaboration diagram for openswmm::transport::Matrix:

Public Member Functions

const Cell & at (Domain d, SpeciesClass c) const noexcept
 Borrow one transport matrix cell by enum index.
 
Cell & at (Domain d, SpeciesClass c) noexcept
 Borrow one transport matrix cell by enum index.
 

Public Attributes

Cell cells [static_cast< int >(Domain::COUNT)][static_cast< int >(SpeciesClass::COUNT)]
 

Member Function Documentation

◆ at() [1/2]

const Cell & openswmm::transport::Matrix::at ( Domain d,
SpeciesClass c ) const
inlinenoexcept

Borrow one transport matrix cell by enum index.

Parameters
[in]dValid domain in [RUNOFF,COUNT), unchecked.
[in]cValid class in [POLLUTANTS,COUNT), unchecked.
Returns
Reference to matrix-owned cell, constness determined by overload. No allocation, validation or ownership transfer; matrix must remain alive/stable and mutable use exclusive.
Here is the caller graph for this function:

◆ at() [2/2]

Cell & openswmm::transport::Matrix::at ( Domain d,
SpeciesClass c )
inlinenoexcept

Borrow one transport matrix cell by enum index.

Parameters
[in]dValid domain in [RUNOFF,COUNT), unchecked.
[in]cValid class in [POLLUTANTS,COUNT), unchecked.
Returns
Reference to matrix-owned cell, constness determined by overload. No allocation, validation or ownership transfer; matrix must remain alive/stable and mutable use exclusive.

Member Data Documentation

◆ cells

Cell openswmm::transport::Matrix::cells[static_cast< int >(Domain::COUNT)][static_cast< int >(SpeciesClass::COUNT)]

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