Lines Matching refs:Value
357 class Value; variable
639 class JSON_API Value {
658 …static const Value& null; ///< We regret this reference to a global instance; prefer the simpler …
659 static const Value& nullRef; ///< just a kludge for binary-compatibility; same as null
660 static Value const& nullSingleton(); ///< Prefer this to null or nullRef.
732 typedef std::map<CZString, Value> ObjectValues;
734 typedef CppTL::SmallMap<CZString, Value> ObjectValues;
754 Value(ValueType type = nullValue);
755 Value(Int value);
756 Value(UInt value);
758 Value(Int64 value);
759 Value(UInt64 value);
761 Value(double value);
762 Value(const char* value); ///< Copy til first 0. (NULL causes to seg-fault.)
763 Value(const char* begin, const char* end); ///< Copy all, incl zeroes.
779 Value(const StaticString& value);
780 Value(const JSONCPP_STRING& value); ///< Copy data() til size(). Embedded zeroes too.
782 Value(const CppTL::ConstString& value);
784 Value(bool value);
786 Value(const Value& other);
789 Value(Value&& other);
791 ~Value();
795 Value& operator=(Value other);
798 void swap(Value& other);
800 void swapPayload(Value& other);
803 void copy(const Value& other);
805 void copyPayload(const Value& other);
810 bool operator<(const Value& other) const;
811 bool operator<=(const Value& other) const;
812 bool operator>=(const Value& other) const;
813 bool operator>(const Value& other) const;
814 bool operator==(const Value& other) const;
815 bool operator!=(const Value& other) const;
816 int compare(const Value& other) const;
886 Value& operator[](ArrayIndex index);
894 Value& operator[](int index);
899 const Value& operator[](ArrayIndex index) const;
904 const Value& operator[](int index) const;
909 Value get(ArrayIndex index, const Value& defaultValue) const;
915 Value& append(const Value& value);
918 Value& append(Value&& value);
924 Value& operator[](const char* key);
927 const Value& operator[](const char* key) const;
930 Value& operator[](const JSONCPP_STRING& key);
934 const Value& operator[](const JSONCPP_STRING& key) const;
947 Value& operator[](const StaticString& key);
950 Value& operator[](const CppTL::ConstString& key);
953 const Value& operator[](const CppTL::ConstString& key) const;
957 Value get(const char* key, const Value& defaultValue) const;
961 Value get(const char* begin, const char* end, const Value& defaultValue) const;
965 Value get(const JSONCPP_STRING& key, const Value& defaultValue) const;
969 Value get(const CppTL::ConstString& key, const Value& defaultValue) const;
974 Value const* find(char const* begin, char const* end) const;
978 Value const* demand(char const* begin, char const* end);
993 bool removeMember(const char* key, Value* removed);
1000 bool removeMember(JSONCPP_STRING const& key, Value* removed);
1002 bool removeMember(const char* begin, const char* end, Value* removed);
1009 bool removeIndex(ArrayIndex i, Value* removed);
1065 Value& resolveReference(const char* key);
1066 Value& resolveReference(const char* key, const char* end);
1148 const Value& resolve(const Value& root) const;
1149 Value resolve(const Value& root, const Value& defaultValue) const;
1152 Value& make(Value& root) const;
1188 Value key() const;
1209 Value& deref() const;
1222 Value::ObjectValues::iterator current_;
1230 explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);
1237 friend class Value; variable
1240 typedef const Value value_type;
1243 typedef const Value& reference;
1244 typedef const Value* pointer;
1253 explicit ValueConstIterator(const Value::ObjectValues::iterator& current);
1287 friend class Value; variable
1290 typedef Value value_type;
1293 typedef Value& reference;
1294 typedef Value* pointer;
1304 explicit ValueIterator(const Value::ObjectValues::iterator& current);
1342 inline void swap(AlibabaCloud::OSS::Json::Value& a, AlibabaCloud::OSS::Json::Value& b) { a.swap(b);… in swap()
1445 parse(const std::string& document, Value& root, bool collectComments = true);
1467 Value& root,
1472 bool parse(JSONCPP_ISTREAM& is, Value& root, bool collectComments = true);
1511 bool pushError(const Value& value, const JSONCPP_STRING& message);
1520 bool pushError(const Value& value, const JSONCPP_STRING& message, const Value& extra);
1574 bool decodeNumber(Token& token, Value& decoded);
1578 bool decodeDouble(Token& token, Value& decoded);
1593 Value& currentValue();
1604 typedef std::stack<Value*> Nodes;
1612 Value* lastValue_;
1642 Value* root, JSONCPP_STRING* errs) = 0;
1706 Json::Value settings_;
1716 bool validate(Json::Value* invalid) const;
1720 Value& operator[](JSONCPP_STRING key);
1727 static void setDefaults(Json::Value* settings);
1733 static void strictMode(Json::Value* settings);
1743 Value* root, std::string* errs);
1769 JSON_API JSONCPP_ISTREAM& operator>>(JSONCPP_ISTREAM&, Value&);
1824 class Value; variable
1851 virtual int write(Value const& root, JSONCPP_OSTREAM* sout) = 0;
1868 JSONCPP_STRING JSON_API writeString(StreamWriter::Factory const& factory, Value const& root);
1911 Json::Value settings_;
1924 bool validate(Json::Value* invalid) const;
1927 Value& operator[](JSONCPP_STRING key);
1934 static void setDefaults(Json::Value* settings);
1944 virtual JSONCPP_STRING write(const Value& root) = 0;
1977 JSONCPP_STRING write(const Value& root) JSONCPP_OVERRIDE;
1980 void writeValue(const Value& value);
2029 JSONCPP_STRING write(const Value& root) JSONCPP_OVERRIDE;
2032 void writeValue(const Value& value);
2033 void writeArrayValue(const Value& value);
2034 bool isMultilineArray(const Value& value);
2040 void writeCommentBeforeValue(const Value& root);
2041 void writeCommentAfterValueOnSameLine(const Value& root);
2042 bool hasCommentForValue(const Value& value);
2102 void write(JSONCPP_OSTREAM& out, const Value& root);
2105 void writeValue(const Value& value);
2106 void writeArrayValue(const Value& value);
2107 bool isMultilineArray(const Value& value);
2113 void writeCommentBeforeValue(const Value& root);
2114 void writeCommentAfterValueOnSameLine(const Value& root);
2115 bool hasCommentForValue(const Value& value);
2144 JSON_API JSONCPP_OSTREAM& operator<<(JSONCPP_OSTREAM&, const Value& root);