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

#include <InterfaceFile.hpp>

Collaboration diagram for openswmm::iface::InterfaceFileSoA:

Public Member Functions

void resize (int n)
 Replace interface-node mappings while retaining value arrays.
 

Public Attributes

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)
 

Member Function Documentation

◆ 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]nRequested entry count; stored verbatim in count, but negative allocates zero node mappings. Caller should supply nonnegative input.

Member Data Documentation

◆ 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: