![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/io/Output.h>
Public Types | |
| typedef const T::t & | t |
| typedef std::function< void(io::Output &out, t x)> | fun_t |
Public Member Functions | |
| ListPrinter (const T &list, cstring sep=" ", fun_t fun=asis) | |
| void | print (io::Output &out) const |
Static Public Member Functions | |
| static void | asis (io::Output &out, t x) |
Public Attributes | |
| const T & | l |
| cstring | s |
| fun_t | f |
This class is dedicated to the printing of collection of values with a separator. It is designed to be embeded in a flow of output << operators. A faster to use is the call to the function io::list().
| typedef std::function<void(io::Output& out, t x)> fun_t |
| typedef const T::t& t |
|
inline |
|
inlinestatic |
References elm::io::out.
|
inline |
References ListPrinter< T >::f, ListPrinter< T >::l, elm::io::out, and ListPrinter< T >::s.
| fun_t f |
Referenced by elm::io::operator<<(), and ListPrinter< T >::print().
| const T& l |
Referenced by elm::io::operator<<(), and ListPrinter< T >::print().
| cstring s |
Referenced by elm::io::operator<<(), and ListPrinter< T >::print().