Fabcoin Core  0.16.2
P2P Digital Currency
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
json_spirit Namespace Reference

Namespaces

 internal_
 

Classes

struct  Config_map
 
struct  Config_vector
 
struct  Error_position
 
class  Generator
 
class  Json_grammer
 
struct  Multi_pass_iters
 
struct  Pair_impl
 
class  Semantic_actions
 
class  Stream_reader
 
class  Stream_reader_thrower
 
class  Value_impl
 

Typedefs

typedef std::map< std::string, ValueMapped_obj
 
typedef std::map< std::wstring, wValuewMapped_obj
 
typedef Config_vector< std::string > Config
 
typedef Config::Value_type Value
 
typedef Config::Pair_type Pair
 
typedef Config::Object_type Object
 
typedef Config::Array_type Array
 
typedef Config_vector< std::wstring > wConfig
 
typedef wConfig::Value_type wValue
 
typedef wConfig::Pair_type wPair
 
typedef wConfig::Object_type wObject
 
typedef wConfig::Array_type wArray
 
typedef Config_map< std::string > mConfig
 
typedef mConfig::Value_type mValue
 
typedef mConfig::Object_type mObject
 
typedef mConfig::Array_type mArray
 
typedef Config_map< std::wstring > wmConfig
 
typedef wmConfig::Value_type wmValue
 
typedef wmConfig::Object_type wmObject
 
typedef wmConfig::Array_type wmArray
 

Enumerations

enum  Value_type {
  obj_type, array_type, str_type, bool_type,
  int_type, real_type, null_type
}
 

Functions

bool read (const std::string &s, Value &value)
 
bool read (std::istream &is, Value &value)
 
bool read (std::string::const_iterator &begin, std::string::const_iterator end, Value &value)
 
void read_or_throw (const std::string &s, Value &value)
 
void read_or_throw (std::istream &is, Value &value)
 
void read_or_throw (std::string::const_iterator &begin, std::string::const_iterator end, Value &value)
 
bool read (const std::wstring &s, wValue &value)
 
bool read (std::wistream &is, wValue &value)
 
bool read (std::wstring::const_iterator &begin, std::wstring::const_iterator end, wValue &value)
 
void read_or_throw (const std::wstring &s, wValue &value)
 
void read_or_throw (std::wistream &is, wValue &value)
 
void read_or_throw (std::wstring::const_iterator &begin, std::wstring::const_iterator end, wValue &value)
 
bool read (const std::string &s, mValue &value)
 
bool read (std::istream &is, mValue &value)
 
bool read (std::string::const_iterator &begin, std::string::const_iterator end, mValue &value)
 
void read_or_throw (const std::string &s, mValue &value)
 
void read_or_throw (std::istream &is, mValue &value)
 
void read_or_throw (std::string::const_iterator &begin, std::string::const_iterator end, mValue &value)
 
bool read (const std::wstring &s, wmValue &value)
 
bool read (std::wistream &is, wmValue &value)
 
bool read (std::wstring::const_iterator &begin, std::wstring::const_iterator end, wmValue &value)
 
void read_or_throw (const std::wstring &s, wmValue &value)
 
void read_or_throw (std::wistream &is, wmValue &value)
 
void read_or_throw (std::wstring::const_iterator &begin, std::wstring::const_iterator end, wmValue &value)
 
template<class Iter_type >
bool is_eq (Iter_type first, Iter_type last, const char *c_str)
 
template<class Char_type >
Char_type hex_to_num (const Char_type c)
 
template<class Char_type , class Iter_type >
Char_type hex_str_to_char (Iter_type &begin)
 
template<class Char_type , class Iter_type >
Char_type unicode_str_to_char (Iter_type &begin)
 
template<class String_type >
void append_esc_char_and_incr_iter (String_type &s, typename String_type::const_iterator &begin, typename String_type::const_iterator end)
 
template<class String_type >
String_type substitute_esc_chars (typename String_type::const_iterator begin, typename String_type::const_iterator end)
 
template<class String_type >
String_type get_str_ (typename String_type::const_iterator begin, typename String_type::const_iterator end)
 
std::string get_str (std::string::const_iterator begin, std::string::const_iterator end)
 
std::wstring get_str (std::wstring::const_iterator begin, std::wstring::const_iterator end)
 
template<class String_type , class Iter_type >
String_type get_str (Iter_type begin, Iter_type end)
 
template<typename Iter_type >
void throw_error (spirit_namespace::position_iterator< Iter_type > i, const std::string &reason)
 
template<typename Iter_type >
void throw_error (Iter_type i, const std::string &reason)
 
