#include <DGtal/helpers/Parameters.h>
This class represents a set of (input) simple parameters, i.e. mapping names to values.
Definition at line 146 of file Parameters.h.
◆ Self
◆ Parameters() [1/4]
DGtal::Parameters::Parameters |
( |
| ) |
|
|
default |
◆ ~Parameters()
DGtal::Parameters::~Parameters |
( |
| ) |
|
|
default |
◆ Parameters() [2/4]
DGtal::Parameters::Parameters |
( |
const Self & | other | ) |
|
|
default |
Default copy constructor.
◆ Parameters() [3/4]
DGtal::Parameters::Parameters |
( |
Self && | other | ) |
|
|
default |
◆ Parameters() [4/4]
Constructor. Add parameter (name) or (name,pv)
- Parameters
-
[in] | name | the name of the parameter. |
[in] | pv | the value of the parameter (string,int,float,double). |
◆ count()
bool DGtal::Parameters::count |
( |
std::string | name | ) |
const |
- Parameters
-
[in] | name | any parameter name |
- Returns
- 'true' if and only if the parameter has been set or assigned.
◆ isValid()
bool DGtal::Parameters::isValid |
( |
| ) |
const |
Checks the validity/consistency of the object.
- Returns
- 'true' if the object is valid, 'false' otherwise.
◆ operator()() [1/2]
Self & DGtal::Parameters::operator() |
( |
const Self & | params | ) |
|
Add parameters params to this object.
- Parameters
-
[in] | params | a set of parameters |
◆ operator()() [2/2]
Add parameter (name) or (name,pv).
- Parameters
-
[in] | name | the name of the parameter. |
[in] | pv | the value of the parameter (string,int,float,double). |
◆ operator=()
Self & DGtal::Parameters::operator= |
( |
const Self & | other | ) |
|
|
default |
Default assignment operator.
◆ operator[]()
ParameterValue DGtal::Parameters::operator[] |
( |
std::string | name | ) |
const |
- Parameters
-
[in] | name | any parameter name |
- Returns
- the associated value (if it does not exist, return "UNSET PARAMETER").
◆ operator|()
Self DGtal::Parameters::operator| |
( |
const Self & | other | ) |
const |
Merge the two parameter sets and returns a new one.
- Parameters
-
[in] | other | a set of parameters |
◆ selfDisplay()
void DGtal::Parameters::selfDisplay |
( |
std::ostream & | out | ) |
const |
Writes/Displays the object on an output stream.
- Parameters
-
out | the output stream where the object is written. |
◆ myParameters
std::map< std::string, ParameterValue > DGtal::Parameters::myParameters |
|
protected |
The documentation for this struct was generated from the following file: