631 Commits

Author SHA1 Message Date
Philipp A. Hartmann
aadcdb0252 performance.md: reference new benchmark suite 2014-10-28 19:36:15 +01:00
Philipp A. Hartmann
20bab938b7 Drop thirdparty JSON implementations/performance tests
With the implementation of the more elaborate benchmarking
suite at https://github.com/miloyip/nativejson-benchmark,
the thirdparty performance tests are superseded.
2014-10-28 19:35:36 +01:00
Philipp A. Hartmann
288db9c790 drop unneeded doc/diagram/.gitignore 2014-10-28 15:11:28 +01:00
Philipp A. Hartmann
c36318ca1f .gitignore: ignore Doxygen database 2014-10-28 15:11:28 +01:00
Milo Yip
d8271f7984 Merge pull request #179 from spl/remove-member-docs
Clarify documentation on RemoveMember, EraseMember ordering
2014-10-27 22:16:57 +08:00
Sean Leather
716907b9fb Clarify documentation on RemoveMember, EraseMember ordering 2014-10-27 15:04:26 +02:00
Milo Yip
8fc0e57926 Merge pull request #177 from spl/use-deprecated
Use 'deprecated' instead of 'depreciated'
2014-10-27 14:53:29 +08:00
Milo Yip
1950efd676 Merge pull request #173 from ecorm/issue123movesupport
Issue123movesupport
2014-10-27 14:52:28 +08:00
Sean Leather
32525a5d5e Use 'deprecated' instead of 'depreciated' 2014-10-26 14:51:35 +02:00
ecorm
b0328d2d3b GenericDocument move-assignment now uses std::foward to move-assign the base class. 2014-10-24 15:25:27 -03:00
ecorm
20a9cd2810 Merge branch 'master' into issue123movesupport 2014-10-24 14:09:30 -03:00
ecorm
fd12dcb3db Added MemoryPoolAllocator to GenericDocument moveunit tests. Added comment in GenericDocument move assignment operator explaining why the static_cast is needed to move the base class. 2014-10-24 14:05:32 -03:00
Milo Yip
c1a57c37ff Merge pull request #175 from pah/cleanup/index-operator
GenericValue: improve documentation for operator[]
2014-10-24 21:23:49 +08:00
Philipp A. Hartmann
6bd5ecb08c GenericValue: improve documentation for operator[] 2014-10-24 14:45:48 +02:00
Milo Yip
838d5130d3 Merge pull request #174 from pah/cleanup/index-operator
GenericValue: improve operator[] disambiguation
2014-10-24 20:08:04 +08:00
Philipp A. Hartmann
e8445e0bbc GenericValue: improve operator[] disambiguation
In the original disambiguation fix for `GenericValue::operator[]` (#170),
the documentation has been missing, which led to quite badly rendered
Doxygen pages.

During a cleanup, I've realized that a much simpler disambiguation is
possible:

````cpp
  GenericValue& operator[](SizeType idx); // array
  template <typename T>
  GenericValue& operator[](T* name);      // object
````

This approach works, as non-template functions are preferred over
template functions.

In order to improve the error messages, the pointer type is restricted
to `(const) Ch`.

Update `tutorial.md` to drop the ambiguity warning.
2014-10-24 13:55:26 +02:00
ecorm
cb33f910c3 Merge branch 'master' into issue123movesupport 2014-10-24 03:11:34 -03:00
ecorm
02f3b00ee6 Implemented C++11 move semantics for GenericDocument 2014-10-24 02:51:17 -03:00
Milo Yip
5ccc663479 Merge pull request #172 from lichray/patch-1
Demonstrate CRTP in SAX example
2014-10-24 10:21:36 +08:00
Milo Yip
a6b444dec4 Merge pull request #170 from lichray/disambi_indexing
Disambiguate GenericValue's [0] and ["string"]
2014-10-24 10:21:03 +08:00
Zhihao Yuan
c6a985c503 Demonstrate CRTP in SAX example
Closes: https://github.com/miloyip/rapidjson/issues/142
2014-10-23 21:55:25 -04:00
Zhihao Yuan
7303d92990 Disambiguate GenericValue's [0] and ["string"] 2014-10-23 21:50:39 -04:00
Zhihao Yuan
0d90bcc709 No implicit conversion from Type to GenericValue 2014-10-23 21:50:39 -04:00
Milo Yip
11f20c4faf Merge pull request #171 from pah/fixes/travis-valgrind-bug
.travis.yml: avoid Valgrind bug with '-march=native'
2014-10-24 09:41:59 +08:00
Philipp A. Hartmann
48a9854e33 .travis.yml: avoid Valgrind bug with '-march=native' 2014-10-23 19:11:01 +02:00
Milo Yip
89fa782240 Merge pull request #166 from spl/fix-memorystream-peek
Fix MemoryStream::Peek() and add test for fix
2014-10-23 12:46:33 +08:00
Milo Yip
a58559f1cb Merge pull request #163 from spl/march-native
Use -march=native for platform-specific optimizations
2014-10-23 12:46:21 +08:00
Milo Yip
1c07239b61 Merge pull request #165 from spl/perf-test-encoded-and-autoutf-input-streams
Add perf tests for EncodedInputStream and AutoUTFInputStream
2014-10-23 12:45:55 +08:00
Milo Yip
02e5c3cf47 Merge pull request #164 from spl/gmake-sse
Use predefined macros to enable SSE with gmake
2014-10-23 12:44:11 +08:00
Sean Leather
0e715872c0 Fix MemoryStream::Peek() and add test for fix
MemoryStream::Peek() did not return '\0' if src_ == end_, but Peek() == '\0' is
used in parsing in the GenericReader. Without this change, parsing with
MemoryStream as the InputStream could result in a segmentation fault.
2014-10-23 00:31:19 +02:00
Sean Leather
8b9f12ef4f Add perf tests for EncodedInputStream and AutoUTFInputStream 2014-10-17 23:25:20 +02:00
Sean Leather
4ded1f44f4 Use predefined macros to enable SSE with gmake 2014-10-17 22:44:07 +02:00
Sean Leather
2e0ce28ed2 Use -march=native for platform-specific optimizations 2014-10-17 22:38:53 +02:00
Milo Yip
98f87905d9 Update tutorial.md
Correct `PushBack()` example
2014-09-26 11:32:25 +08:00
Milo Yip
a2354cd745 Merge pull request #154 from gadomski/doc-typo
Fix small typo in the docs
2014-09-24 18:41:32 +08:00
Pete Gadomski
c7efabc0cf Fix small typo in the docs 2014-09-24 06:25:58 -04:00
Milo Yip
42de1ce260 Merge pull request #150 from TyRoXx/conversion_warnings
turn implicit integer conversions into static_casts to avoid warnings
2014-09-18 09:29:36 +08:00
TyRoXx
b9608f2cf2 turn implicit integer conversions into static_casts to avoid -Wconversion warnings 2014-09-17 20:30:19 +02:00
Milo Yip
ca9b2d188f Merge pull request #148 from pah/fixes/solaris
Alternative compilation fix for Solaris
2014-09-16 18:41:26 +08:00
Philipp A. Hartmann
5117f9e555 explicitly qualify C(++) library functions
Some compilers do not export the standard C library functions
to the global namespace, in case the C++ header variants are
included (<cstdlib>, <cstring>).

RapidJSON currently uses:
 * malloc, realloc, free
 * memcpy, memmove, memset, memcpy

Add an explicit namespace qualification to avoid lookup problems.
2014-09-16 10:42:14 +02:00
Philipp A. Hartmann
c0bde81b03 rapidjson.h: explicitly import std::size_t to rapidjson namespace 2014-09-16 10:37:37 +02:00
Philipp A. Hartmann
e052c727b2 GenericValue: drop forced packing pragma 2014-09-16 10:19:40 +02:00
Milo Yip
2475e9524b Merge pull request #140 from kojik1010/mempool_null_check
make MemoryPoolAllocator's Malloc work after Clear if a buffer was not supplied by the user
2014-09-11 16:52:36 +08:00
Koji Kobayashi
a69dffbc53 make MemoryPoolAllocator's Malloc work after Clear if a buffer was not supplied by the user 2014-09-10 20:35:23 -07:00
Milo Yip
a5ffc5be1c Merge pull request #139 from pah/fixes/stack-growth-factor
Stack: adjust growth factor
2014-09-09 19:18:30 +08: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
7cca533971 Update readme.md 2014-09-09 14:05:57 +08:00
miloyip
d0f98d2da1 Fix a bug in dtoa on gcc
Discovered in https://github.com/miloyip/dtoa-benchmark/issues/1 with
assertion fail.
2014-09-07 15:20:09 +08:00
Milo Yip
c4a1566a4e Merge pull request #136 from Kosta-Github/Kosta/doc_key_method
fix `SAX` documentation to also mention the new `Key()` method in the `Handler` concept
2014-09-05 17:08:54 +08:00
Kosta
8e624133bb fix SAX documentation to also mention the new Key() method in the Handler concept 2014-09-05 10:33:20 +02:00