template<class Iter_type , class Value_type >
Iter_type read_range_or_throw (Iter_type begin, Iter_type end, Value_type &value)
 
template<class Iter_type , class Value_type >
void add_posn_iter_and_read_range_or_throw (Iter_type begin, Iter_type end, Value_type &value)
 
template<class Iter_type , class Value_type >
bool read_range (Iter_type &begin, Iter_type end, Value_type &value)
 
template<class String_type , class Value_type >
void read_string_or_throw (const String_type &s, Value_type &value)
 
template<class String_type , class Value_type >
bool read_string (const String_type &s, Value_type &value)
 
template<class Istream_type , class Value_type >
bool read_stream (Istream_type &is, Value_type &value)
 
template<class Istream_type , class Value_type >
void read_stream_or_throw (Istream_type &is, Value_type &value)
 
template<class Obj_t , class Map_t >
void obj_to_map (const Obj_t &obj, Map_t &mp_obj)
 
template<class Obj_t , class Map_t >
void map_to_obj (const Map_t &mp_obj, Obj_t &obj)
 
template<class Object_type , class String_type >
const Object_type::value_type::Value_type & find_value (const Object_type &obj, const String_type &name)
 
template<class String_type >
String_type to_str (const char *c_str)
 
void write (const Value &value, std::ostream &os)
 
void write_formatted (const Value &value, std::ostream &os)
 
std::string write (const Value &value)
 
std::string write_formatted (const Value &value)
 
void write (const wValue &value, std::wostream &os)
 
void write_formatted (const wValue &value, std::wostream &os)
 
void write (const mValue &value, std::ostream &os)
 
void write_formatted (const mValue &value, std::ostream &os)
 
std::string write (const mValue &value)
 
std::string write_formatted (const mValue &value)
 
void write (const wmValue &value, std::wostream &os)
 
void write_formatted (const wmValue &value, std::wostream &os)
 
char to_hex_char (unsigned int c)
 
template<class String_type >
String_type non_printable_to_string (unsigned int c)
 
template<typename Char_type , class String_type >
bool add_esc_char (Char_type c, String_type &s)
 
template<class String_type >
String_type add_esc_chars (const String_type &s)
 
template<class Value_type , class Ostream_type >
void write_stream (const Value_type &value, Ostream_type &os, bool pretty)
 
template<class Value_type >
Value_type::String_type write_string (const Value_type &value, bool pretty)
 

Variables

const spirit_namespace::int_parser< boost::int64_t > int64_p = spirit_namespace::int_parser < boost::int64_t >()
 
const spirit_namespace::uint_parser< boost::uint64_t > uint64_p = spirit_namespace::uint_parser< boost::uint64_t >()
 

Typedef Documentation

Definition at line 142 of file json_spirit_value.h.

typedef Config_vector< std::string > json_spirit::Config

Definition at line 137 of file json_spirit_value.h.

typedef std::map< std::string, Value > json_spirit::Mapped_obj

Definition at line 40 of file json_spirit_utils.h.

Definition at line 189 of file json_spirit_value.h.

typedef Config_map< std::string > json_spirit::mConfig

Definition at line 185 of file json_spirit_value.h.

Definition at line 188 of file json_spirit_value.h.

Definition at line 187 of file json_spirit_value.h.

Definition at line 141 of file json_spirit_value.h.

Definition at line 140 of file json_spirit_value.h.

Definition at line 139 of file json_spirit_value.h.

Definition at line 153 of file json_spirit_value.h.

typedef Config_vector< std::wstring > json_spirit::wConfig

Definition at line 148 of file json_spirit_value.h.

typedef std::map< std::wstring, wValue > json_spirit::wMapped_obj

Definition at line 43 of file json_spirit_utils.h.

Definition at line 199 of file json_spirit_value.h.

typedef Config_map< std::wstring > json_spirit::wmConfig

Definition at line 195 of file json_spirit_value.h.

Definition at line 198 of file json_spirit_value.h.

Definition at line 197 of file json_spirit_value.h.

Definition at line 152 of file json_spirit_value.h.

Definition at line 151 of file json_spirit_value.h.

Definition at line 150 of file json_spirit_value.h.

Enumeration Type Documentation

Enumerator
obj_type 
array_type 
str_type 
bool_type 
int_type 
real_type 
null_type 

Definition at line 26 of file json_spirit_value.h.

Function Documentation

template<typename Char_type , class String_type >
bool json_spirit::add_esc_char ( Char_type  c,
String_type &  s 
)

Definition at line 44 of file json_spirit_writer_template.h.

