1#ifndef __JOSCPROB__JOSCPARAMETERSINTERFACE__
2#define __JOSCPROB__JOSCPARAMETERSINTERFACE__
47 public JClonable<JOscParametersInterface<T> >,
148 void set(
const std::string& name,
169 template<
class ...Args>
170 void set(
const std::string& name,
191 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
211 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend() && valid; ++i) {
237 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend() && equal; ++i) {
241 equal = (parameter == parameters.
get(i->first));
256 return this->
equals(parameters);
268 return !this->
equals(parameters);
306 for (JProperties::iterator i = properties.begin(); i != properties.end(); ++i) {
311 if ((in >> is_defined >> value) && is_defined) {
333 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
358 if (getFileStatus(is.str().c_str())) {
396 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
416 const JProperties properties = parameters.getProperties();
418 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
Utility class to parse parameter values.
Utility class to parse parameter values.
const T & getValue(const std::string &key) const
Get value.
Interface for binary input.
Forward declaration of binary output.
Interface for binary output.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
JClass< T >::argument_type argument_type
const value_type getValue() const
Get value of parameter.
const bool isDefined() const
Get status of parameter.
JClass< T >::value_type value_type
Wrapper class around STL stringstream class to facilitate optional loading of data from file.
void load()
Load data from file with name corresponding to current contents.
Interface class for sets of oscillation parameters.
JReader & read(JReader &in) override
Binary stream input of oscillation parameters.
JOscParameter_t::JParameter_t JParameter_t
static void setEquationParameters(const JEquationParameters &equation)
Set equation parameters.
friend std::ostream & operator<<(std::ostream &out, const JOscParametersInterface_t ¶meters)
Stream output of oscillation parameters.
JParameter_t::value_type value_type
~JOscParametersInterface()
Virtual destructor.
JWriter & write(JWriter &out) const override
Binary stream output of oscillation parameters.
virtual JProperties getProperties(const JEquationParameters &equation=JOscParametersInterface_t::getEquationParameters())=0
Get properties of this class.
void set(const std::string &name, const value_type &value, const Args &...args)
Set value for given list of oscillation parameters.
virtual JProperties getProperties(const JEquationParameters &equation=JOscParametersInterface_t::getEquationParameters()) const =0
Get properties of this class.
friend std::istream & operator>>(std::istream &in, JOscParametersInterface_t ¶meters)
Stream input of oscillation parameters.
const JOscParameter_t & get(const std::string &name) const
Get oscillation parameter.
JOscParameter_t & get(const std::string &name)
Get oscillation parameter.
bool equals(const JOscParametersInterface< value_type > ¶meters) const
Check whether these oscillation parameters are equal to given oscillation parameters.
JOscParametersInterface< T > JOscParametersInterface_t
static JEquationParameters & getEquationParameters()
Get equation parameters.
bool operator!=(const JOscParametersInterface< value_type > ¶meters)
Not equal operator.
JOscParametersInterface_t & getParameters()
Get oscillation parameters.
JOscParameter< T > JOscParameter_t
JOscParametersInterface()
Default constructor.
void set(const std::string &name, const value_type &value)
Set value for a given oscillation parameter.
bool operator==(const JOscParametersInterface< value_type > ¶meters)
Equal operator.
void set(const JOscParametersInterface< value_type > ¶meters)
Set oscillation parameters.
bool is_valid() const
Check validity of oscillation parameters.
JParameter_t::argument_type argument_type
size_t getSize(const JOscParameter< JGrid< double > > &grid)
Get size of given oscillation parameter grid.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template class for object cloning.
Abstract base class for oscillation parameter.
void setValue(const value_type &value)
Set parameter.
virtual bool is_valid() const =0
Check validity of oscillation parameter.