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

A single time series or rating curve. More...

#include <TableData.hpp>

Collaboration diagram for openswmm::TableBlock:

Public Member Functions

std::size_t num_rows () const noexcept
 
bool empty () const noexcept
 

Public Attributes

std::vector< double > x
 Independent variable values.
 
std::vector< double > y
 Dependent values (flat: row-major, num_cols per row)
 
int num_cols = 1
 Number of value columns.
 
std::size_t file_row_start = 0
 Row offset in file (cache only)
 

Detailed Description

A single time series or rating curve.

Stores parallel x and y arrays plus a bidirectional cursor for efficient sequential lookup. The x values must be monotonically non-decreasing.

See also
Legacy reference: TTable in src/solver/objects.h

Block of rows for file-backed table boundaries/cache.

Member Function Documentation

◆ empty()

bool openswmm::TableBlock::empty ( ) const
inlinenoexcept
Here is the caller graph for this function:

◆ num_rows()

std::size_t openswmm::TableBlock::num_rows ( ) const
inlinenoexcept
Here is the caller graph for this function:

Member Data Documentation

◆ file_row_start

std::size_t openswmm::TableBlock::file_row_start = 0

Row offset in file (cache only)

◆ num_cols

int openswmm::TableBlock::num_cols = 1

Number of value columns.

◆ x

std::vector<double> openswmm::TableBlock::x

Independent variable values.

◆ y

std::vector<double> openswmm::TableBlock::y

Dependent values (flat: row-major, num_cols per row)


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