Rosetta
|
Namespaces | |
internal_ | |
Classes | |
struct | Error_position |
class | Semantic_actions |
class | Json_grammer |
struct | Multi_pass_iters |
class | Stream_reader |
class | Stream_reader_thrower |
struct | Null |
class | Value_impl |
struct | Pair_impl |
struct | Config_vector |
struct | Config_map |
class | Generator |
Typedefs | |
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 } |
enum | Output_options { pretty_print = 0x01 , raw_utf8 = 0x02 , remove_trailing_zeros = 0x04 , single_line_arrays = 0x08 } |
Functions | |
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, const std::string &reason) |
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 > | |
Iter_type | 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 > | |
bool | read_string (const String_type &s, Value_type &value) |
template<class String_type , class Value_type > | |
void | read_string_or_throw (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) |
bool | has_value (const mObject &obj, const std::string &name) |
mValue | get_value (const mObject &obj, const std::string &name) |
mObject | get_mObject (const mObject &obj, const std::string &name) |
mArray | get_mArray (const mObject &obj, const std::string &name) |
mArray | read_mArray (const std::string &json_string) |
mObject | read_mObject (const std::string &json_string) |
std::string | get_string (const mObject &obj, const std::string &name) |
std::string | get_string_or_empty (const mObject &obj, const std::string &name) |
double | get_real (const mObject &obj, const std::string &name) |
double | get_real_or_zero (const mObject &obj, const std::string &name) |
int | get_int (const mObject &obj, const std::string &name) |
int | get_int_or_zero (const mObject &obj, const std::string &name) |
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) |
bool | operator== (const Null &, const Null &) |
template<class String_type > | |
String_type | to_str (const char *c_str) |
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, bool raw_utf8) |
template<class Ostream > | |
void | append_double (Ostream &os, const double d, const int precision) |
template<class String_type > | |
void | erase_and_extract_exponent (String_type &str, String_type &exp) |
template<class String_type > | |
String_type::size_type | find_first_non_zero (const String_type &str) |
template<class String_type > | |
void | remove_trailing (String_type &str) |
template<class Value_type , class Ostream_type > | |
void | write_stream (const Value_type &value, Ostream_type &os, unsigned int options=0) |
template<class Value_type > | |
Value_type::String_type | write_string (const Value_type &value, unsigned int options=0) |
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 Config_vector< std::string > utility::json_spirit::Config |
typedef Config_map< std::string > utility::json_spirit::mConfig |
typedef Config_vector< std::wstring > utility::json_spirit::wConfig |
typedef Config_map< std::wstring > utility::json_spirit::wmConfig |
bool utility::json_spirit::add_esc_char | ( | Char_type | c, |
String_type & | s | ||
) |
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, and docking::s.
Referenced by add_esc_chars().
String_type utility::json_spirit::add_esc_chars | ( | const String_type & | s, |
bool | raw_utf8 | ||
) |
void utility::json_spirit::add_posn_iter_and_read_range_or_throw | ( | Iter_type | begin, |
Iter_type | end, | ||
Value_type & | value | ||
) |
References begin, end, read_range_or_throw(), and value.
Referenced by read_stream_or_throw(), and read_string_or_throw().
void utility::json_spirit::append_double | ( | Ostream & | os, |
const double | d, | ||
const int | precision | ||
) |
void utility::json_spirit::append_esc_char_and_incr_iter | ( | String_type & | s, |
typename String_type::const_iterator & | begin, | ||
typename String_type::const_iterator | end | ||
) |
References begin, end, and docking::s.
Referenced by substitute_esc_chars().
void utility::json_spirit::erase_and_extract_exponent | ( | String_type & | str, |
String_type & | exp | ||
) |
References str().
Referenced by remove_trailing().
String_type::size_type utility::json_spirit::find_first_non_zero | ( | const String_type & | str | ) |
References str().
Referenced by remove_trailing().
const Object_type::value_type::Value_type& utility::json_spirit::find_value | ( | const Object_type & | obj, |
const String_type & | name | ||
) |
References create_a3b_hbs::i.
int utility::json_spirit::get_int | ( | const mObject & | obj, |
const std::string & | name | ||
) |
References CREATE_EXCEPTION, get_value(), int_type, and value.
Referenced by get_real().
int utility::json_spirit::get_int_or_zero | ( | const mObject & | obj, |
const std::string & | name | ||
) |
References get_real(), and has_value().
References array_type, CREATE_EXCEPTION, get_value(), and value.
Referenced by numeric::read_tensor_from_file().
References CREATE_EXCEPTION, get_value(), obj_type, and value.
References CREATE_EXCEPTION, get_int(), get_value(), int_type, real_type, and value.
Referenced by numeric::interpolation::spline::CompoundInterpolator::deserialize(), get_int_or_zero(), and get_real_or_zero().
References get_real(), and has_value().
String_type utility::json_spirit::get_str | ( | Iter_type | begin, |
Iter_type | end | ||
) |
|
inline |
|
inline |
String_type utility::json_spirit::get_str_ | ( | typename String_type::const_iterator | begin, |
typename String_type::const_iterator | end | ||
) |
std::string utility::json_spirit::get_string | ( | const mObject & | obj, |
const std::string & | name | ||
) |
References CREATE_EXCEPTION, get_value(), str_type, and value.
Referenced by RosettaJob::request_job_from_server().
std::string utility::json_spirit::get_string_or_empty | ( | const mObject & | obj, |
const std::string & | name | ||
) |
References get_value(), has_value(), str_type, and value.
Referenced by numeric::read_tensor_from_file(), and RosettaJob::request_job_from_server().
References CREATE_EXCEPTION, and create_a3b_hbs::i.
Referenced by job_manager.JobWindow::edit_description(), get_int(), get_mArray(), get_mObject(), get_real(), job_manager.JobWindow::get_selected_jobs(), get_string(), get_string_or_empty(), and utility::json_spirit::Generator< Value_type, Ostream_type >::output().
bool utility::json_spirit::has_value | ( | const mObject & | obj, |
const std::string & | name | ||
) |
References create_a3b_hbs::i.
Referenced by GlycanClashCheckMover::calculate_atom_clashes(), get_int_or_zero(), get_real_or_zero(), and get_string_or_empty().
Char_type utility::json_spirit::hex_str_to_char | ( | Iter_type & | begin | ) |
References begin, and hex_to_num().
Char_type utility::json_spirit::hex_to_num | ( | const Char_type | c | ) |
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c.
Referenced by hex_str_to_char(), and unicode_str_to_char().
bool utility::json_spirit::is_eq | ( | Iter_type | first, |
Iter_type | last, | ||
const char * | c_str | ||
) |
References create_a3b_hbs::first, and create_a3b_hbs::i.
Referenced by utility::json_spirit::Semantic_actions< Value_type, Iter_type >::new_false(), utility::json_spirit::Semantic_actions< Value_type, Iter_type >::new_null(), and utility::json_spirit::Semantic_actions< Value_type, Iter_type >::new_true().
void utility::json_spirit::map_to_obj | ( | const Map_t & | mp_obj, |
Obj_t & | obj | ||
) |
References create_a3b_hbs::i.
String_type utility::json_spirit::non_printable_to_string | ( | unsigned int | c | ) |
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c, and to_hex_char().
void utility::json_spirit::obj_to_map | ( | const Obj_t & | obj, |
Map_t & | mp_obj | ||
) |
References create_a3b_hbs::i.
mArray utility::json_spirit::read_mArray | ( | const std::string & | json_string | ) |
References array_type, CREATE_EXCEPTION, and value.
Referenced by RosettaJob::request_job_from_server().
mObject utility::json_spirit::read_mObject | ( | const std::string & | json_string | ) |
References CREATE_EXCEPTION, obj_type, and value.
Referenced by RosettaJob::request_job_from_server().
bool utility::json_spirit::read_range | ( | Iter_type & | begin, |
Iter_type | end, | ||
Value_type & | value | ||
) |
References begin, end, read_range_or_throw(), and value.
Referenced by utility::json_spirit::Stream_reader< Istream_type, Value_type >::read_next(), read_stream(), and read_string().
Iter_type utility::json_spirit::read_range_or_throw | ( | Iter_type | begin, |
Iter_type | end, | ||
Value_type & | value | ||
) |
References begin, end, info(), throw_error(), and value.
Referenced by add_posn_iter_and_read_range_or_throw(), utility::json_spirit::Stream_reader_thrower< Istream_type, Value_type >::read_next(), and read_range().
bool utility::json_spirit::read_stream | ( | Istream_type & | is, |
Value_type & | value | ||
) |
void utility::json_spirit::read_stream_or_throw | ( | Istream_type & | is, |
Value_type & | value | ||
) |
bool utility::json_spirit::read_string | ( | const String_type & | s, |
Value_type & | value | ||
) |
References begin, read_range(), docking::s, and value.
void utility::json_spirit::read_string_or_throw | ( | const String_type & | s, |
Value_type & | value | ||
) |
References add_posn_iter_and_read_range_or_throw(), docking::s, and value.
void utility::json_spirit::remove_trailing | ( | String_type & | str | ) |
References erase_and_extract_exponent(), find_first_non_zero(), offset, and str().
Referenced by utility::json_spirit::Generator< Value_type, Ostream_type >::output().
String_type utility::json_spirit::substitute_esc_chars | ( | typename String_type::const_iterator | begin, |
typename String_type::const_iterator | end | ||
) |
References append_esc_char_and_incr_iter(), begin, end, and create_a3b_hbs::i.
void utility::json_spirit::throw_error | ( | Iter_type | , |
const std::string & | reason | ||
) |
void utility::json_spirit::throw_error | ( | spirit_namespace::position_iterator< Iter_type > | i, |
const std::string & | reason | ||
) |
References create_a3b_hbs::i.
Referenced by read_range_or_throw(), utility::json_spirit::Json_grammer< Value_type, Iter_type >::throw_not_array(), utility::json_spirit::Json_grammer< Value_type, Iter_type >::throw_not_colon(), utility::json_spirit::Json_grammer< Value_type, Iter_type >::throw_not_object(), utility::json_spirit::Json_grammer< Value_type, Iter_type >::throw_not_pair(), utility::json_spirit::Json_grammer< Value_type, Iter_type >::throw_not_string(), and utility::json_spirit::Json_grammer< Value_type, Iter_type >::throw_not_value().
|
inline |
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::c.
Referenced by non_printable_to_string().
String_type utility::json_spirit::to_str | ( | const char * | c_str | ) |
Char_type utility::json_spirit::unicode_str_to_char | ( | Iter_type & | begin | ) |
References begin, and hex_to_num().
void utility::json_spirit::write_stream | ( | const Value_type & | value, |
Ostream_type & | os, | ||
unsigned int | options = 0 |
||
) |
References value.
Referenced by write_string().
Value_type::String_type utility::json_spirit::write_string | ( | const Value_type & | value, |
unsigned int | options = 0 |
||
) |
References value, and write_stream().
const spirit_namespace::int_parser< boost::int64_t > utility::json_spirit::int64_p = spirit_namespace::int_parser < boost::int64_t >() |
const spirit_namespace::uint_parser< boost::uint64_t > utility::json_spirit::uint64_p = spirit_namespace::uint_parser< boost::uint64_t >() |