Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
58357502
Commit
58357502
authored
Jul 03, 2014
by
Philipp A. Hartmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GenericMemberIterator: fixup some formatting and documentation
No functional changes.
parent
78c75de2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
document.h
include/rapidjson/document.h
+8
-9
No files found.
include/rapidjson/document.h
View file @
58357502
...
...
@@ -40,9 +40,9 @@ struct GenericMember {
#ifndef RAPIDJSON_NOMEMBERITERATORCLASS
//! (Const) member iterator for a JSON object value
//! (Const
ant
) member iterator for a JSON object value
/*!
\tparam Const Is this a const iterator?
\tparam Const Is this a const
ant
iterator?
\tparam Encoding Encoding of the value. (Even non-string values need to have the same encoding in a document)
\tparam Allocator Allocator type for allocating memory of object, array and string.
...
...
@@ -74,9 +74,9 @@ class GenericMemberIterator
public
:
//! Iterator type itself
typedef
GenericMemberIterator
Type
;
//! Const iterator type
//! Const
ant
iterator type
typedef
GenericMemberIterator
<
true
,
Encoding
,
Allocator
>
ConstType
;
//! Non-const iterator type
//! Non-const
ant
iterator type
typedef
GenericMemberIterator
<
false
,
Encoding
,
Allocator
>
NonConstType
;
//! Pointer to (const) GenericMember
...
...
@@ -97,8 +97,8 @@ public:
\param it (Non-const) iterator to copy from
Allows the creation of an iterator from another GenericMemberIterator
that is "less const". Especially, creating a non-const
iterator from
a cons
t iterator are disabled:
that is "less const". Especially, creating a non-const
ant iterator
from a constan
t iterator are disabled:
\li const -> non-const (not ok)
\li const -> const (ok)
\li non-const -> const (ok)
...
...
@@ -108,8 +108,7 @@ public:
constructor effectively defines a regular copy-constructor.
Otherwise, the copy constructor is implicitly defined.
*/
GenericMemberIterator
(
const
NonConstType
&
it
)
:
ptr_
(
it
.
ptr_
)
{}
GenericMemberIterator
(
const
NonConstType
&
it
)
:
ptr_
(
it
.
ptr_
)
{}
//! @name stepping
//@{
...
...
@@ -149,7 +148,7 @@ public:
DifferenceType
operator
-
(
Type
that
)
const
{
return
ptr_
-
that
.
ptr_
;
}
private
:
//!
<
Internal constructor from plain pointer
//! Internal constructor from plain pointer
explicit
GenericMemberIterator
(
Pointer
p
)
:
ptr_
(
p
)
{}
Pointer
ptr_
;
//!< raw pointer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment