Public Member Functions |
Static Public Attributes |
Private Member Functions |
Private Attributes |
List of all members
Gambit::table_formatter Class Reference
Collaboration diagram for Gambit::table_formatter:
![]()
Detailed DescriptionDefinition at line 115 of file table_formatter.hpp. Constructor & Destructor Documentation◆ table_formatter()
template<typename... T>
Definition at line 157 of file table_formatter.hpp. References enter_vec(). 157 : col_num(sizeof...(T)), col(0), row(0), pad(0), wrap(false), top(false), bottom(false), defaultWidths(col_num, 25), minWidths(col_num, -1), titles(1), row_flags(1, 0x00), col_flags(sizeof...(T), 0x00)
std::vector< int > defaultWidths Definition: table_formatter.hpp:125 std::vector< unsigned char > col_flags Definition: table_formatter.hpp:131 std::vector< unsigned char > row_flags Definition: table_formatter.hpp:130 void enter_vec(std::vector< U > &) Definition: table_formatter.hpp:134 std::vector< std::vector< std::string > > titles Definition: table_formatter.hpp:128
Here is the call graph for this function:
![]() Member Function Documentation◆ bold()
Definition at line 357 of file table_formatter.hpp. References set_pt_flag(). table_formatter & set_pt_flag(const unsigned char flag, int i, int j) Definition: table_formatter.hpp:291
Here is the call graph for this function:
![]() ◆ bottom_line()
Definition at line 199 of file table_formatter.hpp. References b. Referenced by Gambit::gambit_core::ff_backend_diagnostic(), and Gambit::Scanner::Plugins::Plugin_Loader::print_priors().
Here is the caller graph for this function:
![]() ◆ capitalize_title() [1/2]Definition at line 201 of file table_formatter.hpp. Referenced by Gambit::gambit_core::backend_diagnostic(), Gambit::gambit_core::capability_diagnostic(), Gambit::gambit_core::ff_backend_diagnostic(), Gambit::gambit_core::ff_module_diagnostic(), Gambit::gambit_core::model_diagnostic(), Gambit::gambit_core::module_diagnostic(), and Gambit::Scanner::Plugins::print_plugins(). std::vector< std::vector< std::string > > titles Definition: table_formatter.hpp:128
Here is the caller graph for this function:
![]() ◆ capitalize_title() [2/2]
Definition at line 212 of file table_formatter.hpp. std::vector< std::vector< std::string > > titles Definition: table_formatter.hpp:128 ◆ center_justify()
Definition at line 372 of file table_formatter.hpp. References set_col_flag(). static const unsigned char JUST_CENTER Definition: table_formatter.hpp:151 table_formatter & set_col_flag(const unsigned char flag, int i) Definition: table_formatter.hpp:322
Here is the call graph for this function:
![]() ◆ col_pos()
◆ cols()
◆ default_widths()
template<typename... T>
Definition at line 174 of file table_formatter.hpp. References enter_vec(). Referenced by Gambit::gambit_core::backend_diagnostic(), Gambit::gambit_core::capability_diagnostic(), Gambit::gambit_core::ff_backend_diagnostic(), Gambit::gambit_core::ff_module_diagnostic(), Gambit::gambit_core::model_diagnostic(), and Gambit::gambit_core::module_diagnostic(). std::vector< int > defaultWidths Definition: table_formatter.hpp:125 void enter_vec(std::vector< U > &) Definition: table_formatter.hpp:134
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ enter_vec() [1/2]
template<typename U >
Definition at line 134 of file table_formatter.hpp. Referenced by default_widths(), enter_vec(), min_widths(), new_titles(), and table_formatter().
Here is the caller graph for this function:
![]() ◆ enter_vec() [2/2]
template<typename U , typename V , typename... T>
Definition at line 137 of file table_formatter.hpp. References enter_vec(). void enter_vec(std::vector< U > &) Definition: table_formatter.hpp:134
Here is the call graph for this function:
![]() ◆ green()
Definition at line 347 of file table_formatter.hpp. References set_pt_flag(). Referenced by Gambit::gambit_core::backend_diagnostic(), Gambit::gambit_core::ff_backend_diagnostic(), and Gambit::Scanner::Plugins::print_plugins(). table_formatter & set_pt_flag(const unsigned char flag, int i, int j) Definition: table_formatter.hpp:291
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ left_justify()
Definition at line 377 of file table_formatter.hpp. References reset_col_flag(). table_formatter & reset_col_flag(const unsigned char flag, int i) Definition: table_formatter.hpp:282
Here is the call graph for this function:
![]() ◆ min_widths()
template<typename... T>
Definition at line 185 of file table_formatter.hpp. References enter_vec(). void enter_vec(std::vector< U > &) Definition: table_formatter.hpp:134
Here is the call graph for this function:
![]() ◆ new_row()
Definition at line 231 of file table_formatter.hpp. std::vector< std::vector< std::string > > data Definition: table_formatter.hpp:127 std::vector< unsigned char > row_flags Definition: table_formatter.hpp:130 ◆ new_titles()
template<typename... T>
Definition at line 163 of file table_formatter.hpp. References enter_vec(). Referenced by Gambit::gambit_core::ff_module_diagnostic(). void enter_vec(std::vector< U > &) Definition: table_formatter.hpp:134 std::vector< std::vector< std::string > > titles Definition: table_formatter.hpp:128
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ newline()
Definition at line 387 of file table_formatter.hpp. References reset_row_flag(). Referenced by Gambit::gambit_core::ff_module_diagnostic(). table_formatter & reset_row_flag(const unsigned char flag, int i) Definition: table_formatter.hpp:274
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ no_newline()
Definition at line 382 of file table_formatter.hpp. References set_row_flag(). Referenced by Gambit::gambit_core::ff_module_diagnostic(), and Gambit::Scanner::Plugins::Plugin_Loader::print_priors(). table_formatter & set_row_flag(const unsigned char flag, int i) Definition: table_formatter.hpp:314
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ operator<<()
template<typename T >
Definition at line 246 of file table_formatter.hpp. std::vector< std::vector< std::string > > data Definition: table_formatter.hpp:127 std::vector< unsigned char > row_flags Definition: table_formatter.hpp:130 ◆ operator[]()
Definition at line 392 of file table_formatter.hpp. References str(). std::vector< std::vector< std::string > > data Definition: table_formatter.hpp:127
Here is the call graph for this function:
![]() ◆ padding()Definition at line 196 of file table_formatter.hpp. Referenced by Gambit::gambit_core::backend_diagnostic(), Gambit::gambit_core::capability_diagnostic(), Gambit::gambit_core::ff_backend_diagnostic(), Gambit::gambit_core::ff_module_diagnostic(), Gambit::gambit_core::model_diagnostic(), Gambit::gambit_core::module_diagnostic(), and Gambit::Scanner::Plugins::print_plugins().
Here is the caller graph for this function:
![]() ◆ red()
Definition at line 342 of file table_formatter.hpp. References set_pt_flag(). Referenced by Gambit::gambit_core::backend_diagnostic(), Gambit::gambit_core::ff_backend_diagnostic(), and Gambit::Scanner::Plugins::print_plugins(). table_formatter & set_pt_flag(const unsigned char flag, int i, int j) Definition: table_formatter.hpp:291
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ reset()
Definition at line 337 of file table_formatter.hpp. References reset_pt_flag(). table_formatter & reset_pt_flag(const unsigned char flag, int i, int j) Definition: table_formatter.hpp:266
Here is the call graph for this function:
![]() ◆ reset_col_flag()
Definition at line 282 of file table_formatter.hpp. Referenced by left_justify(). std::vector< unsigned char > col_flags Definition: table_formatter.hpp:131
Here is the caller graph for this function:
![]() ◆ reset_pt_flag()
Definition at line 266 of file table_formatter.hpp. Referenced by reset(). std::map< std::pair< int, int >, unsigned char > flags Definition: table_formatter.hpp:129
Here is the caller graph for this function:
![]() ◆ reset_row_flag()
Definition at line 274 of file table_formatter.hpp. Referenced by newline(). std::vector< unsigned char > row_flags Definition: table_formatter.hpp:130
Here is the caller graph for this function:
![]() ◆ right_justify()
Definition at line 367 of file table_formatter.hpp. References set_col_flag(). table_formatter & set_col_flag(const unsigned char flag, int i) Definition: table_formatter.hpp:322 static const unsigned char JUST_RIGHT Definition: table_formatter.hpp:150
Here is the call graph for this function:
![]() ◆ row_pos()
Definition at line 228 of file table_formatter.hpp. References row. Referenced by Gambit::gambit_core::ff_module_diagnostic().
Here is the caller graph for this function:
![]() ◆ rows()
Definition at line 226 of file table_formatter.hpp. Referenced by Gambit::gambit_core::ff_backend_diagnostic(). std::vector< std::vector< std::string > > data Definition: table_formatter.hpp:127
Here is the caller graph for this function:
![]() ◆ set_col_flag()
Definition at line 322 of file table_formatter.hpp. Referenced by center_justify(), and right_justify(). std::vector< unsigned char > col_flags Definition: table_formatter.hpp:131
Here is the caller graph for this function:
![]() ◆ set_pt_flag()
Definition at line 291 of file table_formatter.hpp. Referenced by bold(), green(), red(), underline(), and yellow(). std::map< std::pair< int, int >, unsigned char > flags Definition: table_formatter.hpp:129
Here is the caller graph for this function:
![]() ◆ set_row_flag()
Definition at line 314 of file table_formatter.hpp. Referenced by no_newline(). std::vector< unsigned char > row_flags Definition: table_formatter.hpp:130
Here is the caller graph for this function:
![]() ◆ str()
Definition at line 90 of file table_formatter.cpp. References BOLD, bottom, col_flags, col_num, data, defaultWidths, flags, Gambit::get_screen_cols(), GREEN, int, JUST_CENTER, JUST_RIGHT, minWidths, pad, RED, row_flags, titles, top, UNDERLINE, wrap, WRAP, Gambit::wrap_lines(), and YELLOW. Referenced by Gambit::gambit_core::backend_diagnostic(), Gambit::gambit_core::capability_diagnostic(), Gambit::gambit_core::ff_backend_diagnostic(), Gambit::gambit_core::ff_module_diagnostic(), Gambit::gambit_core::model_diagnostic(), Gambit::gambit_core::module_diagnostic(), operator[](), Gambit::Scanner::Plugins::print_plugins(), and Gambit::Scanner::Plugins::Plugin_Loader::print_priors(). 208 out << "\x1b[33;01m" << std::setw(cols_screen) << ">>> more here >>>" << "\x1b[0m" << std::endl; 261 out << std::setw(col_sizes[j]) << std::string((col_sizes[j]-data[i][j].size())/2, ' ') + data[i][j]; 291 out << std::setw(col_sizes[j]) << std::string((col_sizes[j]-data[i][j].size())/2, ' ') + data[i][j];
std::map< std::pair< int, int >, unsigned char > flags Definition: table_formatter.hpp:129 static const unsigned char UNDERLINE Definition: table_formatter.hpp:153 static const unsigned char JUST_CENTER Definition: table_formatter.hpp:151 std::vector< int > defaultWidths Definition: table_formatter.hpp:125 void wrap_lines(std::vector< std::vector< std::string >> &data_in, const std::vector< int > &widths, const std::vector< int > &minWidths, double pad, std::vector< unsigned char > *row_flags=0) Definition: table_formatter.cpp:34 static const unsigned char JUST_RIGHT Definition: table_formatter.hpp:150 std::vector< std::vector< std::string > > data Definition: table_formatter.hpp:127 std::vector< unsigned char > col_flags Definition: table_formatter.hpp:131 std::vector< unsigned char > row_flags Definition: table_formatter.hpp:130 std::vector< std::vector< std::string > > titles Definition: table_formatter.hpp:128
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ top_line()
Definition at line 198 of file table_formatter.hpp. References b. Referenced by Gambit::gambit_core::ff_backend_diagnostic().
Here is the caller graph for this function:
![]() ◆ underline()
Definition at line 362 of file table_formatter.hpp. References set_pt_flag(). static const unsigned char UNDERLINE Definition: table_formatter.hpp:153 table_formatter & set_pt_flag(const unsigned char flag, int i, int j) Definition: table_formatter.hpp:291
Here is the call graph for this function:
![]() ◆ wrap_around()
◆ yellow()
Definition at line 352 of file table_formatter.hpp. References set_pt_flag(). table_formatter & set_pt_flag(const unsigned char flag, int i, int j) Definition: table_formatter.hpp:291
Here is the call graph for this function:
![]() Member Data Documentation◆ BOLD
Definition at line 149 of file table_formatter.hpp. Referenced by str(). ◆ bottom
Definition at line 124 of file table_formatter.hpp. Referenced by str(). ◆ col
Definition at line 119 of file table_formatter.hpp. Referenced by col_pos(), and operator<<(). ◆ col_flags
Definition at line 131 of file table_formatter.hpp. Referenced by str(). ◆ col_num
Definition at line 118 of file table_formatter.hpp. ◆ COLOR
Definition at line 148 of file table_formatter.hpp. ◆ data
Definition at line 127 of file table_formatter.hpp. Referenced by str(). ◆ defaultWidths
Definition at line 125 of file table_formatter.hpp. Referenced by str(). ◆ flagsDefinition at line 129 of file table_formatter.hpp. Referenced by str(). ◆ GREEN
Definition at line 146 of file table_formatter.hpp. Referenced by str(). ◆ JUST
Definition at line 152 of file table_formatter.hpp. ◆ JUST_CENTER
Definition at line 151 of file table_formatter.hpp. Referenced by str(). ◆ JUST_RIGHT
Definition at line 150 of file table_formatter.hpp. Referenced by str(). ◆ minWidths
Definition at line 126 of file table_formatter.hpp. Referenced by str(). ◆ pad
Definition at line 121 of file table_formatter.hpp. Referenced by str(). ◆ RED
Definition at line 145 of file table_formatter.hpp. Referenced by str(). ◆ RESET
Definition at line 144 of file table_formatter.hpp. ◆ row
Definition at line 120 of file table_formatter.hpp. Referenced by operator<<(), and row_pos(). ◆ row_flags
Definition at line 130 of file table_formatter.hpp. Referenced by str(). ◆ titles
Definition at line 128 of file table_formatter.hpp. Referenced by str(). ◆ top
Definition at line 123 of file table_formatter.hpp. Referenced by str(). ◆ UNDERLINE
Definition at line 153 of file table_formatter.hpp. Referenced by str(). ◆ wrap
Definition at line 122 of file table_formatter.hpp. Referenced by str(). ◆ WRAP
Definition at line 154 of file table_formatter.hpp. Referenced by str(). ◆ YELLOW
Definition at line 147 of file table_formatter.hpp. Referenced by str(). The documentation for this class was generated from the following files:
|