A toolkit for working with phylogenetic data.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TableLayout::Binder Struct Reference

#include <genesis/utils/text/table.hpp>

Detailed Description

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


std::ostream & operator<< (std::ostream &out, Binder const &binder)

Constructor & Destructor Documentation

Binder ( TableLayout const &  l,
Table const &  t 

Definition at line 284 of file utils/text/table.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
TableLayout::Binder const &  binder 

Definition at line 405 of file utils/text/table.cpp.

Member Data Documentation

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.

The documentation for this struct was generated from the following file: