値
[詳細]
#include <JsonParser.h>
すべてのメンバ一覧
Public 型 |
typedef std::vector< value > | array |
typedef std::map< std::string,
value > | object |
Public メソッド |
| value () |
| value (int type, bool) |
| value (bool b) |
| value (double n) |
| value (int n) |
| value (const std::string &s) |
| value (const array &a) |
| value (const object &o) |
| ~value () |
| value (const value &x) |
value & | operator= (const value &x) |
template<typename T > |
bool | is () const |
template<typename T > |
const T & | get () const |
template<typename T > |
T & | get () |
| operator bool () const |
const value & | get (size_t idx) const |
const value & | get (const std::string &key) const |
std::string | to_str () const |
void | serialize (char *os) const |
std::string | serialize () const |
void | copy (const std::string &s, char *oi) |
void | copy (const char *s, char *oi) |
void | serialize_str (const std::string &s, char *oi) |
bool | _parse (value &out, input &in) |
int | _parse_quadhex (input &in) |
bool | _parse_codepoint (std::string &out, input &in) |
bool | _parse_string (value &out, input &in) |
bool | _parse_string (std::string &s, input &in) |
bool | _parse_array (value &out, input &in) |
bool | _parse_object (value &out, input &in) |
bool | _parse_number (value &out, input &in) |
char * | parse (value &out, const char *first, const char *last, std::string *err) |
template<> |
bool & | get () |
template<> |
double & | get () |
template<> |
int & | get () |
template<> |
std::string & | get () |
template<> |
array & | get () |
template<> |
object & | get () |
Protected 変数 |
int | type_ |
union { |
bool boolean_ |
double double_ |
int int_ |
std::string * string_ |
array * array_ |
object * object_ |
}; | |
説明
値
型定義
コンストラクタとデストラクタ
value |
( |
bool |
b |
) |
[explicit] |
value |
( |
double |
n |
) |
[explicit] |
value |
( |
int |
n |
) |
[explicit] |
value |
( |
const std::string & |
s |
) |
[explicit] |
関数
const value & get |
( |
size_t |
idx |
) |
const |
const value & get |
( |
const std::string & |
key |
) |
const |
std::string to_str |
( |
|
) |
const |
void serialize |
( |
char * |
os |
) |
const |
std::string serialize |
( |
|
) |
const |
void copy |
( |
const std::string & |
s, |
|
|
char * |
oi | |
|
) |
| | |
void copy |
( |
const char * |
s, |
|
|
char * |
oi | |
|
) |
| | |
void serialize_str |
( |
const std::string & |
s, |
|
|
char * |
oi | |
|
) |
| | |
int _parse_quadhex |
( |
input & |
in |
) |
|
bool _parse_codepoint |
( |
std::string & |
out, |
|
|
input & |
in | |
|
) |
| | |
bool _parse_string |
( |
std::string & |
s, |
|
|
input & |
in | |
|
) |
| | |
char * parse |
( |
value & |
out, |
|
|
const char * |
first, |
|
|
const char * |
last, |
|
|
std::string * |
err | |
|
) |
| | |
変数
union { ... } [protected] |
このクラスの説明は次のファイルから生成されました:
- JsonParser.h
- JsonParser.cpp