![]() |
UtilsLite
Utilities for C++ programming
|
Represents a row in a table consisting of multiple cells. More...
#include <Table.hxx>
Public Member Functions | |
Row ()=default | |
Default constructor for an empty row. | |
Row (Table *table, vecstr const &cells=vecstr()) | |
Constructs a row with a set of initial cell values. | |
Table const * | table () const |
void | cells (vecstr const &cells) |
integer | num_cells () const |
integer | cell_width (integer idx) const |
void | cell_col_span (integer idx, integer span) |
void | cell (string_view value) |
Cell const & | operator[] (integer idx) const |
Cell & | operator[] (integer idx) |
integer | height () const |
string | render () const |
Protected Types | |
using | vecCell = vector<Cell> |
using | vecstr = vector<string> |
Protected Attributes | |
Table * | m_Table = nullptr |
vecCell | m_Cells |
Represents a row in a table consisting of multiple cells.
The Row
class manages a collection of cells that form a single row in the table. Each cell in the row can be accessed, modified, and rendered individually.
|
protected |
|
protected |
|
default |
Default constructor for an empty row.
Constructs a row with a set of initial cell values.
table | Pointer to the table containing the row. |
cells | A vector of strings representing initial cell values. |
void Utils::Table::Row::cell | ( | string_view | value | ) |
void Utils::Table::Row::cells | ( | vecstr const & | cells | ) |
integer Utils::Table::Row::height | ( | ) | const |
|
inline |
string Utils::Table::Row::render | ( | ) | const |
|
inline |
|
protected |
|
protected |