|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Dense numeric snapshot used by CSV and JSON readers. More...
#include <ca-io.H>
Public Member Functions | |
| T | at (ca_size_t row, ca_size_t col) const |
Return the value at (row, col). | |
Public Attributes | |
| ca_size_t | width = 0 |
| number of columns | |
| ca_size_t | height = 0 |
| number of rows | |
| Array< T > | cells |
| row-major payload | |
Dense numeric snapshot used by CSV and JSON readers.
Values are stored row-major. The type is deliberately small so callers can adapt it into Dense_Cell_Storage, an engine frame or a custom lattice.
| T | numeric cell type. |
|
inline |
Return the value at (row, col).
| [in] | row | row index. |
| [in] | col | column index. |
| std::out_of_range | if the coordinate is outside the snapshot. |
Definition at line 142 of file ca-io.H.
References ah_out_of_range_error_if, Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::Grid_Snapshot< T >::cells, col, Aleph::CA::Grid_Snapshot< T >::height, row, and Aleph::CA::Grid_Snapshot< T >::width.
row-major payload
Definition at line 131 of file ca-io.H.
Referenced by Aleph::CA::Grid_Snapshot< T >::at().
| ca_size_t Aleph::CA::Grid_Snapshot< T >::height = 0 |
number of rows
Definition at line 130 of file ca-io.H.
Referenced by Aleph::CA::Grid_Snapshot< T >::at(), and Aleph::CA::read_json_snapshot().
| ca_size_t Aleph::CA::Grid_Snapshot< T >::width = 0 |
number of columns
Definition at line 129 of file ca-io.H.
Referenced by Aleph::CA::Grid_Snapshot< T >::at().