Flow123d  JS_before_hm-1008-g3dab983
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
json_spirit::Generator< Value_type, Ostream_type > Class Template Reference

#include <json_spirit_writer_template.h>

Public Member Functions

 Generator (const Value_type &value, Ostream_type &os, unsigned int options)
 

Private Types

typedef Value_type::Config_type Config_type
 
typedef Config_type::String_type String_type
 
typedef Config_type::Object_type Object_type
 
typedef Config_type::Array_type Array_type
 
typedef String_type::value_type Char_type
 
typedef Object_type::value_type Obj_member_type
 

Private Member Functions

void output (const Value_type &value)
 
void output (const Object_type &obj)
 
void output (const Obj_member_type &member)
 
void output_int (const Value_type &value)
 
void output (const String_type &s)
 
void output (bool b)
 
void output (double d)
 
template<class Iter >
void output_composite_item (Iter i, Iter last)
 
void output (const Array_type &arr)
 
template<class T >
void output_array_or_obj (const T &t, Char_type start_char, Char_type end_char)
 
void indent ()
 
void space ()
 
void new_line ()
 
Generatoroperator= (const Generator &)
 

Static Private Member Functions

static bool contains_composite_elements (const Array_type &arr)
 

Private Attributes

Ostream_type & os_
 
int indentation_level_
 
bool pretty_
 
bool raw_utf8_
 
bool remove_trailing_zeros_
 
bool single_line_arrays_
 
boost::io::basic_ios_all_saver< Char_typeios_saver_
 

Detailed Description

template<class Value_type, class Ostream_type>
class json_spirit::Generator< Value_type, Ostream_type >

Definition at line 160 of file json_spirit_writer_template.h.

Member Typedef Documentation

template<class Value_type, class Ostream_type>
typedef Config_type::Array_type json_spirit::Generator< Value_type, Ostream_type >::Array_type
private

Definition at line 165 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
typedef String_type::value_type json_spirit::Generator< Value_type, Ostream_type >::Char_type
private

Definition at line 166 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
typedef Value_type::Config_type json_spirit::Generator< Value_type, Ostream_type >::Config_type
private

Definition at line 162 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
typedef Object_type::value_type json_spirit::Generator< Value_type, Ostream_type >::Obj_member_type
private

Definition at line 167 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
typedef Config_type::Object_type json_spirit::Generator< Value_type, Ostream_type >::Object_type
private

Definition at line 164 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
typedef Config_type::String_type json_spirit::Generator< Value_type, Ostream_type >::String_type
private

Definition at line 163 of file json_spirit_writer_template.h.

Constructor & Destructor Documentation

template<class Value_type, class Ostream_type>
json_spirit::Generator< Value_type, Ostream_type >::Generator ( const Value_type value,
Ostream_type &  os,
unsigned int  options 
)
inline

Definition at line 171 of file json_spirit_writer_template.h.

Member Function Documentation

template<class Value_type, class Ostream_type>
static bool json_spirit::Generator< Value_type, Ostream_type >::contains_composite_elements ( const Array_type arr)
inlinestaticprivate

Definition at line 255 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::indent ( )
inlineprivate

Definition at line 324 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::new_line ( )
inlineprivate

Definition at line 339 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
Generator& json_spirit::Generator< Value_type, Ostream_type >::operator= ( const Generator< Value_type, Ostream_type > &  )
private

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Value_type value)
inlineprivate

Definition at line 185 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Object_type obj)
inlineprivate

Definition at line 200 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Obj_member_type member)
inlineprivate

Definition at line 205 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( const String_type s)
inlineprivate

Definition at line 224 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( bool  b)
inlineprivate

Definition at line 229 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( double  d)
inlineprivate

Definition at line 234 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output ( const Array_type arr)
inlineprivate

Definition at line 282 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
template<class T >
void json_spirit::Generator< Value_type, Ostream_type >::output_array_or_obj ( const T &  t,
Char_type  start_char,
Char_type  end_char 
)
inlineprivate

Definition at line 304 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
template<class Iter >
void json_spirit::Generator< Value_type, Ostream_type >::output_composite_item ( Iter  i,
Iter  last 
)
inlineprivate

Definition at line 272 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::output_int ( const Value_type value)
inlineprivate

Definition at line 212 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class Value_type, class Ostream_type>
void json_spirit::Generator< Value_type, Ostream_type >::space ( )
inlineprivate

Definition at line 334 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

Member Data Documentation

template<class Value_type, class Ostream_type>
int json_spirit::Generator< Value_type, Ostream_type >::indentation_level_
private

Definition at line 347 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
boost::io::basic_ios_all_saver< Char_type > json_spirit::Generator< Value_type, Ostream_type >::ios_saver_
private

Definition at line 352 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
Ostream_type& json_spirit::Generator< Value_type, Ostream_type >::os_
private

Definition at line 346 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
bool json_spirit::Generator< Value_type, Ostream_type >::pretty_
private

Definition at line 348 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
bool json_spirit::Generator< Value_type, Ostream_type >::raw_utf8_
private

Definition at line 349 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
bool json_spirit::Generator< Value_type, Ostream_type >::remove_trailing_zeros_
private

Definition at line 350 of file json_spirit_writer_template.h.

template<class Value_type, class Ostream_type>
bool json_spirit::Generator< Value_type, Ostream_type >::single_line_arrays_
private

Definition at line 351 of file json_spirit_writer_template.h.


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