Rodion Malinovsky
8604ba0f1c
Add asserts to prevent UB
2015-09-16 14:53:12 +03:00
Philipp A. Hartmann
0ebe16e169
add and use simplified "internal::Swap"
...
This avoids the dependency on the <algorithm> header, as suggested by
@miloyip in #376 .
2015-07-10 17:06:52 +02:00
Philipp A. Hartmann
dd901f498b
add GenericDocument<>::Swap
...
See #368 .
2015-07-04 01:57:24 +02:00
miloyip
dba6d6f1b5
Include rapidjson.h in error/error.h and internal/*.h
...
Fixes #321
2015-04-28 10:09:37 +08:00
Milo Yip
d1959ba6e3
Change copyright owner and related changes.
2015-04-03 12:57:16 +08:00
Philipp A. Hartmann
549dcb755d
*.h: move to namespace macros
2014-11-06 20:52:49 +01:00
Philipp A. Hartmann
e8f5d9f8ef
MemoryPoolAllocator, Stack: lazily allocate Allocators
...
In order to make the constructors more efficient, especially
in the context of C++11 move semantics, the (dynamic) allocations
in MemoryPoolAllocator and Stack should be performed lazily.
Move the allocations to the first use of the allocator in both
classes.
2014-10-30 18:40:58 +01:00
Philipp A. Hartmann
d0c283254b
Stack<>: add _ suffix to member ownAllocator_
...
For consistency, all member variables should follow the same pattern.
2014-10-30 18:21:27 +01:00
Philipp A. Hartmann
c557b230a6
Add customization macros for global new/delete
...
As mentioned in #181 , some environments may require adaptations to
the internal calls to the global `new`/`delete` operators, like
adding explicit `NULL` checks to `delete.
This patch adds two new macros
* RAPIDJSON_NEW(x)
* RAPIDJSON_DELETE(x)
to allow user-defined expressions in these cases.
This fixes #181 in an alternative manner.
2014-10-30 11:20:46 +01:00
ecorm
02f3b00ee6
Implemented C++11 move semantics for GenericDocument
2014-10-24 02:51:17 -03:00
Philipp A. Hartmann
296c7db140
Stack: adjust growth factor
...
The growth factor for the `internal::Stack` helper has not been updated
together with the growth factors used in GenericValue (#130 ).
2014-09-09 10:49:40 +02:00
Milo Yip
4a2ddf8075
Add Stack::ShrinkToFit() and some refactoring.
...
Lazy allocation. (so Document not for parsing don't need to allocate
stack).
Remove redundant stackCapacity member variable.
2014-08-17 18:29:37 +08:00
Milo Yip
0dbcc1cf2e
Add license and change indents from tab to space.
2014-08-11 22:26:45 +08:00
Milo Yip
01126defd2
Make Stack::Push() force inline in normal path
2014-07-26 20:28:35 +08:00
Milo Yip
5a186104f4
Fixes warnings
2014-07-03 00:59:35 +08:00
Milo Yip
609381fc2e
Fixed some clang -Weverything warnings.
2014-06-25 23:14:32 +08:00
Milo Yip
f930d9e2e5
Revert "Remove some clang -Weverything warnings."
...
This reverts commit e4ffa48a7563e892047c27f0a50fdeb6f71e6b8b.
2014-06-25 16:07:44 +08:00
Milo Yip
e4ffa48a75
Remove some clang -Weverything warnings.
2014-06-25 16:06:00 +08:00
miloyip@gmail.com
08d25ad177
Added Flush() to concept stream. Add this new member function to all streams.
...
Writer and PrettyWriter automatically calls Flush() at the end of JSON text.
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@27 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-22 05:10:46 +00:00
miloyip@gmail.com
8f8e905306
Initial version (0.1)
...
git-svn-id: https://rapidjson.googlecode.com/svn/trunk@2 c5894555-1306-4e8d-425f-1f6f381ee07c
2011-11-18 17:01:23 +00:00