cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.3
A generic central exclusive processes event generator
Loading...
Searching...
No Matches
ParametersDescription::ParameterValues Class Reference

A collection of valid values for a given parameter. More...

#include <CepGen/Core/ParametersDescription.h>

Public Member Functions

 ParameterValues ()
 
ParameterValuesappend (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.
 

Detailed Description

Definition at line 94 of file ParametersDescription.h.

Constructor & Destructor Documentation

◆ ParameterValues()

Definition at line 96 of file ParametersDescription.h.

Member Function Documentation

◆ allAllowed()

bool allAllowed ( ) const

Definition at line 102 of file ParametersDescription.h.

◆ allowed()

std::map< std::string, std::string > allowed ( ) const

Definition at line 313 of file ParametersDescription.cpp.

◆ append()

Definition at line 306 of file ParametersDescription.cpp.

◆ empty()

bool empty ( ) const

Definition at line 304 of file ParametersDescription.cpp.

◆ validate() [1/2]

bool validate ( const std::string &  val) const

Definition at line 326 of file ParametersDescription.cpp.

◆ validate() [2/2]

bool validate ( int  val) const

Definition at line 320 of file ParametersDescription.cpp.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const ParameterValues vals 
)
friend

Definition at line 332 of file ParametersDescription.cpp.