CepGen 1.2.5
Central exclusive processes event generator
|
A collection of valid values for a given parameter. More...
#include <CepGen/Core/ParametersDescription.h>
Public Member Functions | |
ParameterValues () | |
ParameterValues & | append (const ParameterValues &) |
Merge two collections of allowed values. | |
bool | allAllowed () const |
Are all values allowed? | |
bool | empty () const |
Check if a parameter has a limited set of allowed values. | |
std::map< std::string, std::string > | allowed () const |
Helper list of allowed values (all types) for a parameter. | |
bool | validate (int) const |
Check if an integer value is allowed for a parameter. | |
bool | validate (const std::string &) const |
Check if a string value is allowed for a parameter. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const ParameterValues &) |
Short printout of allowed parameter values. | |
Definition at line 94 of file ParametersDescription.h.
ParameterValues | ( | ) |
Definition at line 96 of file ParametersDescription.h.
bool allAllowed | ( | ) | const |
Definition at line 102 of file ParametersDescription.h.
std::map< std::string, std::string > allowed | ( | ) | const |
Definition at line 313 of file ParametersDescription.cpp.
ParametersDescription::ParameterValues & append | ( | const ParameterValues & | oth | ) |
Definition at line 306 of file ParametersDescription.cpp.
bool empty | ( | ) | const |
Definition at line 304 of file ParametersDescription.cpp.
bool validate | ( | const std::string & | val | ) | const |
Definition at line 326 of file ParametersDescription.cpp.
bool validate | ( | int | val | ) | const |
Definition at line 320 of file ParametersDescription.cpp.
|
friend |
Definition at line 332 of file ParametersDescription.cpp.