Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ab678787
Commit
ab678787
authored
Sep 06, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
java/Ref: API doc line breaks
parent
23556585
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
Ref.hxx
src/java/Ref.hxx
+14
-12
No files found.
src/java/Ref.hxx
View file @
ab678787
...
...
@@ -85,8 +85,8 @@ namespace Java {
public
:
/**
* Constructs an uninitialized object. The method
set() must be
* called before it is destructed.
* Constructs an uninitialized object. The method
*
set() must be
called before it is destructed.
*/
GlobalRef
()
=
default
;
...
...
@@ -107,8 +107,9 @@ namespace Java {
GlobalRef
&
operator
=
(
const
GlobalRef
&
other
)
=
delete
;
/**
* Sets the object, ignoring the previous value. This is only
* allowed once after the default constructor was used.
* Sets the object, ignoring the previous value. This
* is only allowed once after the default constructor
* was used.
*/
void
Set
(
JNIEnv
*
env
,
T
_value
)
noexcept
{
assert
(
_value
!=
nullptr
);
...
...
@@ -127,10 +128,10 @@ namespace Java {
/**
* Container for a global reference to a JNI object that gets
* initialised and deinitialised explicitly. Since there is
no
*
implicit initialisation in the default constructor, this is a
*
trivial C++ class. It should only be used for global variables
* that are implicitly initialised with zeroes.
* initialised and deinitialised explicitly. Since there is
*
no implicit initialisation in the default constructor, this
*
is a trivial C++ class. It should only be used for global
*
variables
that are implicitly initialised with zeroes.
*/
template
<
typename
T
>
class
TrivialRef
{
...
...
@@ -147,8 +148,8 @@ namespace Java {
}
/**
* Obtain a global reference on the specified object
and store it.
* This object must not be set already.
* Obtain a global reference on the specified object
*
and store it.
This object must not be set already.
*/
void
Set
(
JNIEnv
*
env
,
T
_value
)
noexcept
{
assert
(
value
==
nullptr
);
...
...
@@ -168,8 +169,9 @@ namespace Java {
}
/**
* Release the global reference and clear this object. It is
* allowed to call this method without ever calling Set().
* Release the global reference and clear this object.
* It is allowed to call this method without ever
* calling Set().
*/
void
ClearOptional
(
JNIEnv
*
env
)
noexcept
{
if
(
value
!=
nullptr
)
...
...
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