@@ -24,53 +24,53 @@ class jsont
2424 J_TRUE, J_FALSE, J_NULL } kindt;
2525 kindt kind;
2626
27- inline bool is_string () const
27+ bool is_string () const
2828 {
2929 return kind==J_STRING;
3030 }
3131
32- inline bool is_number () const
32+ bool is_number () const
3333 {
3434 return kind==J_NUMBER;
3535 }
3636
37- inline bool is_object () const
37+ bool is_object () const
3838 {
3939 return kind==J_OBJECT;
4040 }
4141
42- inline bool is_array () const
42+ bool is_array () const
4343 {
4444 return kind==J_ARRAY;
4545 }
4646
47- inline bool is_true () const
47+ bool is_true () const
4848 {
4949 return kind==J_TRUE;
5050 }
5151
52- inline bool is_false () const
52+ bool is_false () const
5353 {
5454 return kind==J_FALSE;
5555 }
5656
57- inline bool is_null () const
57+ bool is_null () const
5858 {
5959 return kind==J_NULL;
6060 }
6161
62- inline jsont ():kind(J_NULL)
62+ jsont ():kind(J_NULL)
6363 {
6464 }
6565
66- inline void output (std::ostream &out) const
66+ void output (std::ostream &out) const
6767 {
6868 output_rec (out, 0 );
6969 }
7070
7171 void swap (jsont &other);
7272
73- inline static jsont json_boolean (bool value)
73+ static jsont json_boolean (bool value)
7474 {
7575 return jsont (value?J_TRUE:J_FALSE);
7676 }
@@ -83,11 +83,11 @@ class jsont
8383 array.clear ();
8484 }
8585
86- inline json_arrayt &make_array ();
87- inline json_objectt &make_object ();
86+ json_arrayt &make_array ();
87+ json_objectt &make_object ();
8888
8989 // this presumes that this is an object
90- inline const jsont &operator [](const std::string &key) const
90+ const jsont &operator [](const std::string &key) const
9191 {
9292 objectt::const_iterator it=object.find (key);
9393 if (it==object.end ())
@@ -102,11 +102,11 @@ class jsont
102102
103103 static const jsont null_json_object;
104104
105- inline explicit jsont (kindt _kind):kind(_kind)
105+ explicit jsont (kindt _kind):kind(_kind)
106106 {
107107 }
108108
109- inline jsont (kindt _kind, const std::string &_value):kind(_kind), value(_value)
109+ jsont (kindt _kind, const std::string &_value):kind(_kind), value(_value)
110110 {
111111 }
112112
@@ -134,7 +134,7 @@ class json_arrayt:public jsont
134134 {
135135 }
136136
137- inline void resize (std::size_t size)
137+ void resize (std::size_t size)
138138 {
139139 array.resize (size);
140140 }
@@ -144,13 +144,13 @@ class json_arrayt:public jsont
144144 return array.size ();
145145 }
146146
147- inline jsont &push_back (const jsont &json)
147+ jsont &push_back (const jsont &json)
148148 {
149149 array.push_back (json);
150150 return static_cast <jsont &>(array.back ());
151151 }
152152
153- inline jsont &push_back ()
153+ jsont &push_back ()
154154 {
155155 array.push_back (jsont ());
156156 return static_cast <jsont &>(array.back ());
@@ -182,12 +182,12 @@ class json_objectt:public jsont
182182 {
183183 }
184184
185- inline jsont &operator [](const std::string &key)
185+ jsont &operator [](const std::string &key)
186186 {
187187 return object[key];
188188 }
189189
190- inline const jsont &operator [](const std::string &key) const
190+ const jsont &operator [](const std::string &key) const
191191 {
192192 objectt::const_iterator it=object.find (key);
193193 if (it==object.end ())
@@ -215,13 +215,13 @@ class json_nullt:public jsont
215215 json_nullt ():jsont(J_NULL) { }
216216};
217217
218- json_arrayt &jsont::make_array ()
218+ inline json_arrayt &jsont::make_array ()
219219{
220220 kind=J_ARRAY;
221221 return static_cast <json_arrayt &>(*this );
222222}
223223
224- json_objectt &jsont::make_object ()
224+ inline json_objectt &jsont::make_object ()
225225{
226226 kind=J_OBJECT;
227227 return static_cast <json_objectt &>(*this );
0 commit comments