Here is the caller graph for this function:

template<class String_type >
String_type json_spirit::add_esc_chars ( const String_type &  s)

Definition at line 61 of file json_spirit_writer_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Iter_type , class Value_type >
void json_spirit::add_posn_iter_and_read_range_or_throw ( Iter_type  begin,
Iter_type  end,
Value_type value 
)

Definition at line 537 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class String_type >
void json_spirit::append_esc_char_and_incr_iter ( String_type &  s,
typename String_type::const_iterator &  begin,
typename String_type::const_iterator  end 
)

Definition at line 85 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

template<class Object_type , class String_type >
const Object_type::value_type::Value_type& json_spirit::find_value ( const Object_type &  obj,
const String_type &  name 
)

Definition at line 47 of file json_spirit_utils.h.

Here is the caller graph for this function:

std::string json_spirit::get_str ( std::string::const_iterator  begin,
std::string::const_iterator  end 
)
inline

Definition at line 172 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

std::wstring json_spirit::get_str ( std::wstring::const_iterator  begin,
std::wstring::const_iterator  end 
)
inline

Definition at line 177 of file json_spirit_reader_template.h.

template<class String_type , class Iter_type >
String_type json_spirit::get_str ( Iter_type  begin,
Iter_type  end 
)

Definition at line 183 of file json_spirit_reader_template.h.

Here is the call graph for this function:

template<class String_type >
String_type json_spirit::get_str_ ( typename String_type::const_iterator  begin,
typename String_type::const_iterator  end 
)

Definition at line 159 of file json_spirit_reader_template.h.

Here is the call graph for this function:

template<class Char_type , class Iter_type >
Char_type json_spirit::hex_str_to_char ( Iter_type &  begin)

Definition at line 62 of file json_spirit_reader_template.h.

Here is the call graph for this function:

template<class Char_type >
Char_type json_spirit::hex_to_num ( const Char_type  c)

Definition at line 53 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

template<class Iter_type >
bool json_spirit::is_eq ( Iter_type  first,
Iter_type  last,
const char *  c_str 
)

Definition at line 40 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

template<class Obj_t , class Map_t >
void json_spirit::map_to_obj ( const Map_t &  mp_obj,
Obj_t &  obj 
)

Definition at line 30 of file json_spirit_utils.h.

template<class String_type >
String_type json_spirit::non_printable_to_string ( unsigned int  c)

Definition at line 29 of file json_spirit_writer_template.h.

Here is the call graph for this function:

template<class Obj_t , class Map_t >
void json_spirit::obj_to_map ( const Obj_t &  obj,
Map_t &  mp_obj 
)

Definition at line 19 of file json_spirit_utils.h.

bool json_spirit::read ( const std::string &  s,
Value value 
)

Definition at line 11 of file json_spirit_reader.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool json_spirit::read ( std::istream &  is,
Value value 
)

Definition at line 21 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::string::const_iterator &  begin,
std::string::const_iterator  end,
Value value 
)

Definition at line 31 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( const std::wstring &  s,
wValue value 
)

Definition at line 43 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::wistream &  is,
wValue value 
)

Definition at line 53 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::wstring::const_iterator &  begin,
std::wstring::const_iterator  end,
wValue value 
)

Definition at line 63 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( const std::string &  s,
mValue value 
)

Definition at line 75 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::istream &  is,
mValue value 
)

Definition at line 85 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::string::const_iterator &  begin,
std::string::const_iterator  end,
mValue value 
)

Definition at line 95 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( const std::wstring &  s,
wmValue value 
)

Definition at line 107 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::wistream &  is,
wmValue value 
)

Definition at line 117 of file json_spirit_reader.cpp.

Here is the call graph for this function:

bool json_spirit::read ( std::wstring::const_iterator &  begin,
std::wstring::const_iterator  end,
wmValue value 
)

Definition at line 127 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( const std::string &  s,
Value value 
)

Definition at line 16 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::istream &  is,
Value value 
)

Definition at line 26 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::string::const_iterator &  begin,
std::string::const_iterator  end,
Value value 
)

Definition at line 36 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( const std::wstring &  s,
wValue value 
)

Definition at line 48 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::wistream &  is,
wValue value 
)

Definition at line 58 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::wstring::const_iterator &  begin,
std::wstring::const_iterator  end,
wValue value 
)

Definition at line 68 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( const std::string &  s,
mValue value 
)

Definition at line 80 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::istream &  is,
mValue value 
)

Definition at line 90 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::string::const_iterator &  begin,
std::string::const_iterator  end,
mValue value 
)

Definition at line 100 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( const std::wstring &  s,
wmValue value 
)

