BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Class for representing a uint value, its attributes and its accessors.
For a complete description please refer to the documentation of DoubleProperty. Everything said there also applies to this class, of course not for double values but for uint values.
Definition at line 39 of file UIntProperty.h.
Public Member Functions | |
UIntDescriptor | descriptor () const |
uint | get () const |
void | init (const QString &label, const QString &tooltip, uint value, const variant< QString, Unit > &unit, const QString &persistentTag) |
void | init (const QString &label, const QString &tooltip, uint value, const variant< QString, Unit > &unit, const RealLimits &limits, const QString &persistentTag) |
operator uint () const | |
operator UIntDescriptor () const | |
QString | persistentTag () const |
void | set (uint d) |
void | setUid (const QString &uid) |
QString | uid () const |
Private Attributes | |
UIntDescriptor | m_descriptor |
QString | m_persistentTag |
QString | m_uid |
uint | m_value = 0 |
|
inline |
|
inline |
Definition at line 51 of file UIntProperty.h.
References m_value.
Referenced by Serialize::rwProperty().
void UIntProperty::init | ( | const QString & | label, |
const QString & | tooltip, | ||
uint | value, | ||
const variant< QString, Unit > & | unit, | ||
const QString & | persistentTag | ||
) |
Definition at line 20 of file UIntProperty.cpp.
References persistentTag().
Referenced by InterferenceFinite2DLatticeItem::InterferenceFinite2DLatticeItem(), and LayerItem::LayerItem().
void UIntProperty::init | ( | const QString & | label, |
const QString & | tooltip, | ||
uint | value, | ||
const variant< QString, Unit > & | unit, | ||
const RealLimits & | limits, | ||
const QString & | persistentTag | ||
) |
Definition at line 26 of file UIntProperty.cpp.
References UIntDescriptor::get, UIntDescriptor::label, UIntDescriptor::limits, m_descriptor, m_persistentTag, m_uid, m_value, UIntDescriptor::path, persistentTag(), UIntDescriptor::set, UIntDescriptor::tooltip, and UIntDescriptor::unit.
|
inline |
|
inline |
|
inline |
Definition at line 53 of file UIntProperty.h.
References m_persistentTag.
Referenced by init(), and Serialize::rwProperty().
|
inline |
Definition at line 50 of file UIntProperty.h.
References m_value.
Referenced by Serialize::rwProperty(), InterferenceFinite2DLatticeItem::setDomainSize1(), and InterferenceFinite2DLatticeItem::setDomainSize2().
|
inline |
Definition at line 55 of file UIntProperty.h.
Referenced by Serialize::rwProperty().
|
inline |
Definition at line 54 of file UIntProperty.h.
References m_uid.
Referenced by Serialize::rwProperty(), and setUid().
|
private |
Definition at line 62 of file UIntProperty.h.
Referenced by descriptor(), init(), and operator UIntDescriptor().
|
private |
Definition at line 59 of file UIntProperty.h.
Referenced by init(), and persistentTag().
|
private |
Definition at line 60 of file UIntProperty.h.
|
private |
Definition at line 58 of file UIntProperty.h.
Referenced by get(), init(), operator uint(), and set().