ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
table_row.hpp
Go to the documentation of this file.
1 #ifndef H_TABLE_ROW
2 #define H_TABLE_ROW
3 
4 #include <string>
5 
6 #include "core/named_func.hpp"
7 
8 class TableRow{
9 public:
10  explicit TableRow(const std::string &label,
11  std::size_t lines_before = 1,
12  std::size_t lines_after = 1);
13 
14  TableRow(const std::string &label,
15  const NamedFunc &cut,
16  std::size_t lines_before = 0,
17  std::size_t line_after = 0,
18  const NamedFunc &weight = "weight");
19  TableRow(const TableRow &) = default;
20  TableRow& operator=(const TableRow &) = default;
21  TableRow(TableRow &&) = default;
22  TableRow& operator=(TableRow &&) = default;
23  ~TableRow() = default;
24 
25  std::string label_;
29 
30 private:
31  TableRow() = delete;
32 };
33 
34 #endif
bool is_data_row_
Definition: table_row.hpp:28
Combines a callable function taking a Baby and returning a scalar or vector with its string represent...
Definition: named_func.hpp:13
std::size_t lines_after_
Definition: table_row.hpp:27
~TableRow()=default
NamedFunc weight_
Definition: table_row.hpp:26
std::string label_
Definition: table_row.hpp:25
TableRow & operator=(const TableRow &)=default
TableRow()=delete
std::size_t lines_before_
Definition: table_row.hpp:27
NamedFunc cut_
Definition: table_row.hpp:26