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

#include <QualityData.hpp>

Collaboration diagram for openswmm::LanduseData:

Public Member Functions

int count () const
 Count land-use rows from the sweep interval column.
 
void resize (int n)
 Replace all land-use parameter/comment rows with defaults.
 
void shrink_to_fit ()
 Request capacity reduction for the owned parameter columns.
 

Public Attributes

std::vector< double > sweep_interval
 Days between sweeps.
 
std::vector< double > sweep_removal
 Max removal fraction (0-100)
 
std::vector< double > last_swept
 Days since last swept.
 
std::vector< std::string > comments
 Object comment from the INP file (';'-prefixed lines immediately above this landuse's data row), joined by literal "\\n". Empty string means no comment.
 

Member Function Documentation

◆ count()

int openswmm::LanduseData::count ( ) const
inline

Count land-use rows from the sweep interval column.

Returns
sweep_interval.size() converted to int; no parallel-column alignment check.

◆ resize()

void openswmm::LanduseData::resize ( int n)
inline

Replace all land-use parameter/comment rows with defaults.

Sets interval/removal/last-swept values to zero and comments empty; caller maps land-use names separately. Independent assignments can fail partway.

Parameters
[in]nNonnegative land-use count; no guard before conversion to size_t.

◆ shrink_to_fit()

void openswmm::LanduseData::shrink_to_fit ( )
inline

Request capacity reduction for the owned parameter columns.

Preserves sizes/values. Standard vector requests need not reduce capacity and may allocate/throw; any reallocation invalidates borrowed elements.

Member Data Documentation

◆ comments

std::vector<std::string> openswmm::LanduseData::comments

Object comment from the INP file (';'-prefixed lines immediately above this landuse's data row), joined by literal "\\n". Empty string means no comment.

◆ last_swept

std::vector<double> openswmm::LanduseData::last_swept

Days since last swept.

◆ sweep_interval

std::vector<double> openswmm::LanduseData::sweep_interval

Days between sweeps.

◆ sweep_removal

std::vector<double> openswmm::LanduseData::sweep_removal

Max removal fraction (0-100)


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