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

#include <SourceResultHistory.hpp>

Collaboration diagram for openswmm::twoD::SourceResultTable:

Public Member Functions

std::size_t rows () const
 Read the first column's row count without validating the remaining columns.
 

Public Attributes

std::vector< std::string > fields
 
std::vector< std::string > units
 
std::vector< std::vector< double > > columns
 

Detailed Description

Columnar diagnostics. Identifiers refer to the saved name/usage tables; Frame meaning belongs to its recorder, never to the hydraulic report index.

Member Function Documentation

◆ rows()

std::size_t openswmm::twoD::SourceResultTable::rows ( ) const
inline

Read the first column's row count without validating the remaining columns.

Returns
Zero if no columns exist, otherwise columns.front().size(). A valid table has equal column lengths; callers must validate that invariant separately. No allocation or mutation.

Member Data Documentation

◆ columns

std::vector<std::vector<double> > openswmm::twoD::SourceResultTable::columns

◆ fields

std::vector<std::string> openswmm::twoD::SourceResultTable::fields

◆ units

std::vector<std::string> openswmm::twoD::SourceResultTable::units

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