libebook::FB2TableModel Class Reference documentation

Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
libebook::FB2TableModel Class Reference

## Public Member Functions
| FB2TableModel ()
size_t | addRow ()
| Add a row. More...
size_t | addCell (size_t rowSpan, size_t columnSpan)
| Add a cell spanning `rowSpan` rows and `colSpan` columns. More...

## Private Types
typedef std::deque< bool > | Row_t
typedef std::deque< Row_t > | Table_t

## Private Member Functions
void | ensureColumns (Row_t &row)

## Private Attributes
Table_t | m_table
size_t | m_rows
size_t | m_columns
size_t | m_current_row
size_t | m_current_column

## Member Typedef Documentation

## ◆ Row_t

typedef std::deque<bool> libebook::FB2TableModel::Row_t
| private

## ◆ Table_t

typedef std::deque<Row_t> libebook::FB2TableModel::Table_t
| private

## Constructor & Destructor Documentation

## ◆ FB2TableModel()

libebook::FB2TableModel::FB2TableModel | ( |  | ) |

## Member Function Documentation

## ◆ addCell()

size_t libebook::FB2TableModel::addCell | ( | size_t | rowSpan,
|  | size_t | columnSpan
| ) |  |

Add a cell spanning `rowSpan` rows and `colSpan` columns.

Returns
  the total number of following covered cells.

Referenced by libebook::FB2CellContext::openCell().

## ◆ addRow()

size_t libebook::FB2TableModel::addRow | ( |  | ) |

Add a row.

Returns
  then number of cells covered at the beginning of the row.

Referenced by libebook::FB2TrContext::openRow().

## ◆ ensureColumns()

void libebook::FB2TableModel::ensureColumns | ( | Row_t & | row | ) |
| private

Referenced by addCell().

## Member Data Documentation

## ◆ m_columns

size_t libebook::FB2TableModel::m_columns
| private

Referenced by addCell(), addRow(), and ensureColumns().

## ◆ m_current_column

size_t libebook::FB2TableModel::m_current_column
| private

Referenced by addCell(), and addRow().

## ◆ m_current_row

size_t libebook::FB2TableModel::m_current_row
| private

Referenced by addCell(), and addRow().

## ◆ m_rows

size_t libebook::FB2TableModel::m_rows
| private

Referenced by addCell(), and addRow().

## ◆ m_table

Table_t libebook::FB2TableModel::m_table
| private

Referenced by addCell(), and addRow().

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

- FB2TableContext.cpp