Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
ListPrinter< T > Class Template Reference

#include <elm/io/Output.h>

Public Types

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 typedef T::t & t
 
const T & l
 
cstring s
 
fun_t f
 

Detailed Description

template<class T>
class elm::io::ListPrinter< T >

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().

Member Typedef Documentation

◆ fun_t

typedef std::function<void(io::Output& out, t x)> fun_t

Constructor & Destructor Documentation

◆ ListPrinter()

ListPrinter ( const T &  list,
cstring  sep = " ",
fun_t  fun = asis 
)
inline

Member Function Documentation

◆ asis()

static void asis ( io::Output out,
t  x 
)
inlinestatic

References elm::io::out.

◆ print()

void print ( io::Output out) const
inline

Member Data Documentation

◆ f

◆ l

const T& l

◆ s

◆ t

const typedef T::t& t

The documentation for this class was generated from the following file: