[A] Add functions to check if table is empty to the API

This commit is contained in:
seleznevae
2019-12-13 23:30:30 +03:00
parent f17f150e43
commit 71188fd0fb
9 changed files with 115 additions and 14 deletions

View File

@@ -1012,7 +1012,7 @@ public:
* Column number of the current cell.
*/
size_t
cur_col()
cur_col() const noexcept
{
return ft_cur_col(table_);
}
@@ -1024,11 +1024,24 @@ public:
* Row number of the current cell.
*/
size_t
cur_row()
cur_row() const noexcept
{
return ft_cur_row(table_);
}
/**
* Check if table is empty.
*
* @return
* true - table is empty
* false - some data has been inserted
*/
bool
is_empty() const noexcept
{
return ft_is_empty(table_);
}
/**
* Get current cell.
*