libpniio
|
formatter for containers More...
#include <formatter.hpp>
Public Member Functions | |
container_formatter (const container_io_config &config=container_io_config()) | |
pni::core::string | operator() (const container_type &v) const |
generate output More... | |
Private Types | |
typedef CTYPE | container_type |
typedef std::back_insert_iterator < pni::core::string > | iterator_type |
output iterator type More... | |
typedef container_type::value_type | value_type |
element type of the container More... | |
typedef get_generator < iterator_type, value_type > | getter_type |
generator type More... | |
typedef getter_type::type | generator_type |
Private Attributes | |
generator_type | generator |
generator instance More... | |
container_io_config | _config |
Most of the container formatters are using this code. Do not instantiate this template class by yourself. This will be done by the specializations of the formatter template for the various container types.
CTYPE | container type |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
|
inline |
Take the input vector and return its string representation.
v | input container |
config | output configuration for the container |
|
private |
|
private |