Lines Matching defs:value
30 Supports creating a DOM-like tree of json::value *, and then dumping
31 json::value * to text. */
36 /* Forward decls of json::value and its subclasses (using indentation
39 class value;
47 /* An enum for discriminating the subclasses of json::value. */
73 /* Base class of JSON value. */
75 class value
78 virtual ~value () {}
85 /* Subclass of value for objects: an unordered collection of
86 key/value pairs. */
88 class object : public value
96 void set (const char *key, value *v);
97 value *get (const char *key) const;
100 typedef hash_map <char *, value *,
101 simple_hashmap_traits<nofree_string_hash, value *> > map_t;
105 /* Subclass of value for arrays. */
107 class array : public value
115 void append (value *v);
118 auto_vec<value *> m_elements;
121 /* Subclass of value for floating-point numbers. */
123 class float_number : public value
126 float_number (double value) : m_value (value) {}
137 /* Subclass of value for integer-valued numbers. */
139 class integer_number : public value
142 integer_number (long value) : m_value (value) {}
154 /* Subclass of value for strings. */
156 class string : public value
171 /* Subclass of value for the three JSON literals "true", "false",
174 class literal : public value
179 /* Construct literal for a boolean value. */
180 literal (bool value): m_kind (value ? JSON_TRUE : JSON_FALSE) {}