#include <genesis/utils/text/table.hpp>
Helper struct to bind a layout to a table.
An std::stream can only take one argument at a time. This Binder servers as a single argument that internally provides both a layout and a table. The operator<<
of Binder is overloaded so that the table is outputted to the stream with the layout.
Definition at line 282 of file utils/text/table.hpp.
Public Member Functions | |
Binder (TableLayout const &l, Table const &t) | |
Public Attributes | |
TableLayout const & | layout |
Table const & | table |
Friends | |
std::ostream & | operator<< (std::ostream &out, Binder const &binder) |
|
inline |
Definition at line 284 of file utils/text/table.hpp.
|
friend |
Definition at line 405 of file utils/text/table.cpp.
TableLayout const& layout |
Definition at line 289 of file utils/text/table.hpp.
Table const& table |
Definition at line 290 of file utils/text/table.hpp.