Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
8baf2486
There was an error fetching the commit references. Please try again later.
Commit
8baf2486
authored
6 years ago
by
Nina Džugasová
Committed by
Tomáš Oberhuber
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Modified the ParameterContainer documentation.
parent
95eeae92
No related branches found
No related tags found
1 merge request
!15
Nina
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Config/ParameterContainer.h
+11
-0
11 additions, 0 deletions
src/TNL/Config/ParameterContainer.h
with
11 additions
and
0 deletions
src/TNL/Config/ParameterContainer.h
+
11
−
0
View file @
8baf2486
...
@@ -82,6 +82,17 @@ class ParameterContainer
...
@@ -82,6 +82,17 @@ class ParameterContainer
bool
setParameter
(
const
String
&
name
,
bool
setParameter
(
const
String
&
name
,
const
String
&
value
);
const
String
&
value
);
/**
* \brief Checks whether the parameter \e name is given the \e value.
*
* Returns \e true if the parameter \e name is given the \e value.
* If the parameter does not have any value or has different value then the given
* \e value the method returns \e false and shows message when \e verbose is \e true.
*
* @param name Name of parameter.
* @param value Value of type T we want to check whether is assigned to the parameter.
* @param verbose Boolean value defining whether to show error message (when true) or not (when false).
*/
template
<
class
T
>
bool
getParameter
(
const
String
&
name
,
template
<
class
T
>
bool
getParameter
(
const
String
&
name
,
T
&
value
,
T
&
value
,
bool
verbose
=
true
)
const
bool
verbose
=
true
)
const
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment