Searched refs:allocator (Results 1 - 10 of 10) sorted by relevance

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
H A Dvaluetest.cpp77 Value::AllocatorType allocator; local
80 x.Reserve(4u, allocator);
81 x.PushBack(1, allocator).PushBack(2, allocator).PushBack(3, allocator).PushBack(4, allocator);
160 Value::AllocatorType allocator; local
162 x.AddMember("hello", "world", allocator)
163 .AddMember("t", Value(true).Move(), allocator)
164 .AddMember("f", Value(false).Move(), allocator)
619 MemoryPoolAllocator<> allocator; local
718 Value::AllocatorType allocator; local
768 y.PushBack(Value(true), allocator); local
911 Value::AllocatorType allocator; local
983 o.AddMember(Value("true"), Value(true), allocator); local
1192 Value::AllocatorType allocator; local
1210 MemoryPoolAllocator<> allocator; local
1231 MemoryPoolAllocator<> allocator; local
1273 rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); local
1287 V::AllocatorType allocator; local
[all...]
H A Ddocumenttest.cpp223 // reset document, including allocator
355 Allocator allocator; local
357 Document a(&allocator);
362 EXPECT_EQ(&a.GetAllocator(), &allocator);
370 EXPECT_EQ(&b.GetAllocator(), &allocator);
383 EXPECT_EQ(&c.GetAllocator(), &allocator);
448 Allocator allocator; local
450 Document a(&allocator);
455 EXPECT_EQ(&a.GetAllocator(), &allocator);
464 EXPECT_EQ(&b.GetAllocator(), &allocator);
[all...]
/packages/apps/Test/connectivity/sl4n/rapidjson/example/tutorial/
H A Dtutorial.cpp103 Document::AllocatorType& allocator = document.GetAllocator(); local
105 a.PushBack(i, allocator); // May look a bit strange, allocator is needed for potentially realloc. We normally uses the document's.
108 a.PushBack("Lua", allocator).PushBack("Mio", allocator);
121 // This version of SetString() needs an allocator, which means it will allocate a new buffer and copy the the string into the buffer.
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
H A Ddocument.h398 // select candidates according to nested encoding and allocator types
410 //! Represents a JSON value. Use Value for UTF8 encoding and default allocator.
415 Use the Value if UTF8 and default allocator
482 //! Explicit copy constructor (with allocator)
484 \tparam SourceAllocator allocator of \c rhs
486 \param allocator Allocator for allocating copied elements and buffers. Commonly use GenericDocument::GetAllocator().
490 GenericValue(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator & allocator);
558 GenericValue(const Ch* s, SizeType length, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s, length), allocator); } local
561 GenericValue(const Ch*s, Allocator& allocator) local
567 GenericValue(const std::basic_string<Ch>& s, Allocator& allocator) : data_(), flags_() { SetStringRaw(StringRef(s), allocator); } local
656 CopyFrom(const GenericValue<Encoding, SourceAllocator>& rhs, Allocator& allocator) argument
993 AddMember(GenericValue& name, GenericValue& value, Allocator& allocator) argument
1024 AddMember(GenericValue& name, StringRefType value, Allocator& allocator) argument
1039 AddMember(GenericValue& name, std::basic_string<Ch>& value, Allocator& allocator) argument
1064 AddMember(GenericValue& name, T value, Allocator& allocator) argument
1070 AddMember(GenericValue&& name, GenericValue&& value, Allocator& allocator) argument
1073 AddMember(GenericValue&& name, GenericValue& value, Allocator& allocator) argument
1076 AddMember(GenericValue& name, GenericValue&& value, Allocator& allocator) argument
1079 AddMember(StringRefType name, GenericValue&& value, Allocator& allocator) argument
1096 AddMember(StringRefType name, GenericValue& value, Allocator& allocator) argument
1110 AddMember(StringRefType name, StringRefType value, Allocator& allocator) argument
1134 AddMember(StringRefType name, T value, Allocator& allocator) argument
1347 PushBack(GenericValue& value, Allocator& allocator) argument
1356 PushBack(GenericValue&& value, Allocator& allocator) argument
1370 PushBack(StringRefType value, Allocator& allocator) argument
1393 PushBack(T value, Allocator& allocator) argument
1505 GenericValue& SetString(const Ch* s, SizeType length, Allocator& allocator) { this->~GenericValue(); SetStringRaw(StringRef(s, length), allocator); return *this; } local
1513 SetString(const Ch* s, Allocator& allocator) argument
1523 SetString(const std::basic_string<Ch>& s, Allocator& allocator) argument
1683 SetArrayRaw(GenericValue* values, SizeType count, Allocator& allocator) argument
1695 SetObjectRaw(Member* members, SizeType count, Allocator& allocator) argument
1714 SetStringRaw(StringRefType s, Allocator& allocator) argument
2084 GenericValue(const GenericValue<Encoding,SourceAllocator>& rhs, Allocator& allocator) argument
2099 SetStringRaw(StringRef(rhs.GetString(), rhs.GetStringLength()), allocator); local
[all...]
H A Dmemorybuffer.h40 GenericMemoryBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}
H A Dpointer.h41 //! Represents a JSON Pointer. Use Pointer for UTF8 encoding and default allocator.
65 \tparam Allocator The allocator type for allocating memory for internal representation.
104 \param allocator User supplied allocator for this pointer. If no allocator is provided, it creates a self-owned one.
106 explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOffset_(), parseErrorCode_(kPointerParseErrorNone) {
114 \param allocator User supplied allocator for this pointer. If no allocator i
387 Create(ValueType& root, typename ValueType::AllocatorType& allocator, bool* alreadyExist = 0) const argument
[all...]
H A Dstringbuffer.h39 explicit GenericStringBuffer(Allocator* allocator = 0, size_t capacity = kDefaultCapacity) : stack_(allocator, capacity) {}
H A Dprettywriter.h32 \tparam StackAllocator Type of allocator for allocating memory of stack.
42 \param allocator User supplied allocator. If it is null, it will create a private one.
45 PrettyWriter(OutputStream& os, StackAllocator* allocator = 0, size_t levelDepth = Base::kDefaultLevelDepth) :
46 Base(os, allocator, levelDepth), indentChar_(' '), indentCharCount_(4) {}
H A Dwriter.h50 \tparam StackAllocator Type of allocator for allocating memory of stack.
60 \param stackAllocator User supplied allocator. If it is null, it will create a private one.
68 Writer(StackAllocator* allocator = 0, size_t levelDepth = kDefaultLevelDepth) :
69 os_(0), level_stack_(allocator, levelDepth * sizeof(Level)), hasRoot_(false) {}
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
H A Dstack.h35 Stack(Allocator* allocator, size_t stackCapacity) : allocator_(allocator), ownAllocator_(0), stack_(0), stackTop_(0), stackEnd_(0), initialCapacity_(stackCapacity) { argument

Completed in 333 milliseconds