Electroneum
Classes | Namespaces | Macros | Enumerations | Functions
json.h File Reference
#include <string>
#include <unordered_map>
#include <iostream>
#include <algorithm>
#include <memory>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/operators.hpp>
#include <vector>
Include dependency graph for json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  crow::json::detail::r_string
 
class  crow::json::rvalue
 
class  crow::json::wvalue
 

Namespaces

 crow
 
 crow::mustache
 
 crow::json
 
 crow::json::detail
 

Macros

#define crow_json_likely(x)   x
 
#define crow_json_unlikely(x)   x
 

Enumerations

enum  crow::json::type : char {
  crow::json::type::Null, crow::json::type::False, crow::json::type::True, crow::json::type::Number,
  crow::json::type::String, crow::json::type::List, crow::json::type::Object
}
 

Functions

void crow::json::escape (const std::string &str, std::string &ret)
 
std::string crow::json::escape (const std::string &str)
 
const char * crow::json::get_type_str (type t)
 
rvalue crow::json::load (const char *data, size_t size)
 
bool crow::json::detail::operator< (const r_string &l, const r_string &r)
 
bool crow::json::detail::operator< (const r_string &l, const std::string &r)
 
bool crow::json::detail::operator> (const r_string &l, const std::string &r)
 
bool crow::json::detail::operator== (const r_string &l, const r_string &r)
 
bool crow::json::detail::operator== (const r_string &l, const std::string &r)
 
bool crow::json::operator== (const rvalue &l, const std::string &r)
 
bool crow::json::operator== (const std::string &l, const rvalue &r)
 
bool crow::json::operator!= (const rvalue &l, const std::string &r)
 
bool crow::json::operator!= (const std::string &l, const rvalue &r)
 
bool crow::json::operator== (const rvalue &l, double r)
 
bool crow::json::operator== (double l, const rvalue &r)
 
bool crow::json::operator!= (const rvalue &l, double r)
 
bool crow::json::operator!= (double l, const rvalue &r)
 
rvalue crow::json::load_nocopy_internal (char *data, size_t size)
 
rvalue crow::json::load (const char *data)
 
rvalue crow::json::load (const std::string &str)
 
void crow::json::dump_string (const std::string &str, std::string &out)
 
void crow::json::dump_internal (const wvalue &v, std::string &out)
 
std::string crow::json::dump (const wvalue &v)
 

Macro Definition Documentation

◆ crow_json_likely

#define crow_json_likely (   x)    x

◆ crow_json_unlikely

#define crow_json_unlikely (   x)    x