Merge pull request #13 from jakobwenzel/cur_cell

added getters for current cell
This commit is contained in:
Seleznev Anton 2019-08-27 13:13:17 +03:00 committed by GitHub
commit f3ed2db0fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.
* *