Evo C++ Library v0.5.1
Public Member Functions | Public Attributes | List of all members
FmtTableAttribs Struct Reference

#include <evo/fmt.h>

Detailed Description

Helper for adjusting FmtTable column attributes.

Public Member Functions

 FmtTableAttribs (FmtTable &table)
 Constructor. More...
 
FmtTableAttribsoperator<< (FmtAlign align)
 Set alignment for current column and move to next column. More...
 
FmtTableAttribsoperator<< (int minwidth)
 Update minimum width of current column and move to next column. More...
 
FmtTableAttribsoperator<< (const FmtSetField &field)
 Update column alignment and minimum width together and move to next column. More...
 
FmtTableAttribsoperator<< (Newline)
 Reset by moving back to first column. More...
 

Public Attributes

SizeT column_index
 Current column index. More...
 
FmtTabletable
 Paired table to update. More...
 

Constructor & Destructor Documentation

◆ FmtTableAttribs()

FmtTableAttribs ( FmtTable table)
inline

Constructor.

Parameters
tableReference to table to update

Member Function Documentation

◆ operator<<() [1/4]

FmtTableAttribs& operator<< ( FmtAlign  align)
inline

Set alignment for current column and move to next column.

Parameters
alignColumn alignment value
Returns
This

◆ operator<<() [2/4]

FmtTableAttribs& operator<< ( int  minwidth)
inline

Update minimum width of current column and move to next column.

  • This updates updates the column width if the new value is greater
Parameters
minwidthNew minimum width for column
Returns
This

◆ operator<<() [3/4]

FmtTableAttribs& operator<< ( const FmtSetField field)
inline

Update column alignment and minimum width together and move to next column.

  • This updates updates the column width if the new value is greater
Parameters
fieldField info to get align and minwidth from
Returns
This

◆ operator<<() [4/4]

FmtTableAttribs& operator<< ( Newline  )
inline

Reset by moving back to first column.

Returns
This

Member Data Documentation

◆ column_index

SizeT column_index

Current column index.

◆ table

FmtTable& table

Paired table to update.


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