Lines Matching refs:rhs
127 GenericMember(GenericMember&& rhs) RAPIDJSON_NOEXCEPT in GenericMember() argument
128 : name(std::move(rhs.name)), in GenericMember()
129 value(std::move(rhs.value)) in GenericMember()
134 GenericMember& operator=(GenericMember&& rhs) RAPIDJSON_NOEXCEPT {
135 return *this = static_cast<GenericMember&>(rhs);
142 GenericMember& operator=(GenericMember& rhs) RAPIDJSON_NOEXCEPT {
143 if (RAPIDJSON_LIKELY(this != &rhs)) {
144 name = rhs.name;
145 value = rhs.value;
158 GenericMember(const GenericMember& rhs);
414 GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} in GenericStringRef()
435 GenericStringRef& operator=(const GenericStringRef& rhs) /* = delete */;
694 GenericValue(GenericValue&& rhs) RAPIDJSON_NOEXCEPT : data_(rhs.data_) {
695 rhs.data_.f.flags = kNullFlag; // give up contents
701 GenericValue(const GenericValue& rhs);
706 GenericValue(GenericDocument<Encoding,Allocator,StackAllocator>&& rhs);
710 GenericValue& operator=(GenericDocument<Encoding,Allocator,StackAllocator>&& rhs);
742 …GenericValue(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator, bool copyCon…
743 switch (rhs.GetType()) {
745 DoCopyMembers(rhs, allocator, copyConstStrings);
748 SizeType count = rhs.data_.a.size;
750 const GenericValue<Encoding,SourceAllocator>* re = rhs.GetElementsPointer();
759 if (rhs.data_.f.flags == kConstStringFlag && !copyConstStrings) {
760 data_.f.flags = rhs.data_.f.flags;
761 data_ = *reinterpret_cast<const Data*>(&rhs.data_);
764 SetStringRaw(StringRef(rhs.GetString(), rhs.GetStringLength()), allocator);
767 data_.f.flags = rhs.data_.f.flags;
768 data_ = *reinterpret_cast<const Data*>(&rhs.data_);
921 GenericValue& operator=(GenericValue& rhs) RAPIDJSON_NOEXCEPT {
922 if (RAPIDJSON_LIKELY(this != &rhs)) {
927 temp.RawAssign(rhs);
936 GenericValue& operator=(GenericValue&& rhs) RAPIDJSON_NOEXCEPT {
937 return *this = rhs.Move();
978 …GenericValue& CopyFrom(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator& allocator, b…
979 RAPIDJSON_ASSERT(static_cast<void*>(this) != static_cast<void const*>(&rhs));
981 new (this) GenericValue(rhs, allocator, copyConstStrings);
1025 bool operator==(const GenericValue<Encoding, SourceAllocator>& rhs) const {
1027 if (GetType() != rhs.GetType())
1032 if (data_.o.size != rhs.data_.o.size)
1035 … typename RhsType::ConstMemberIterator rhsMemberItr = rhs.FindMember(lhsMemberItr->name);
1036 if (rhsMemberItr == rhs.MemberEnd() || lhsMemberItr->value != rhsMemberItr->value)
1042 if (data_.a.size != rhs.data_.a.size)
1045 if ((*this)[i] != rhs[i])
1050 return StringEqual(rhs);
1053 if (IsDouble() || rhs.IsDouble()) {
1055 double b = rhs.GetDouble(); // Ditto
1059 return data_.n.u64 == rhs.data_.n.u64;
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 …al::IsGenericValue<T> >), (bool)) operator==(const T& rhs) const { return *this == GenericValue(rh…
1086 …ol operator!=(const GenericValue<Encoding, SourceAllocator>& rhs) const { return !(*this == rhs); }
1089 bool operator!=(const Ch* rhs) const { return !(*this == rhs); }
1094 …N((internal::IsGenericValue<T>), (bool)) operator!=(const T& rhs) const { return !(*this == rhs); }
1099 …sGenericValue<T>), (bool)) operator==(const T& lhs, const GenericValue& rhs) { return rhs == lhs; }
1104 …nericValue<T>), (bool)) operator!=(const T& lhs, const GenericValue& rhs) { return !(rhs == lhs); }
2181 RAPIDJSON_FORCEINLINE MapIterator DropMapIterator(MapIterator& rhs) {
2183 MapIterator ret = std::move(rhs);
2185 MapIterator ret = rhs;
2187 rhs.~MapIterator();
2379 …void DoCopyMembers(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator, bool c…
2380 RAPIDJSON_ASSERT(rhs.GetType() == kObjectType);
2383 SizeType count = rhs.data_.o.size;
2385 const typename GenericValue<Encoding,SourceAllocator>::Member* rm = rhs.GetMembersPointer();
2459 void RawAssign(GenericValue& rhs) RAPIDJSON_NOEXCEPT {
2460 data_ = rhs.data_;
2462 rhs.data_.f.flags = kNullFlag;
2466 bool StringEqual(const GenericValue<Encoding, SourceAllocator>& rhs) const {
2468 RAPIDJSON_ASSERT(rhs.IsString());
2471 const SizeType len2 = rhs.GetStringLength();
2475 const Ch* const str2 = rhs.GetString();
2535 GenericDocument(GenericDocument&& rhs) RAPIDJSON_NOEXCEPT
2536 … : ValueType(std::forward<ValueType>(rhs)), // explicit cast to avoid prohibited move from Document
2537 allocator_(rhs.allocator_),
2538 ownAllocator_(rhs.ownAllocator_),
2539 stack_(std::move(rhs.stack_)),
2540 parseResult_(rhs.parseResult_)
2542 rhs.allocator_ = 0;
2543 rhs.ownAllocator_ = 0;
2544 rhs.parseResult_ = ParseResult();
2561 GenericDocument& operator=(GenericDocument&& rhs) RAPIDJSON_NOEXCEPT
2565 ValueType::operator=(std::forward<ValueType>(rhs));
2570 allocator_ = rhs.allocator_;
2571 ownAllocator_ = rhs.ownAllocator_;
2572 stack_ = std::move(rhs.stack_);
2573 parseResult_ = rhs.parseResult_;
2575 rhs.allocator_ = 0;
2576 rhs.ownAllocator_ = 0;
2577 rhs.parseResult_ = ParseResult();
2589 GenericDocument& Swap(GenericDocument& rhs) RAPIDJSON_NOEXCEPT {
2590 ValueType::Swap(rhs);
2591 stack_.Swap(rhs.stack_);
2592 internal::Swap(allocator_, rhs.allocator_);
2593 internal::Swap(ownAllocator_, rhs.ownAllocator_);
2594 internal::Swap(parseResult_, rhs.parseResult_);
2912 GenericArray(const GenericArray& rhs) : value_(rhs.value_) {}
2913 GenericArray& operator=(const GenericArray& rhs) { value_ = rhs.value_; return *this; }
2968 GenericObject(const GenericObject& rhs) : value_(rhs.value_) {}
2969 GenericObject& operator=(const GenericObject& rhs) { value_ = rhs.value_; return *this; }