Lines Matching refs:allocator
742 …GenericValue(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator, bool copyCon…
745 DoCopyMembers(rhs, allocator, copyConstStrings);
749 …GenericValue* le = reinterpret_cast<GenericValue*>(allocator.Malloc(count * sizeof(GenericValue)));
752 new (&le[i]) GenericValue(re[i], allocator, copyConstStrings);
764 SetStringRaw(StringRef(rhs.GetString(), rhs.GetStringLength()), allocator);
843 …e(const Ch* s, SizeType length, Allocator& allocator) : data_() { SetStringRaw(StringRef(s, length…
846 …GenericValue(const Ch*s, Allocator& allocator) : data_() { SetStringRaw(StringRef(s), allocator); }
852 …lue(const std::basic_string<Ch>& s, Allocator& allocator) : data_() { SetStringRaw(StringRef(s), a…
978 …GenericValue& CopyFrom(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator& allocator, b…
981 new (this) GenericValue(rhs, allocator, copyConstStrings);
1285 GenericValue& MemberReserve(SizeType newCapacity, Allocator &allocator) {
1287 DoReserveMembers(newCapacity, allocator);
1387 GenericValue& AddMember(GenericValue& name, GenericValue& value, Allocator& allocator) {
1390 DoAddMember(name, value, allocator);
1403 GenericValue& AddMember(GenericValue& name, StringRefType value, Allocator& allocator) {
1405 return AddMember(name, v, allocator);
1418 … GenericValue& AddMember(GenericValue& name, std::basic_string<Ch>& value, Allocator& allocator) {
1419 GenericValue v(value, allocator);
1420 return AddMember(name, v, allocator);
1443 AddMember(GenericValue& name, T value, Allocator& allocator) {
1445 return AddMember(name, v, allocator);
1449 GenericValue& AddMember(GenericValue&& name, GenericValue&& value, Allocator& allocator) {
1450 return AddMember(name, value, allocator);
1452 GenericValue& AddMember(GenericValue&& name, GenericValue& value, Allocator& allocator) {
1453 return AddMember(name, value, allocator);
1455 GenericValue& AddMember(GenericValue& name, GenericValue&& value, Allocator& allocator) {
1456 return AddMember(name, value, allocator);
1458 GenericValue& AddMember(StringRefType name, GenericValue&& value, Allocator& allocator) {
1460 return AddMember(n, value, allocator);
1475 GenericValue& AddMember(StringRefType name, GenericValue& value, Allocator& allocator) {
1477 return AddMember(n, value, allocator);
1489 GenericValue& AddMember(StringRefType name, StringRefType value, Allocator& allocator) {
1491 return AddMember(name, v, allocator);
1513 AddMember(StringRefType name, T value, Allocator& allocator) {
1515 return AddMember(n, value, allocator);
1694 GenericValue& Reserve(SizeType newCapacity, Allocator &allocator) {
1697 …SetElementsPointer(reinterpret_cast<GenericValue*>(allocator.Realloc(GetElementsPointer(), data_.a…
1713 GenericValue& PushBack(GenericValue& value, Allocator& allocator) {
1716 …apacity == 0 ? kDefaultArrayCapacity : (data_.a.capacity + (data_.a.capacity + 1) / 2), allocator);
1722 GenericValue& PushBack(GenericValue&& value, Allocator& allocator) {
1723 return PushBack(value, allocator);
1736 GenericValue& PushBack(StringRefType value, Allocator& allocator) {
1737 return (*this).template PushBack<StringRefType>(value, allocator);
1759 PushBack(T value, Allocator& allocator) {
1761 return PushBack(v, allocator);
1885 …ring(const Ch* s, SizeType length, Allocator& allocator) { return SetString(StringRef(s, length), …
1893 …GenericValue& SetString(const Ch* s, Allocator& allocator) { return SetString(StringRef(s), alloca…
1901 …cValue& SetString(StringRefType s, Allocator& allocator) { this->~GenericValue(); SetStringRaw(s, …
1911 …String(const std::basic_string<Ch>& s, Allocator& allocator) { return SetString(StringRef(s), allo…
1936 … Set(const T& data, AllocatorType& allocator) { return internal::TypeHelper<ValueType, T>::Set(*th…
2191 Map* &DoReallocMap(Map** oldMap, SizeType newCapacity, Allocator& allocator) {
2192 Map **newMap = static_cast<Map**>(allocator.Malloc(GetMapLayoutSize(newCapacity)));
2195 *newMap = new (allocator.Malloc(sizeof(Map))) Map(MapLess(), allocator);
2213 RAPIDJSON_FORCEINLINE Member* DoAllocMembers(SizeType capacity, Allocator& allocator) {
2214 return GetMapMembers(DoReallocMap(0, capacity, allocator));
2217 void DoReserveMembers(SizeType newCapacity, Allocator& allocator) {
2222 *&newMap = DoReallocMap(oldMap, newCapacity, allocator);
2268 RAPIDJSON_FORCEINLINE Member* DoAllocMembers(SizeType capacity, Allocator& allocator) {
2269 return Malloc<Member>(allocator, capacity);
2272 void DoReserveMembers(SizeType newCapacity, Allocator& allocator) {
2275 … Member* newMembers = Realloc<Member>(allocator, GetMembersPointer(), o.capacity, newCapacity);
2304 void DoAddMember(GenericValue& name, GenericValue& value, Allocator& allocator) {
2307 …serveMembers(o.capacity ? (o.capacity + (o.capacity + 1) / 2) : kDefaultObjectCapacity, allocator);
2379 …void DoCopyMembers(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator, bool c…
2384 Member* lm = DoAllocMembers(count, allocator);
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) {
2405 … GenericValue* e = static_cast<GenericValue*>(allocator.Malloc(count * sizeof(GenericValue)));
2415 void SetObjectRaw(Member* members, SizeType count, Allocator& allocator) {
2418 Member* m = DoAllocMembers(count, allocator);
2442 void SetStringRaw(StringRefType s, Allocator& allocator) {
2451 str = static_cast<Ch *>(allocator.Malloc((s.length + 1) * sizeof(Ch)));
2513 …explicit GenericDocument(Type type, Allocator* allocator = 0, size_t stackCapacity = kDefaultStack…
2514 …GenericValue<Encoding, Allocator>(type), allocator_(allocator), ownAllocator_(0), stack_(stackAll…
2526 …GenericDocument(Allocator* allocator = 0, size_t stackCapacity = kDefaultStackCapacity, StackAlloc…
2527 … allocator_(allocator), ownAllocator_(0), stack_(stackAllocator, stackCapacity), parseResult_()
2924 …ay Reserve(SizeType newCapacity, AllocatorType &allocator) const { value_.Reserve(newCapacity, all…
2925 …ricArray PushBack(ValueType& value, AllocatorType& allocator) const { value_.PushBack(value, alloc…
2927 …icArray PushBack(ValueType&& value, AllocatorType& allocator) const { value_.PushBack(value, alloc…
2929 …Array PushBack(StringRefType value, AllocatorType& allocator) const { value_.PushBack(value, alloc…
2930 …t GenericArray&)) PushBack(T value, AllocatorType& allocator) const { value_.PushBack(value, alloc…
2983 …Reserve(SizeType newCapacity, AllocatorType &allocator) const { value_.MemberReserve(newCapacity, …
2994 …ueType& name, ValueType& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
2995 …ype& name, StringRefType value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
2997 …, std::basic_string<Ch>& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
2999 …ember(ValueType& name, T value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3001 …Type&& name, ValueType&& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3002 …eType&& name, ValueType& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3003 …eType& name, ValueType&& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3004 …efType name, ValueType&& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3006 …RefType name, ValueType& value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3007 …Type name, StringRefType value, AllocatorType& allocator) const { value_.AddMember(name, value, al…
3008 …er(StringRefType name, T value, AllocatorType& allocator) const { value_.AddMember(name, value, al…