1#ifndef __JOSCPROB__JOSCPARAMETERSINTERFACE__
2#define __JOSCPROB__JOSCPARAMETERSINTERFACE__
45 public JClonable<JOscParametersInterface<T> >,
146 void set(
const std::string& name,
167 template<
class ...Args>
168 void set(
const std::string& name,
189 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
215 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend() && equal; ++i) {
219 equal = (parameter == parameters.
get(i->first));
234 return this->
equals(parameters);
246 return !this->
equals(parameters);
284 for (JProperties::iterator i = properties.begin(); i != properties.end(); ++i) {
289 if ((in >> is_defined >> value) && is_defined) {
311 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
370 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
390 const JProperties properties = parameters.getProperties();
392 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.
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.
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.