MD::TableRow Class

template <typename Trait> class MD::TableRow

Table row. More...

Header: #include <md4qt/doc.h>
CMake: find_package(md4qt REQUIRED COMPONENTS md4qt)
target_link_libraries(mytarget PRIVATE md4qt::md4qt)
Inherits: MD::Item

Public Types

Public Functions

void appendCell(MD::TableRow<Trait>::TableCellSharedPointer c)
const MD::TableRow<Trait>::Cells &cells() const
std::shared_ptr<MD::Item<Trait>> clone(MD::Document<Trait> *doc = nullptr) const override
bool isEmpty() const
MD::ItemType type() const override

Detailed Description

Row of table cells in GitHub flavored Markdown tables.

See also MD::TableCell and MD::Table.

Member Type Documentation

[alias] TableRow::Cells

Type of a list of table cells.

[alias] TableRow::TableCellSharedPointer

Type of a smart pointer to table cell.

Member Function Documentation

void TableRow::appendCell(MD::TableRow<Trait>::TableCellSharedPointer c)

Append cell.

c New value.

const MD::TableRow<Trait>::Cells &TableRow::cells() const

Returns list of cells.

std::shared_ptr<MD::Item<Trait>> TableRow::clone(MD::Document<Trait> *doc = nullptr) const

Clone this table row.

doc Parent of new item.

bool TableRow::isEmpty() const

Returns whether this row empty?

MD::ItemType TableRow::type() const

Returns type of the item.