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

SoA collection of all time series and curves in the model. More...

#include <TableData.hpp>

Collaboration diagram for openswmm::TableData:

Public Member Functions

std::size_t count () const noexcept
 
Tableoperator[] (int idx)
 
const Tableoperator[] (int idx) const
 
int add (const std::string &id, TableType type)
 Add a new empty table with the given ID and type.
 
void reset_cursors () noexcept
 Reset all cursors (call before re-running a simulation).
 

Public Attributes

std::vector< Tabletables
 All tables in index order.
 

Detailed Description

SoA collection of all time series and curves in the model.

Indexed by table index (integer). Lookup by name is done via the SimulationContext name-to-index hash map.

Member Function Documentation

◆ add()

int openswmm::TableData::add ( const std::string &  id,
TableType  type 
)
inline

Add a new empty table with the given ID and type.

Returns
Index of the new table.
Here is the caller graph for this function:

◆ count()

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

◆ operator[]() [1/2]

Table & openswmm::TableData::operator[] ( int  idx)
inline

◆ operator[]() [2/2]

const Table & openswmm::TableData::operator[] ( int  idx) const
inline

◆ reset_cursors()

void openswmm::TableData::reset_cursors ( )
inlinenoexcept

Reset all cursors (call before re-running a simulation).

Here is the caller graph for this function:

Member Data Documentation

◆ tables

std::vector<Table> openswmm::TableData::tables

All tables in index order.


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