#include <ParameterSpace.h>
Definition at line 18 of file ParameterSpace.h.
◆ const_iterator
◆ data_t
◆ iterator
◆ ParameterSpace() [1/2]
TCS::ParameterSpace::ParameterSpace |
( |
const std::string & |
algName | ) |
|
|
inline |
◆ ParameterSpace() [2/2]
TCS::ParameterSpace::ParameterSpace |
( |
| ) |
|
|
inline |
◆ addParameter() [1/3]
Definition at line 29 of file ParameterSpace.cxx.
31 TCS_EXCEPTION(
"ParameterSpace: parameter '" <<
p.name() <<
"|" <<
p.selection() <<
32 "' exists already in parameter space of '" <<
algName() <<
"' and can't be added");
◆ addParameter() [2/3]
◆ addParameter() [3/3]
◆ algName()
const std::string& TCS::ParameterSpace::algName |
( |
| ) |
const |
|
inline |
◆ begin() [1/2]
◆ begin() [2/2]
◆ clear()
void TCS::ParameterSpace::clear |
( |
| ) |
|
|
inline |
◆ contains()
bool ParameterSpace::contains |
( |
const std::string & |
parameterName, |
|
|
unsigned int |
selection |
|
) |
| const |
◆ end() [1/2]
◆ end() [2/2]
◆ index()
unsigned TCS::ParameterSpace::index |
( |
| ) |
const |
|
inline |
◆ isInitialized()
bool TCS::ParameterSpace::isInitialized |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
data_t& TCS::ParameterSpace::operator() |
( |
| ) |
|
|
inline |
◆ operator()() [2/2]
const data_t& TCS::ParameterSpace::operator() |
( |
| ) |
const |
|
inline |
◆ parameter() [1/2]
Definition at line 101 of file ParameterSpace.cxx.
103 if( pa.isExtended() )
continue;
104 if( pa.name() == parameterName )
108 TCS_EXCEPTION(
"Single parameter " << parameterName <<
" not found for algorithm " <<
algName());
◆ parameter() [2/2]
const Parameter & ParameterSpace::parameter |
( |
const std::string & |
parameterName, |
|
|
unsigned int |
selection |
|
) |
| const |
Definition at line 114 of file ParameterSpace.cxx.
116 if( ! pa.isExtended() )
continue;
117 if( (pa.name() == parameterName) && (pa.selection() ==
selection) )
◆ parameters()
◆ setIndex()
void TCS::ParameterSpace::setIndex |
( |
unsigned int |
index | ) |
|
|
inline |
◆ setParameter() [1/3]
Definition at line 49 of file ParameterSpace.cxx.
51 bool foundParameter =
false;
57 ( !pa.isExtended() && pa.name()==
p.name() ) ||
58 ( pa.isExtended() && pa.name()==
p.name() && pa.selection()==
p.selection() );
60 if(! foundParameter)
continue;
62 if( pa.isExtended() ) {
63 pa.setValue(
p.value());
64 pa.setPosition(
p.position());
65 pa.setSelection(
p.selection());
66 pa.setIsExtended(
true);
68 pa.setValue(
p.value());
69 pa.setIsExtended(
false);
71 pa.setIsDefault(
false);
75 if( ! foundParameter ) {
76 cout <<
"Parameter '" <<
p.name() <<
"' not found for algorithm " <<
algName()
77 <<
" and can't be set. Available parameters are" << endl;
80 cout <<
" " << pa.name() <<
" " << (pa.isExtended()?
"array":
"single") << endl;
82 TCS_EXCEPTION(
"Parameter '" <<
p.name() <<
"' not found for algorithm " <<
algName() <<
" and can't be set." );
◆ setParameter() [2/3]
◆ setParameter() [3/3]
◆ m_algName
std::string TCS::ParameterSpace::m_algName |
|
private |
◆ m_index
unsigned int TCS::ParameterSpace::m_index |
|
private |
◆ m_parameters
data_t TCS::ParameterSpace::m_parameters |
|
private |
The documentation for this class was generated from the following files: