#include <zypp-tui/Table.h>
|  | 
| static TableLineStyle | defaultStyle = Ascii | 
| static constexpr unsigned | Unsorted = unsigned(-1) | 
|  | Unsorted - pseudo sort column indicating not to sort. 
 | 
| static constexpr unsigned | UserData = unsigned(-2) | 
|  | UserData - sort column using a custom sort index. 
 | 
- Todo
- nice idea but poor interface 
Definition at line 397 of file Table.h.
◆ container
◆ Table()
◆ add()
◆ setHeader()
◆ dumpTo()
      
        
          | std::ostream & ztui::Table::dumpTo | ( | std::ostream & | stream | ) | const | 
      
 
- Todo
- allow abbrev of multiple columns? 
Definition at line 406 of file Table.cc.
 
 
◆ empty()
  
  | 
        
          | bool ztui::Table::empty | ( |  | ) | const |  | inline | 
 
 
◆ defaultSortColumn() [1/2]
  
  | 
        
          | unsigned ztui::Table::defaultSortColumn | ( |  | ) | const |  | inline | 
 
 
◆ defaultSortColumn() [2/2]
  
  | 
        
          | void ztui::Table::defaultSortColumn | ( | unsigned | byColumn_r | ) |  |  | inline | 
 
 
◆ sort() [1/5]
  
  | 
        
          | void ztui::Table::sort | ( |  | ) |  |  | inline | 
 
 
◆ sort() [2/5]
  
  | 
        
          | void ztui::Table::sort | ( | unsigned | byColumn_r | ) |  |  | inline | 
 
Sort by byColumn_r. 
Definition at line 428 of file Table.h.
 
 
◆ sort() [3/5]
  
  | 
        
          | void ztui::Table::sort | ( | const std::list< unsigned > & | byColumns_r | ) |  |  | inline | 
 
 
◆ sort() [4/5]
  
  | 
        
          | void ztui::Table::sort | ( | std::list< unsigned > && | byColumns_r | ) |  |  | inline | 
 
 
◆ sort() [5/5]
  
  | 
        
          | void ztui::Table::sort | ( | TCompare && | less_r | ) |  |  | inline | 
 
Custom sort. 
Definition at line 434 of file Table.h.
 
 
◆ lineStyle()
◆ wrap()
      
        
          | void ztui::Table::wrap | ( | int | force_break_after = -1 | ) |  | 
      
 
 
◆ allowAbbrev()
      
        
          | void ztui::Table::allowAbbrev | ( | unsigned | column | ) |  | 
      
 
 
◆ margin()
      
        
          | void ztui::Table::margin | ( | unsigned | margin | ) |  | 
      
 
 
◆ header()
◆ rows() [1/2]
  
  | 
        
          | const container & ztui::Table::rows | ( |  | ) | const |  | inline | 
 
 
◆ rows() [2/2]
◆ dumpRule()
  
  | 
        
          | void ztui::Table::dumpRule | ( | std::ostream & | stream | ) | const |  | private | 
 
 
◆ updateColWidths()
  
  | 
        
          | void ztui::Table::updateColWidths | ( | const TableRow & | tr | ) | const |  | private | 
 
 
◆ TableRow
◆ defaultStyle
◆ Unsorted
  
  | 
        
          | unsigned ztui::Table::Unsorted = unsigned(-1) |  | staticconstexpr | 
 
Unsorted - pseudo sort column indicating not to sort. 
Definition at line 414 of file Table.h.
 
 
◆ UserData
  
  | 
        
          | unsigned ztui::Table::UserData = unsigned(-2) |  | staticconstexpr | 
 
UserData - sort column using a custom sort index. 
Definition at line 416 of file Table.h.
 
 
◆ _has_header
  
  | 
        
          | bool ztui::Table::_has_header |  | private | 
 
 
◆ _header
◆ _rows
◆ _max_col
  
  | 
        
          | unsigned ztui::Table::_max_col |  | mutableprivate | 
 
maximum column index seen in this table 
Definition at line 459 of file Table.h.
 
 
◆ _max_width
  
  | 
        
          | std::vector<unsigned> ztui::Table::_max_width |  | mutableprivate | 
 
maximum width of respective columns 
Definition at line 461 of file Table.h.
 
 
◆ _width
table width (columns) 
Definition at line 463 of file Table.h.
 
 
◆ _style
table line drawing style 
Definition at line 465 of file Table.h.
 
 
◆ _screen_width
  
  | 
        
          | int ztui::Table::_screen_width |  | private | 
 
amount of space we have to print this table 
Definition at line 467 of file Table.h.
 
 
◆ _abbrev_col
  
  | 
        
          | std::vector<bool> ztui::Table::_abbrev_col |  | private | 
 
whether to abbreviate the respective column if needed 
Definition at line 469 of file Table.h.
 
 
◆ _margin
  
  | 
        
          | unsigned ztui::Table::_margin |  | private | 
 
left/right margin in number of spaces 
Definition at line 471 of file Table.h.
 
 
◆ _force_break_after
  
  | 
        
          | int ztui::Table::_force_break_after |  | private | 
 
if _do_wrap is set, first break the table at this column; If negative, wrap as needed. 
Definition at line 474 of file Table.h.
 
 
◆ _do_wrap
  
  | 
        
          | bool ztui::Table::_do_wrap |  | private | 
 
Whether to wrap the table if it exceeds _screen_width. 
Definition at line 476 of file Table.h.
 
 
◆ _defaultSortColumn
◆ _inHeader
  
  | 
        
          | bool ztui::Table::_inHeader |  | mutableprivate | 
 
 
The documentation for this class was generated from the following files: