#include <InterfaceFile.hpp>
|
| void | resize (int n) |
| | Replace interface-node mappings while retaining value arrays.
|
| |
|
| int | count = 0 |
| |
| std::vector< int > | node_idx |
| | Node indices in this model.
|
| |
| std::vector< double > | old_values |
| | Previous timestep values (flow + polluts per node)
|
| |
| std::vector< double > | new_values |
| | Current timestep values (flow + polluts per node)
|
| |
◆ resize()
| void openswmm::iface::InterfaceFileSoA::resize |
( |
int | n | ) |
|
Replace interface-node mappings while retaining value arrays.
Initializes node_idx=-1. Caller separately sizes old/new values to count*(1+pollutants); does not clear their previous contents. Allocation can throw after count changes.
- Parameters
-
| [in] | n | Requested entry count; stored verbatim in count, but negative allocates zero node mappings. Caller should supply nonnegative input. |
◆ count
| int openswmm::iface::InterfaceFileSoA::count = 0 |
◆ new_values
| std::vector<double> openswmm::iface::InterfaceFileSoA::new_values |
Current timestep values (flow + polluts per node)
◆ node_idx
| std::vector<int> openswmm::iface::InterfaceFileSoA::node_idx |
Node indices in this model.
◆ old_values
| std::vector<double> openswmm::iface::InterfaceFileSoA::old_values |
Previous timestep values (flow + polluts per node)
The documentation for this struct was generated from the following files: