A library for working with phylogenetic and population genetic data.
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()

Binder ( TableLayout const &  l,
Table const &  t 

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

Friends And Related Function Documentation

◆ operator<<

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

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

Member Data Documentation

◆ layout

TableLayout const& layout

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

◆ table

Table const& table

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

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