Merge pull request #13 from jakobwenzel/cur_cell
added getters for current cell
This commit is contained in:
commit
f3ed2db0fd
18
lib/fort.hpp
18
lib/fort.hpp
@ -945,6 +945,24 @@ public:
|
||||
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.
|
||||
*
|
||||
|
18
src/fort.hpp
18
src/fort.hpp
@ -945,6 +945,24 @@ public:
|
||||
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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user