Home | History | Annotate | Download | only in json

Lines Matching defs:const

57 //   typedef CppTL::AnyEnumerator<const char *> EnumMemberNames;
58 // typedef CppTL::AnyEnumerator<const Value &> EnumValues;
71 * static const StaticString code("code");
77 explicit StaticString(const char* czstring) : str_(czstring) {}
79 operator const char*() const { return str_; }
81 const char* c_str() const { return str_; }
84 const char* str_;
104 * Non const methods will automatically create the a #nullValue element
136 static const Value& null;
138 static const LargestInt minLargestInt;
140 static const LargestInt maxLargestInt;
142 static const LargestUInt maxLargestUInt;
145 static const Int minInt;
147 static const Int maxInt;
149 static const UInt maxUInt;
153 static const Int64 minInt64;
155 static const Int64 maxInt64;
157 static const UInt64 maxUInt64;
171 CZString(const char* cstr, DuplicationPolicy allocate);
172 CZString(const CZString& other);
175 bool operator<(const CZString& other) const;
176 bool operator==(const CZString& other) const;
177 ArrayIndex index() const;
178 const char* c_str() const;
179 bool isStaticString() const;
183 const char* cstr_;
220 Value(const char* value);
221 Value(const char* beginValue, const char* endValue);
232 Value(const StaticString& value);
233 Value(const std::string& value);
235 Value(const CppTL::ConstString& value);
238 Value(const Value& other);
247 ValueType type() const;
249 bool operator<(const Value& other) const;
250 bool operator<=(const Value& other) const;
251 bool operator>=(const Value& other) const;
252 bool operator>(const Value& other) const;
254 bool operator==(const Value& other) const;
255 bool operator!=(const Value& other) const;
257 int compare(const Value& other) const;
259 const char* asCString() const;
260 std::string asString() const;
262 CppTL::ConstString asConstString() const;
264 Int asInt() const;
265 UInt asUInt() const;
267 Int64 asInt64() const;
268 UInt64 asUInt64() const;
270 LargestInt asLargestInt() const;
271 LargestUInt asLargestUInt() const;
272 float asFloat() const;
273 double asDouble() const;
274 bool asBool() const;
276 bool isNull() const;
277 bool isBool() const;
278 bool isInt() const;
279 bool isInt64() const;
280 bool isUInt() const;
281 bool isUInt64() const;
282 bool isIntegral() const;
283 bool isDouble() const;
284 bool isNumeric() const;
285 bool isString() const;
286 bool isArray() const;
287 bool isObject() const;
289 bool isConvertibleTo(ValueType other) const;
292 ArrayIndex size() const;
296 bool empty() const;
299 bool operator!() const;
332 const Value& operator[](ArrayIndex index) const;
337 const Value& operator[](int index) const;
342 Value get(ArrayIndex index, const Value& defaultValue) const;
344 bool isValidIndex(ArrayIndex index) const;
348 Value& append(const Value& value);
351 Value& operator[](const char* key);
354 const Value& operator[](const char* key) const;
356 Value& operator[](const std::string& key);
359 const Value& operator[](const std::string& key) const;
368 * static const StaticString code("code");
372 Value& operator[](const StaticString& key);
375 Value& operator[](const CppTL::ConstString& key);
378 const Value& operator[](const CppTL::ConstString& key) const;
381 Value get(const char* key, const Value& defaultValue) const;
383 Value get(const std::string& key, const Value& defaultValue) const;
386 Value get(const CppTL::ConstString& key, const Value& defaultValue) const;
394 Value removeMember(const char* key);
395 /// Same as removeMember(const char*)
396 Value removeMember(const std::string& key);
399 bool isMember(const char* key) const;
401 bool isMember(const std::string& key) const;
404 bool isMember(const CppTL::ConstString& key) const;
412 Members getMemberNames() const;
415 // EnumMemberNames enumMemberNames() const;
416 // EnumValues enumValues() const;
420 void setComment(const char* comment, CommentPlacement placement);
422 void setComment(const std::string& comment, CommentPlacement placement);
423 bool hasComment(CommentPlacement placement) const;
425 std::string getComment(CommentPlacement placement) const;
427 std::string toStyledString() const;
429 const_iterator begin() const;
430 const_iterator end() const;
439 size_t getOffsetStart() const;
440 size_t getOffsetLimit() const;
445 Value& resolveReference(const char* key, bool isStatic);
448 inline bool isItemAvailable() const { return itemIsUsed_ == 0; }
452 inline bool isMemberNameStatic() const { return memberNameIsStatic_ == 0; }
464 void setComment(const char* text);
471 // typedef const char *result_type;
472 // const char *operator()( const CZString &name ) const
514 PathArgument(const
515 PathArgument(const std::string& key);
541 Path(const std::string& path,
542 const PathArgument& a1 = PathArgument(),
543 const PathArgument& a2 = PathArgument(),
544 const PathArgument& a3 = PathArgument(),
545 const PathArgument& a4 = PathArgument(),
546 const PathArgument& a5 = PathArgument());
548 const Value& resolve(const Value& root) const;
549 Value resolve(const Value& root, const Value& defaultValue) const;
552 Value& make(Value& root) const;
555 typedef std::vector<const PathArgument*> InArgs;
558 void makePath(const std::string& path, const InArgs& in);
559 void addPathInArg(const std::string& path,
560 const InArgs& in,
563 void invalidPath(const std::string& path, int location);
582 virtual ValueInternalMap *newMapCopy( const ValueInternalMap &other )
618 virtual ValueInternalMap* newMapCopy(const ValueInternalMap& other) = 0;
685 ValueInternalMap(const ValueInternalMap& other);
691 BucketIndex size() const;
699 const Value* find(const char* key) const;
701 Value* find(const char* key);
703 Value& resolveReference(const char* key, bool isStatic);
705 void remove(const char* key);
713 Value& setNewItem(const char* key,
718 Value& unsafeAdd(const char* key, bool isStatic, HashKey hashedKey);
720 HashKey hash(const char* key) const;
722 int compare(const ValueInternalMap& other) const;
725 void makeBeginIterator(IteratorState& it) const;
726 void makeEndIterator(IteratorState& it) const;
727 static bool equals(const IteratorState& x, const IteratorState& other);
731 static const char* key(const IteratorState& iterator);
732 static const char* key(const IteratorState& iterator, bool& isStatic);
733 static Value& value(const IteratorState& iterator);
734 static int distance(const IteratorState& x, const IteratorState& y);
779 ValueInternalArray(const ValueInternalArray& other);
789 Value* find(ArrayIndex index) const;
791 ArrayIndex size() const;
793 int compare(const ValueInternalArray& other) const;
796 static bool equals(const IteratorState& x, const IteratorState& other);
799 static Value& dereference(const IteratorState& iterator);
800 static Value& unsafeDereference(const IteratorState& iterator);
801 static int distance(const IteratorState& x, const IteratorState& y);
802 static ArrayIndex indexOf(const IteratorState& iterator);
803 void makeBeginIterator(IteratorState& it) const;
804 void makeEndIterator(IteratorState& it) const;
805 void makeIterator(IteratorState& it, ArrayIndex index) const;
831 virtual ValueInternalArray *newArrayCopy( const ValueInternalArray &other )
881 virtual ValueInternalArray* newArrayCopy(const ValueInternalArray& other) = 0;
919 explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
921 ValueIteratorBase(const ValueInternalArray::IteratorState& state);
922 ValueIteratorBase(const ValueInternalMap::IteratorState& state);
925 bool operator==(const SelfType& other) const { return isEqual(other); }
927 bool operator!=(const SelfType& other) const { return !isEqual(other); }
929 difference_type operator-(const SelfType& other) const {
935 Value key() const;
938 UInt index() const;
942 const char* memberName() const;
945 Value& deref() const;
951 difference_type computeDistance(const SelfType& other) const;
953 bool isEqual(const SelfType& other) const;
955 void copy(const SelfType& other);
971 /** \brief const iterator for object and array value.
978 typedef const Value value_type;
981 typedef const Value& reference;
982 typedef const Value* pointer;
991 explicit ValueConstIterator(const Value::ObjectValues::iterator& current);
993 ValueConstIterator(const ValueInternalArray::IteratorState& state);
994 ValueConstIterator(const ValueInternalMap::IteratorState& state);
997 SelfType& operator=(const ValueIteratorBase& other);
1021 reference operator*() const { return deref(); }
1023 pointer operator->() const { return &deref(); }
1040 ValueIterator(const ValueConstIterator& other);
1041 ValueIterator(const ValueIterator& other);
1047 explicit ValueIterator(const Value::ObjectValues::iterator& current);
1049 ValueIterator(const ValueInternalArray::IteratorState& state);
1050 ValueIterator(const ValueInternalMap::IteratorState& state);
1053 SelfType& operator=(const SelfType& other);
1077 reference operator*() const { return deref(); }
1079 pointer operator->() const { return &deref(); }