Add Table constructor from Elements. (#310)

This commit is contained in:
Arthur Sonzogni
2022-01-16 16:46:32 +01:00
committed by GitHub
parent feb24b9498
commit 382205c057
4 changed files with 26 additions and 2 deletions

View File

@@ -33,7 +33,9 @@ class TableSelection;
class Table {
public:
Table();
Table(std::vector<std::vector<std::string>>);
Table(std::vector<std::vector<Element>>);
TableSelection SelectAll();
TableSelection SelectCell(int column, int row);
TableSelection SelectRow(int row_index);
@@ -47,6 +49,7 @@ class Table {
Element Render();
private:
void Initialize(std::vector<std::vector<Element>>);
friend TableSelection;
std::vector<std::vector<Element>> elements_;
int input_dim_x_;