added getters for current cell

This commit is contained in:
Jakob Wenzel 2019-08-26 13:26:41 +02:00
parent d3d3e1821c
commit 1b62eaa76e
2 changed files with 36 additions and 0 deletions

View File

@ -945,6 +945,24 @@ public:
return (*this)[row_idx][col_idx]; return (*this)[row_idx][col_idx];
} }
size_t
cur_col()
{
return ft_cur_col(table_);
}
size_t
cur_row()
{
return ft_cur_row(table_);
}
class table_cell
cur_cell()
{
return cell(cur_row(), cur_col());
}
/** /**
* Get row. * Get row.
* *

View File

@ -945,6 +945,24 @@ public:
return (*this)[row_idx][col_idx]; return (*this)[row_idx][col_idx];
} }
size_t
cur_col()
{
return ft_cur_col(table_);
}
size_t
cur_row()
{
return ft_cur_row(table_);
}
class table_cell
cur_cell()
{
return cell(cur_row(), cur_col());
}
/** /**
* Get row. * Get row.
* *