15 #ifndef BORNAGAIN_FIT_TOOLS_ATTRIBUTES_H
16 #define BORNAGAIN_FIT_TOOLS_ATTRIBUTES_H
31 void setFixed(
bool is_fixed) { m_is_fixed = is_fixed; }
32 bool isFixed()
const {
return m_is_fixed; }
33 bool isFree()
const {
return !isFixed(); }
35 friend std::ostream& operator<<(std::ostream& ostr,
const Attributes& m)
41 bool operator==(
const Attributes& other)
const {
return isFixed() == other.isFixed(); }
42 bool operator!=(
const Attributes& other)
const {
return !(*
this == other); }
45 Attributes(
bool is_fixed) : m_is_fixed(is_fixed) {}
49 void print(std::ostream& ostr)
const;
Attributes for a fit parameter.
void print(std::ostream &ostr) const
parameter is fixed
static Attributes fixed()
Creates a fixed value object.