/
thomas-king
/
ArgumentsParser
Обзор
Документация
Войти
/
thomas-king
/
ArgumentsParser
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
include/Manual/Models/Table.h
48 строк
869 B
Ace Rodstin
Update header files
22 ноя 2023, 03:04
22 ноя 2023, 03:04
e102d33
Код
Авторство
О чём код?
// // Table.h // Manual // // Created by Ace Rodstin on 11/20/23. // Updated by Ace Rodstin on 11/20/23. // // Copyright (C) 2023 Ace Rodstin. All rights reserved. // #ifndef MANUAL_TABLE_HEADER_FILE #define MANUAL_TABLE_HEADER_FILE #include "Manual/Models/Column.h" #include <utility> #include <vector> #include <tuple> using namespace std; namespace manual { class Table { public: struct Shape { int columnsCount; int linesCount; }; struct Location { int column; int line; }; Table(initializer_list<Column> columns); vector<Column> getColumns() const; Shape getShape() const; vector<Cell::Size> getSize() const; Cell::Value operator [](Location location) const; private: vector<Column> columns; }; } #endif