Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
bd4e0e4f
Commit
bd4e0e4f
authored
Jan 05, 2015
by
Raphael Isemann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:nlohmann/json
parents
0f371b40
a9669a41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
json.cc
src/json.cc
+0
-0
json.h
src/json.h
+23
-23
No files found.
src/json.cc
View file @
bd4e0e4f
This diff is collapsed.
Click to expand it.
src/json.h
View file @
bd4e0e4f
...
@@ -112,17 +112,17 @@ class json
...
@@ -112,17 +112,17 @@ class json
public
:
public
:
/// create an object according to given type
/// create an object according to given type
json
(
const
value_type
)
noexcept
;
json
(
const
value_type
);
/// create a null object
/// create a null object
json
()
=
default
;
json
()
=
default
;
/// create a null object
/// create a null object
json
(
std
::
nullptr_t
)
noexcept
;
json
(
std
::
nullptr_t
)
noexcept
;
/// create a string object from a C++ string
/// create a string object from a C++ string
json
(
const
std
::
string
&
)
noexcept
;
json
(
const
std
::
string
&
);
/// create a string object from a C++ string (move)
/// create a string object from a C++ string (move)
json
(
std
::
string
&&
)
noexcept
;
json
(
std
::
string
&&
);
/// create a string object from a C string
/// create a string object from a C string
json
(
const
char
*
)
noexcept
;
json
(
const
char
*
);
/// create a Boolean object
/// create a Boolean object
json
(
const
bool
)
noexcept
;
json
(
const
bool
)
noexcept
;
/// create a number object
/// create a number object
...
@@ -130,18 +130,18 @@ class json
...
@@ -130,18 +130,18 @@ class json
/// create a number object
/// create a number object
json
(
const
double
)
noexcept
;
json
(
const
double
)
noexcept
;
/// create an array
/// create an array
json
(
const
array_t
&
)
noexcept
;
json
(
const
array_t
&
);
/// create an array (move)
/// create an array (move)
json
(
array_t
&&
)
noexcept
;
json
(
array_t
&&
);
/// create an object
/// create an object
json
(
const
object_t
&
)
noexcept
;
json
(
const
object_t
&
);
/// create an object (move)
/// create an object (move)
json
(
object_t
&&
)
noexcept
;
json
(
object_t
&&
);
/// create from an initializer list (to an array or object)
/// create from an initializer list (to an array or object)
json
(
list_init_t
)
noexcept
;
json
(
list_init_t
);
/// copy constructor
/// copy constructor
json
(
const
json
&
)
noexcept
;
json
(
const
json
&
);
/// move constructor
/// move constructor
json
(
json
&&
)
noexcept
;
json
(
json
&&
)
noexcept
;
...
@@ -158,7 +158,7 @@ class json
...
@@ -158,7 +158,7 @@ class json
private
:
private
:
/// return the type as string
/// return the type as string
const
std
::
string
_type
name
()
const
noexcept
;
const
std
::
string
type_
name
()
const
noexcept
;
public
:
public
:
/// explicit value conversion
/// explicit value conversion
...
@@ -312,14 +312,14 @@ class json
...
@@ -312,14 +312,14 @@ class json
private
:
private
:
/// the type of this object
/// the type of this object
value_type
_type
=
value_type
::
null
;
value_type
type_
=
value_type
::
null
;
/// the payload
/// the payload
value
_value
{};
value
value_
{};
private
:
private
:
/// mutex to guard payload
/// mutex to guard payload
static
std
::
mutex
_token
;
static
std
::
mutex
token_
;
public
:
public
:
/// an iterator
/// an iterator
...
@@ -347,11 +347,11 @@ class json
...
@@ -347,11 +347,11 @@ class json
private
:
private
:
/// a JSON value
/// a JSON value
json
*
_object
=
nullptr
;
json
*
object_
=
nullptr
;
/// an iterator for JSON arrays
/// an iterator for JSON arrays
array_t
::
iterator
*
_vi
=
nullptr
;
array_t
::
iterator
*
vi_
=
nullptr
;
/// an iterator for JSON objects
/// an iterator for JSON objects
object_t
::
iterator
*
_oi
=
nullptr
;
object_t
::
iterator
*
oi_
=
nullptr
;
};
};
/// a const iterator
/// a const iterator
...
@@ -380,11 +380,11 @@ class json
...
@@ -380,11 +380,11 @@ class json
private
:
private
:
/// a JSON value
/// a JSON value
const
json
*
_object
=
nullptr
;
const
json
*
object_
=
nullptr
;
/// an iterator for JSON arrays
/// an iterator for JSON arrays
array_t
::
const_iterator
*
_vi
=
nullptr
;
array_t
::
const_iterator
*
vi_
=
nullptr
;
/// an iterator for JSON objects
/// an iterator for JSON objects
object_t
::
const_iterator
*
_oi
=
nullptr
;
object_t
::
const_iterator
*
oi_
=
nullptr
;
};
};
private
:
private
:
...
@@ -427,11 +427,11 @@ class json
...
@@ -427,11 +427,11 @@ class json
private
:
private
:
/// a buffer of the input
/// a buffer of the input
std
::
string
_buffer
{};
std
::
string
buffer_
{};
/// the current character
/// the current character
char
_current
{};
char
current_
{};
/// the position inside the input buffer
/// the position inside the input buffer
size_t
_pos
=
0
;
size_t
pos_
=
0
;
};
};
};
};
...
...
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