Lines Matching refs:JSONValue
25 class JSONValue {
29 typedef std::shared_ptr<JSONValue> SP;
33 JSONValue(Kind k) : m_kind(k) {} in JSONValue() function
37 virtual ~JSONValue() = default;
43 class JSONString : public JSONValue {
58 static bool classof(const JSONValue *V) { in classof()
59 return V->GetKind() == JSONValue::Kind::String; in classof()
70 class JSONNumber : public JSONValue {
87 : JSONValue(JSONValue::Kind::Number), m_data_type(DataType::Unsigned) { in JSONNumber()
95 : JSONValue(JSONValue::Kind::Number), m_data_type(DataType::Signed) { in JSONNumber()
102 : JSONValue(JSONValue::Kind::Number), m_data_type(DataType::Double) { in JSONNumber()
119 static bool classof(const JSONValue *V) { in classof()
120 return V->GetKind() == JSONValue::Kind::Number; in classof()
133 class JSONTrue : public JSONValue {
144 static bool classof(const JSONValue *V) { in classof()
145 return V->GetKind() == JSONValue::Kind::True; in classof()
151 class JSONFalse : public JSONValue {
162 static bool classof(const JSONValue *V) { in classof()
163 return V->GetKind() == JSONValue::Kind::False; in classof()
169 class JSONNull : public JSONValue {
180 static bool classof(const JSONValue *V) { in classof()
181 return V->GetKind() == JSONValue::Kind::Null; in classof()
187 class JSONObject : public JSONValue {
198 static bool classof(const JSONValue *V) { in classof()
199 return V->GetKind() == JSONValue::Kind::Object; in classof()
202 bool SetObject(const std::string &key, JSONValue::SP value);
204 JSONValue::SP GetObject(const std::string &key) const;
226 typedef std::map<std::string, JSONValue::SP> Map;
231 class JSONArray : public JSONValue {
242 static bool classof(const JSONValue *V) { in classof()
243 return V->GetKind() == JSONValue::Kind::Array; in classof()
247 typedef std::vector<JSONValue::SP> Vector;
253 bool SetObject(Index i, JSONValue::SP value);
255 bool AppendObject(JSONValue::SP value);
257 JSONValue::SP GetObject(Index i);
292 JSONValue::SP ParseJSONValue();
295 JSONValue::SP ParseJSONValue(const std::string &value, const Token &token);
297 JSONValue::SP ParseJSONObject();
299 JSONValue::SP ParseJSONArray();