Philipp A. Hartmann
5835750259
GenericMemberIterator: fixup some formatting and documentation
...
No functional changes.
2014-07-03 15:18:01 +02:00
Philipp A. Hartmann
78c75de22c
tutorial.cpp: update for FindMember change
...
* use MemberIterator instead of plain pointer
* check against MemberEnd() instead of NULL
2014-07-03 15:04:04 +02:00
Philipp A. Hartmann
86c47a6a8b
document.h: move inclusion of template meta functions
...
In order to activate the suppression of "-Weffc++" warnings in the
template meta function classes (non-virtual destructor), move the
inclusion of the meta-function header `internal/meta.h` after the
suppression pragma.
2014-07-03 14:56:43 +02:00
Philipp A. Hartmann
43737ef310
GenericValue::FindMember: return MemberEnd, if member doesn't exist
2014-07-03 14:33:56 +02:00
Philipp A. Hartmann
17a8804cf3
document.h: add GenericMemberIterator
...
Add dedicated class-based member iterator to prepare the switch to a
(safe) API change to return MemberEnd() from FindMember().
Pointer-based iterator can be kept by defining
RAPIDJSON_NOMEMBERITERATORCLASS. This may be useful for platforms without
a working <iterator> header.
2014-07-03 14:29:57 +02:00
Philipp A. Hartmann
05179e2891
internal/meta.h: add some template meta functions
...
* Add/RemoveConst
* IsSame, IsConst, IsMoreConst
* Enable/DisableIf (including helper macro)
2014-07-03 14:24:58 +02:00
miloyip
f3fa423de0
Updates "Create/Modify Values" section
2014-07-03 19:20:33 +08:00
Milo Yip
0bce2dedd2
Merge pull request #42 from pah/cleanup/streamcopy
...
GenericReader: simplify local stream copy optimization
2014-07-03 13:14:16 +08:00
Philipp A. Hartmann
7890a1b17a
StreamLocalCopy: move to reader.h
...
Eventually move to internal header `internal/streamcopy.h`?
Based on 088e8173.
2014-07-02 21:28:41 +02:00
Philipp A. Hartmann
f6903f79d4
GenericReader: simplify local stream copy optimization
...
rapidjson.h:
* StreamLocalCopy: add default argument to copy optimization selector
based on StreamTraits of Stream parameter
* drop operator->, operator*
* make Stream (reference) member public
* drop empty destructor
reader.h:
* add local references, initialized from "copy"
(reverts algorithmic bodies back to plain 's.xx()')
2014-07-02 20:51:10 +02:00
Milo Yip
ebbfaf1c13
Fixes premake4 script for VS
2014-07-03 01:59:13 +08:00
Milo Yip
104c3954bd
Revert "Fixes premake4 for VS"
...
This reverts commit 63757f6405e327b100cc51e35fdf8cf32b5cc286.
2014-07-03 01:51:08 +08:00
Milo Yip
63757f6405
Fixes premake4 for VS
2014-07-03 01:50:12 +08:00
Milo Yip
feb5dde7e5
Merge pull request #40 from miloyip/warning
...
Fix/Suppress all -Wall -Wextra -Weffc++ warnings on gcc 4.6.x - 4.8.x
2014-07-03 01:48:15 +08:00
Milo Yip
49b1a12799
Fixes two other warning about unused fread() return value
2014-07-03 01:24:52 +08:00
Milo Yip
0815f0560a
Fixes a warning about unused fread() return value
2014-07-03 01:17:58 +08:00
Milo Yip
e4188c8040
Fixes a warning in release.
2014-07-03 01:11:52 +08:00
Milo Yip
1e99f0b537
Merge remote-tracking branch 'origin/master' into warning
2014-07-03 01:00:01 +08:00
Milo Yip
5a186104f4
Fixes warnings
2014-07-03 00:59:35 +08:00
Milo Yip
0c81ed7724
Merge pull request #39 from miloyip/LocalCopyOptimization
...
Fixes local copy optimization
2014-07-03 00:57:05 +08:00
Milo Yip
2a9c7a9ffa
Makes FileReadStream not using local copy optimization
2014-07-03 00:25:45 +08:00
Milo Yip
9aec8d6ad4
Fixes local copy optimization
...
The previous optimization #32 has problem that restoration requires
assignment operator.
Change the backup/restore process using a template wrapper class to
select code path.
2014-07-02 23:49:47 +08:00
miloyip
f3ac1de589
Added creatie/modify value section to tutorial
2014-07-02 19:13:14 +08:00
Milo Yip
553a251b5a
Update tutorial.md
2014-07-02 00:41:49 +08:00
Milo Yip
dfcf4f26dd
Update tutorial.md
2014-07-02 00:35:42 +08:00
Milo Yip
a74c5da9da
Update tutorial.md
2014-07-02 00:31:30 +08:00
Milo Yip
c1035cb970
Update tutorial.md
2014-07-02 00:29:33 +08:00
Milo Yip
cbc2c46bb8
Update tutorial.md
...
Fixes table
2014-07-02 00:27:27 +08:00
Milo Yip
bc2daea2f6
Add other query sections in tutorial
2014-07-02 00:20:36 +08:00
miloyip
84a4ff85c5
tutorial draft
2014-07-01 19:17:44 +08:00
Milo Yip
5852c42bb9
Update features.md
2014-07-01 12:56:40 +08:00
Milo Yip
563e3d9d69
Merge pull request #37 from miloyip/TravisSetting2
...
Adds Valgrind memcheck process to Tavis CI
2014-07-01 09:39:21 +08:00
Milo Yip
93e1488c7b
Run valgrind in second pass to get exit code correctly
2014-06-30 23:54:47 +08:00
Milo Yip
e3330d15c0
Install valgrind
2014-06-30 23:46:34 +08:00
Milo Yip
a2abe212a1
test Valgrind
2014-06-30 23:32:48 +08:00
Milo Yip
1acfc21684
Merge pull request #34 from miloyip/SmallFloatingPoint
...
Fixes parsing small floating point values underflow
2014-06-30 21:46:34 +08:00
Milo Yip
4843b790c0
Remove debug code
2014-06-30 21:28:57 +08:00
Milo Yip
10924e389c
Fixes parsing small floating point values underflow
...
https://code.google.com/p/rapidjson/issues/detail?id=75
The modification is slightly different from dlbattle123 to improve
speed.
2014-06-30 21:26:43 +08:00
Milo Yip
2e156ccacd
Merge pull request #33 from miloyip/MoveStructMember
...
Fixes IBM XL C/C++ for AIX issue
2014-06-30 19:13:03 +08:00
miloyip
a9356c09c0
Fixes IBM XL C/C++ for AIX issue
...
Move rapidjson::GenericValue::Member to rapidjson::GenericMember
https://code.google.com/p/rapidjson/issues/detail?id=64
2014-06-30 19:07:58 +08:00
Milo Yip
a2240e26ab
Fixes premake.sh
...
Add interpreter
Change line endings
Fixes https://code.google.com/p/rapidjson/issues/detail?id=54
2014-06-30 18:26:46 +08:00
Milo Yip
ba5e27a007
Update readme.md
2014-06-30 14:06:40 +08:00
Milo Yip
8e6da6bdff
Update readme.md
...
rapidjson -> RapidJSON
2014-06-30 14:02:30 +08:00
Milo Yip
9b8424a6b0
Update performance.md
2014-06-30 14:00:10 +08:00
Milo Yip
c2971cf953
Update performance.md
2014-06-30 13:58:58 +08:00
Milo Yip
177ba6e7f8
Create performance.md
2014-06-30 13:58:11 +08:00
miloyip
a1ce06a187
Fixes vs2010 warning about INT64_C()
2014-06-30 10:18:14 +08:00
Milo Yip
ba50fe7dc8
Merge pull request #27 from miloyip/issue23errorcode
...
Issue23errorcode
2014-06-30 09:58:40 +08:00
miloyip
389fe87cd8
Merge branch 'master' into issue23errorcode
...
Conflicts:
example/condense/condense.cpp
include/rapidjson/reader.h
test/unittest/readertest.cpp
2014-06-30 09:44:24 +08:00
Milo Yip
d8ed60956b
Merge pull request #32 from miloyip/issue30streamcopy
...
Make stream local copy optimization as trait option per stream type
2014-06-29 21:58:35 +08:00