format array as text, wrapped to a given maximum text width. Uses high precision to render floating-point values.
More...
#include <common.h>
format array as text, wrapped to a given maximum text width. Uses high precision to render floating-point values.
Definition at line 126 of file common.h.
◆ ArrayFormatter()
ArrayFormatter |
( |
size_t |
text_width, |
|
|
size_t |
indent, |
|
|
char |
delimiter = ',' |
|
) |
| |
|
inline |
constructor
- Parameters
-
text_width | maximum text width |
indent | indentation level |
delimiter | delimiter between elements |
Definition at line 134 of file common.h.
◆ operator<<()
add an entry (will use high precision for floating-point values)
- Parameters
-
Definition at line 144 of file common.h.
◆ str()
obtain formatted text containing the rendered array
- Returns
- string representing the rendered array
Definition at line 166 of file common.h.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/0.91/include/treelite/common.h