Definition at line 112 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::wistream &  is,
wmValue value 
)

Definition at line 122 of file json_spirit_reader.cpp.

Here is the call graph for this function:

void json_spirit::read_or_throw ( std::wstring::const_iterator &  begin,
std::wstring::const_iterator  end,
wmValue value 
)

Definition at line 132 of file json_spirit_reader.cpp.

Here is the call graph for this function:

template<class Iter_type , class Value_type >
bool json_spirit::read_range ( Iter_type &  begin,
Iter_type  end,
Value_type value 
)

Definition at line 548 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Iter_type , class Value_type >
Iter_type json_spirit::read_range_or_throw ( Iter_type  begin,
Iter_type  end,
Value_type value 
)

Definition at line 518 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Istream_type , class Value_type >
bool json_spirit::read_stream ( Istream_type &  is,
Value_type value 
)

Definition at line 596 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Istream_type , class Value_type >
void json_spirit::read_stream_or_throw ( Istream_type &  is,
Value_type value 
)

Definition at line 604 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class String_type , class Value_type >
bool json_spirit::read_string ( const String_type &  s,
Value_type value 
)

Definition at line 569 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class String_type , class Value_type >
void json_spirit::read_string_or_throw ( const String_type &  s,
Value_type value 
)

Definition at line 563 of file json_spirit_reader_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class String_type >
String_type json_spirit::substitute_esc_chars ( typename String_type::const_iterator  begin,
typename String_type::const_iterator  end 
)

Definition at line 123 of file json_spirit_reader_template.h.

Here is the call graph for this function:

template<typename Iter_type >
void json_spirit::throw_error ( spirit_namespace::position_iterator< Iter_type >  i,
const std::string &  reason 
)

Definition at line 356 of file json_spirit_reader_template.h.

Here is the caller graph for this function:

template<typename Iter_type >
void json_spirit::throw_error ( Iter_type  i,
const std::string &  reason 
)

Definition at line 362 of file json_spirit_reader_template.h.

char json_spirit::to_hex_char ( unsigned int  c)
inline

Definition at line 17 of file json_spirit_writer_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class String_type >
String_type json_spirit::to_str ( const char *  c_str)

Definition at line 454 of file json_spirit_value.h.

template<class Char_type , class Iter_type >
Char_type json_spirit::unicode_str_to_char ( Iter_type &  begin)

Definition at line 71 of file json_spirit_reader_template.h.

Here is the call graph for this function:

void json_spirit::write ( const Value value,
std::ostream &  os 
)

Definition at line 9 of file json_spirit_writer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::wstring json_spirit::write ( const Value value)

Definition at line 19 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write ( const wValue value,
std::wostream &  os 
)

Definition at line 31 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write ( const mValue value,
std::ostream &  os 
)

Definition at line 53 of file json_spirit_writer.cpp.

Here is the call graph for this function:

std::wstring json_spirit::write ( const mValue value)

Definition at line 63 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write ( const wmValue value,
std::wostream &  os 
)

Definition at line 75 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write_formatted ( const Value value,
std::ostream &  os 
)

Definition at line 14 of file json_spirit_writer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::wstring json_spirit::write_formatted ( const Value value)

Definition at line 24 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write_formatted ( const wValue value,
std::wostream &  os 
)

Definition at line 36 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write_formatted ( const mValue value,
std::ostream &  os 
)

Definition at line 58 of file json_spirit_writer.cpp.

Here is the call graph for this function:

std::wstring json_spirit::write_formatted ( const mValue value)

Definition at line 68 of file json_spirit_writer.cpp.

Here is the call graph for this function:

void json_spirit::write_formatted ( const wmValue value,
std::wostream &  os 
)

Definition at line 80 of file json_spirit_writer.cpp.

Here is the call graph for this function:

template<class Value_type , class Ostream_type >
void json_spirit::write_stream ( const Value_type value,
Ostream_type &  os,
bool  pretty 
)

Definition at line 225 of file json_spirit_writer_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Value_type >
Value_type::String_type json_spirit::write_string ( const Value_type value,
bool  pretty 
)

Definition at line 231 of file json_spirit_writer_template.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const spirit_namespace::int_parser< boost::int64_t > json_spirit::int64_p = spirit_namespace::int_parser < boost::int64_t >()

Definition at line 36 of file json_spirit_reader_template.h.

const spirit_namespace::uint_parser< boost::uint64_t > json_spirit::uint64_p = spirit_namespace::uint_parser< boost::uint64_t >()

Definition at line 37 of file json_spirit_reader_template.h.