Treelite
|
format array as text, wrapped to a given maximum text width. Uses high precision to render floating-point values. More...
#include <format_util.h>
Public Member Functions | |
ArrayFormatter (size_t text_width, size_t indent, char delimiter=',') | |
constructor More... | |
template<typename T > | |
ArrayFormatter & | operator<< (const T &e) |
add an entry (will use high precision for floating-point values) More... | |
std::string | str () |
obtain formatted text containing the rendered array More... | |
format array as text, wrapped to a given maximum text width. Uses high precision to render floating-point values.
Definition at line 59 of file format_util.h.
|
inline |
constructor
text_width | maximum text width |
indent | indentation level |
delimiter | delimiter between elements |
Definition at line 67 of file format_util.h.
|
inline |
add an entry (will use high precision for floating-point values)
e | entry to be added |
Definition at line 77 of file format_util.h.
|
inline |
obtain formatted text containing the rendered array
Definition at line 99 of file format_util.h.