Lines Matching refs:GenericValue

66 class GenericValue;
122 GenericValue<Encoding, Allocator> name; //!< name of member (must be a string)
123 GenericValue<Encoding, Allocator> value; //!< value of member.
188 friend class GenericValue<Encoding,Allocator>;
506 : IsBaseOf<GenericValue<typename T::EncodingType, typename T::AllocatorType>, T>::Type {};
668 class GenericValue {
678 typedef GenericValue* ValueIterator; //!< Value iterator for iterating in array.
679 …typedef const GenericValue* ConstValueIterator; //!< Constant value iterator for iterating in arra…
680 typedef GenericValue<Encoding, Allocator> ValueType; //!< Value type of itself.
690 GenericValue() RAPIDJSON_NOEXCEPT : data_() { data_.f.flags = kNullFlag; }
694 GenericValue(GenericValue&& rhs) RAPIDJSON_NOEXCEPT : data_(rhs.data_) {
701 GenericValue(const GenericValue& rhs);
706 GenericValue(GenericDocument<Encoding,Allocator,StackAllocator>&& rhs);
710 GenericValue& operator=(GenericDocument<Encoding,Allocator,StackAllocator>&& rhs);
720 explicit GenericValue(Type type) RAPIDJSON_NOEXCEPT : data_() {
742GenericValue(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator, bool copyCon…
749GenericValue* le = reinterpret_cast<GenericValue*>(allocator.Malloc(count * sizeof(GenericValue)));
750 const GenericValue<Encoding,SourceAllocator>* re = rhs.GetElementsPointer();
752 new (&le[i]) GenericValue(re[i], allocator, copyConstStrings);
781 …explicit GenericValue(T b, RAPIDJSON_ENABLEIF((internal::IsSame<bool, T>))) RAPIDJSON_NOEXCEPT //…
783 explicit GenericValue(bool b) RAPIDJSON_NOEXCEPT
792 explicit GenericValue(int i) RAPIDJSON_NOEXCEPT : data_() {
798 explicit GenericValue(unsigned u) RAPIDJSON_NOEXCEPT : data_() {
804 explicit GenericValue(int64_t i64) RAPIDJSON_NOEXCEPT : data_() {
819 explicit GenericValue(uint64_t u64) RAPIDJSON_NOEXCEPT : data_() {
831 …explicit GenericValue(double d) RAPIDJSON_NOEXCEPT : data_() { data_.n.d = d; data_.f.flags = kNum…
834 …explicit GenericValue(float f) RAPIDJSON_NOEXCEPT : data_() { data_.n.d = static_cast<double>(f); …
837GenericValue(const Ch* s, SizeType length) RAPIDJSON_NOEXCEPT : data_() { SetStringRaw(StringRef(s…
840 explicit GenericValue(StringRefType s) RAPIDJSON_NOEXCEPT : data_() { SetStringRaw(s); }
843GenericValue(const Ch* s, SizeType length, Allocator& allocator) : data_() { SetStringRaw(StringRe…
846GenericValue(const Ch*s, Allocator& allocator) : data_() { SetStringRaw(StringRef(s), allocator); }
852GenericValue(const std::basic_string<Ch>& s, Allocator& allocator) : data_() { SetStringRaw(String…
861 GenericValue(Array a) RAPIDJSON_NOEXCEPT : data_(a.value_.data_) {
872 GenericValue(Object o) RAPIDJSON_NOEXCEPT : data_(o.value_.data_) {
880 ~GenericValue() {
888 GenericValue* e = GetElementsPointer();
889 for (GenericValue* v = e; v != e + data_.a.size; ++v)
890 v->~GenericValue();
921 GenericValue& operator=(GenericValue& rhs) RAPIDJSON_NOEXCEPT {
926 GenericValue temp;
928 this->~GenericValue();
936 GenericValue& operator=(GenericValue&& rhs) RAPIDJSON_NOEXCEPT {
946 GenericValue& operator=(StringRefType str) RAPIDJSON_NOEXCEPT {
947 GenericValue s(str);
964 RAPIDJSON_DISABLEIF_RETURN((internal::IsPointer<T>), (GenericValue&))
966 GenericValue v(value);
978GenericValue& CopyFrom(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator& allocator, b…
980 this->~GenericValue();
981 new (this) GenericValue(rhs, allocator, copyConstStrings);
990 GenericValue& Swap(GenericValue& other) RAPIDJSON_NOEXCEPT {
991 GenericValue temp;
1010 friend inline void swap(GenericValue& a, GenericValue& b) RAPIDJSON_NOEXCEPT { a.Swap(b); }
1014 GenericValue& Move() RAPIDJSON_NOEXCEPT { return *this; }
1025 bool operator==(const GenericValue<Encoding, SourceAllocator>& rhs) const {
1026 typedef GenericValue<Encoding, SourceAllocator> RhsType;
1067 bool operator==(const Ch* rhs) const { return *this == GenericValue(StringRef(rhs)); }
1073 …bool operator==(const std::basic_string<Ch>& rhs) const { return *this == GenericValue(StringRef(r…
1079 …IsGenericValue<T> >), (bool)) operator==(const T& rhs) const { return *this == GenericValue(rhs); }
1086 …bool operator!=(const GenericValue<Encoding, SourceAllocator>& rhs) const { return !(*this == rhs)…
1099 …(internal::IsGenericValue<T>), (bool)) operator==(const T& lhs, const GenericValue& rhs) { return …
1104 …(internal::IsGenericValue<T>), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return …
1169 GenericValue& SetNull() { this->~GenericValue(); new (this) GenericValue(); return *this; }
1179GenericValue& SetBool(bool b) { this->~GenericValue(); new (this) GenericValue(b); return *this; }
1188GenericValue& SetObject() { this->~GenericValue(); new (this) GenericValue(kObjectType); return *t…
1209 …xpr<internal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >),(GenericValue&)) operator[](T…
1210 GenericValue n(StringRef(name));
1214 …l::RemoveConst<T>::Type, Ch> >),(const GenericValue&)) operator[](T* name) const { return const_ca…
1226 GenericValue& operator[](const GenericValue<Encoding, SourceAllocator>& name) {
1237 alignas(GenericValue) thread_local static char buffer[sizeof(GenericValue)];
1238 return *new (buffer) GenericValue();
1242 __declspec(thread) static char buffer[sizeof(GenericValue)];
1243 return *new (buffer) GenericValue();
1247 __thread static GenericValue buffer;
1252 static GenericValue buffer;
1258 …const GenericValue& operator[](const GenericValue<Encoding, SourceAllocator>& name) const { return…
1262GenericValue& operator[](const std::basic_string<Ch>& name) { return (*this)[GenericValue(StringRe…
1263 …const GenericValue& operator[](const std::basic_string<Ch>& name) const { return (*this)[GenericVa…
1285 GenericValue& MemberReserve(SizeType newCapacity, Allocator &allocator) {
1323 …bool HasMember(const GenericValue<Encoding, SourceAllocator>& name) const { return FindMember(name…
1338 GenericValue n(StringRef(name));
1342 …ConstMemberIterator FindMember(const Ch* name) const { return const_cast<GenericValue&>(*this).Fin…
1358 MemberIterator FindMember(const GenericValue<Encoding, SourceAllocator>& name) {
1363 …stMemberIterator FindMember(const GenericValue<Encoding, SourceAllocator>& name) const { return co…
1373 …MemberIterator FindMember(const std::basic_string<Ch>& name) { return FindMember(GenericValue(Stri…
1374 …ndMember(const std::basic_string<Ch>& name) const { return FindMember(GenericValue(StringRef(name)…
1387 GenericValue& AddMember(GenericValue& name, GenericValue& value, Allocator& allocator) {
1403 GenericValue& AddMember(GenericValue& name, StringRefType value, Allocator& allocator) {
1404 GenericValue v(value);
1418GenericValue& AddMember(GenericValue& name, std::basic_string<Ch>& value, Allocator& allocator) {
1419 GenericValue v(value, allocator);
1442 …F_RETURN((internal::OrExpr<internal::IsPointer<T>, internal::IsGenericValue<T> >), (GenericValue&))
1443 AddMember(GenericValue& name, T value, Allocator& allocator) {
1444 GenericValue v(value);
1449 GenericValue& AddMember(GenericValue&& name, GenericValue&& value, Allocator& allocator) {
1452 GenericValue& AddMember(GenericValue&& name, GenericValue& value, Allocator& allocator) {
1455 GenericValue& AddMember(GenericValue& name, GenericValue&& value, Allocator& allocator) {
1458 GenericValue& AddMember(StringRefType name, GenericValue&& value, Allocator& allocator) {
1459 GenericValue n(name);
1475 GenericValue& AddMember(StringRefType name, GenericValue& value, Allocator& allocator) {
1476 GenericValue n(name);
1489 GenericValue& AddMember(StringRefType name, StringRefType value, Allocator& allocator) {
1490 GenericValue v(value);
1512 …F_RETURN((internal::OrExpr<internal::IsPointer<T>, internal::IsGenericValue<T> >), (GenericValue&))
1514 GenericValue n(name);
1536 GenericValue n(StringRef(name));
1541 …bool RemoveMember(const std::basic_string<Ch>& name) { return RemoveMember(GenericValue(StringRef(…
1545 bool RemoveMember(const GenericValue<Encoding, SourceAllocator>& name) {
1609 GenericValue n(StringRef(name));
1614 …bool EraseMember(const std::basic_string<Ch>& name) { return EraseMember(GenericValue(StringRef(na…
1618 bool EraseMember(const GenericValue<Encoding, SourceAllocator>& name) {
1640GenericValue& SetArray() { this->~GenericValue(); new (this) GenericValue(kArrayType); return *thi…
1657 GenericValue* e = GetElementsPointer();
1658 for (GenericValue* v = e; v != e + data_.a.size; ++v)
1659 v->~GenericValue();
1668 GenericValue& operator[](SizeType index) {
1673 …const GenericValue& operator[](SizeType index) const { return const_cast<GenericValue&>(*this)[ind…
1683 ConstValueIterator Begin() const { return const_cast<GenericValue&>(*this).Begin(); }
1686 ConstValueIterator End() const { return const_cast<GenericValue&>(*this).End(); }
1694 GenericValue& Reserve(SizeType newCapacity, Allocator &allocator) {
1697 …erpret_cast<GenericValue*>(allocator.Realloc(GetElementsPointer(), data_.a.capacity * sizeof(Gener…
1713 GenericValue& PushBack(GenericValue& value, Allocator& allocator) {
1722 GenericValue& PushBack(GenericValue&& value, Allocator& allocator) {
1736 GenericValue& PushBack(StringRefType value, Allocator& allocator) {
1758 …F_RETURN((internal::OrExpr<internal::IsPointer<T>, internal::IsGenericValue<T> >), (GenericValue&))
1760 GenericValue v(value);
1768 GenericValue& PopBack() {
1771 GetElementsPointer()[--data_.a.size].~GenericValue();
1803 itr->~GenericValue();
1804 …::memmove(static_cast<void*>(pos), last, static_cast<size_t>(End() - last) * sizeof(GenericValue));
1841GenericValue& SetInt(int i) { this->~GenericValue(); new (this) GenericValue(i); re…
1842GenericValue& SetUint(unsigned u) { this->~GenericValue(); new (this) GenericValue(u); re…
1843GenericValue& SetInt64(int64_t i64) { this->~GenericValue(); new (this) GenericValue(i64); re…
1844GenericValue& SetUint64(uint64_t u64) { this->~GenericValue(); new (this) GenericValue(u64); re…
1845GenericValue& SetDouble(double d) { this->~GenericValue(); new (this) GenericValue(d); re…
1846GenericValue& SetFloat(float f) { this->~GenericValue(); new (this) GenericValue(static_ca…
1868GenericValue& SetString(const Ch* s, SizeType length) { return SetString(StringRef(s, length)); }
1875GenericValue& SetString(StringRefType s) { this->~GenericValue(); SetStringRaw(s); return *this; }
1885GenericValue& SetString(const Ch* s, SizeType length, Allocator& allocator) { return SetString(Str…
1893GenericValue& SetString(const Ch* s, Allocator& allocator) { return SetString(StringRef(s), alloca…
1901GenericValue& SetString(StringRefType s, Allocator& allocator) { this->~GenericValue(); SetStringR…
1911GenericValue& SetString(const std::basic_string<Ch>& s, Allocator& allocator) { return SetString(S…
1988 template <typename, typename> friend class GenericValue;
2095 GenericValue* elements;
2116 …RAPIDJSON_FORCEINLINE GenericValue* GetElementsPointer() const { return RAPIDJSON_GETPOINTER(Gener…
2117 …RAPIDJSON_FORCEINLINE GenericValue* SetElementsPointer(GenericValue* elements) { return RAPIDJSON_…
2229 MemberIterator DoFindMember(const GenericValue<Encoding, SourceAllocator>& name) {
2282 MemberIterator DoFindMember(const GenericValue<Encoding, SourceAllocator>& name) {
2304 void DoAddMember(GenericValue& name, GenericValue& value, Allocator& allocator) {
2379 …void DoCopyMembers(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator, bool c…
2385 const typename GenericValue<Encoding,SourceAllocator>::Member* rm = rhs.GetMembersPointer();
2391 new (&lm[i].name) GenericValue(rm[i].name, allocator, copyConstStrings);
2392 new (&lm[i].value) GenericValue(rm[i].value, allocator, copyConstStrings);
2402 void SetArrayRaw(GenericValue* values, SizeType count, Allocator& allocator) {
2405GenericValue* e = static_cast<GenericValue*>(allocator.Malloc(count * sizeof(GenericValue)));
2407 std::memcpy(static_cast<void*>(e), values, count * sizeof(GenericValue));
2459 void RawAssign(GenericValue& rhs) RAPIDJSON_NOEXCEPT {
2466 bool StringEqual(const GenericValue<Encoding, SourceAllocator>& rhs) const {
2485 typedef GenericValue<UTF8<> > Value;
2499 class GenericDocument : public GenericValue<Encoding, Allocator> {
2502 typedef GenericValue<Encoding, Allocator> ValueType; //!< Value type of the document.
2514GenericValue<Encoding, Allocator>(type), allocator_(allocator), ownAllocator_(0), stack_(stackAll…
2816 template <typename, typename> friend class GenericValue; // for deep copying
2910 friend class GenericValue;
2966 friend class GenericValue;
2977 …template <typename SourceAllocator> ValueType& operator[](const GenericValue<EncodingType, SourceA…
2988 …template <typename SourceAllocator> bool HasMember(const GenericValue<EncodingType, SourceAllocato…
2990 …template <typename SourceAllocator> MemberIterator FindMember(const GenericValue<EncodingType, Sou…
3014 …template <typename SourceAllocator> bool RemoveMember(const GenericValue<EncodingType, SourceAlloc…
3022 …template <typename SourceAllocator> bool EraseMember(const GenericValue<EncodingType, SourceAlloca…