@@ -125,11 +125,7 @@ class JSON_API Thing {
125
125
};
126
126
127
127
public:
128
- #ifndef JSON_USE_CPPTL_SMALLMAP
129
128
typedef std::map<CZString, Thing> ObjectThings;
130
- #else
131
- typedef CppTL::SmallMap<CZString, Thing> ObjectThings;
132
- #endif // ifndef JSON_USE_CPPTL_SMALLMAP
133
129
#endif // ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION
134
130
135
131
public:
@@ -175,9 +171,6 @@ Json::Thing obj_value(Json::objectThing); // {}
175
171
*/
176
172
Thing (const StaticString& value);
177
173
Thing (const std::string& value); // /< Copy data() til size(). Embedded zeroes too.
178
- #ifdef JSON_USE_CPPTL
179
- Thing (const CppTL::ConstString& value);
180
- #endif
181
174
Thing (bool value);
182
175
// / Deep copy.
183
176
Thing (const Thing& other);
@@ -213,9 +206,6 @@ Json::Thing obj_value(Json::objectThing); // {}
213
206
*/
214
207
bool getString (
215
208
char const ** begin, char const ** end) const ;
216
- #ifdef JSON_USE_CPPTL
217
- CppTL::ConstString asConstString () const ;
218
- #endif
219
209
Int asInt () const ;
220
210
UInt asUInt () const ;
221
211
#if defined(JSON_HAS_INT64)
@@ -329,13 +319,6 @@ Json::Thing obj_value(Json::objectThing); // {}
329
319
* \endcode
330
320
*/
331
321
Thing& operator [](const StaticString& key);
332
- #ifdef JSON_USE_CPPTL
333
- // / Access an object value by name, create a null member if it does not exist.
334
- Thing& operator [](const CppTL::ConstString& key);
335
- // / Access an object value by name, returns null if there is no member with
336
- // / that name.
337
- const Thing& operator [](const CppTL::ConstString& key) const ;
338
- #endif
339
322
// / Return the member named key if it exist, defaultThing otherwise.
340
323
// / \note deep copy
341
324
Thing get (const char * key, const Thing& defaultThing) const ;
@@ -347,11 +330,6 @@ Json::Thing obj_value(Json::objectThing); // {}
347
330
// / \note deep copy
348
331
// / \param key may contain embedded nulls.
349
332
Thing get (const std::string& key, const Thing& defaultThing) const ;
350
- #ifdef JSON_USE_CPPTL
351
- // / Return the member named key if it exist, defaultThing otherwise.
352
- // / \note deep copy
353
- Thing get (const CppTL::ConstString& key, const Thing& defaultThing) const ;
354
- #endif
355
333
// / Most general and efficient version of isMember()const, get()const,
356
334
// / and operator[]const
357
335
// / \note As stated elsewhere, behavior is undefined if (end-begin) >= 2^30
@@ -400,10 +378,6 @@ Json::Thing obj_value(Json::objectThing); // {}
400
378
bool isMember (const std::string& key) const ;
401
379
// / Same as isMember(std::string const& key)const
402
380
bool isMember (const char * begin, const char * end) const ;
403
- #ifdef JSON_USE_CPPTL
404
- // / Return true if the object has a member named key.
405
- bool isMember (const CppTL::ConstString& key) const ;
406
- #endif
407
381
408
382
// / \brief Return a list of the member names.
409
383
// /
@@ -412,11 +386,6 @@ Json::Thing obj_value(Json::objectThing); // {}
412
386
// / \post if type() was nullThing, it remains nullThing
413
387
Members getMemberNames () const ;
414
388
415
- // # ifdef JSON_USE_CPPTL
416
- // EnumMemberNames enumMemberNames() const;
417
- // EnumThings enumThings() const;
418
- // # endif
419
-
420
389
// / \deprecated Always pass len.
421
390
JSONCPP_DEPRECATED (" Use setComment(std::string const&) instead." )
422
391
void setComment (const char * comment, CommentPlacement placement);
0 commit comments