BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Carries information about loaded data.
Definition at line 26 of file ImportDataInfo.h.
Public Member Functions | |
ImportDataInfo (Datafield &&data, Coords units) | |
ImportDataInfo (ImportDataInfo &&other) | |
ImportDataInfo (std::unique_ptr< Datafield > data, const QString &units) | |
ImportDataInfo (std::unique_ptr< Datafield > data, Coords units) | |
~ImportDataInfo () | |
QString | axisLabel (size_t axis_index) const |
std::unique_ptr< Datafield > | clonedData () const & |
size_t | dataRank () const |
Returns number of dimensions. More... | |
std::unique_ptr< Datafield > | intensityData () && |
operator bool () const | |
True if the contained data is not nullptr (no info about empty data) More... | |
QString | unitsLabel () const |
Private Member Functions | |
void | checkValidity () |
Private Attributes | |
const Coords | m_coords |
std::unique_ptr< Datafield > | m_data |
ImportDataInfo::ImportDataInfo | ( | std::unique_ptr< Datafield > | data, |
Coords | units | ||
) |
Definition at line 47 of file ImportDataInfo.cpp.
References checkValidity().
ImportDataInfo::ImportDataInfo | ( | Datafield && | data, |
Coords | units | ||
) |
Definition at line 61 of file ImportDataInfo.cpp.
ImportDataInfo::ImportDataInfo | ( | std::unique_ptr< Datafield > | data, |
const QString & | units | ||
) |
Definition at line 54 of file ImportDataInfo.cpp.
References checkValidity().
ImportDataInfo::ImportDataInfo | ( | ImportDataInfo && | other | ) |
Definition at line 41 of file ImportDataInfo.cpp.
References other.
|
default |
QString ImportDataInfo::axisLabel | ( | size_t | axis_index | ) | const |
Definition at line 97 of file ImportDataInfo.cpp.
References Error, m_coords, and m_data.
Referenced by IntensityDataItem::reset(), and SpecularDataItem::reset().
|
private |
Definition at line 113 of file ImportDataInfo.cpp.
References Error, m_coords, and m_data.
Referenced by ImportDataInfo().
std::unique_ptr< Datafield > ImportDataInfo::clonedData | ( | ) | const & |
Definition at line 73 of file ImportDataInfo.cpp.
References m_data.
Referenced by RealDataItem::setImportData().
size_t ImportDataInfo::dataRank | ( | ) | const |
Returns number of dimensions.
Definition at line 85 of file ImportDataInfo.cpp.
References m_data.
Referenced by RealDataItem::setImportData().
std::unique_ptr< Datafield > ImportDataInfo::intensityData | ( | ) | && |
Definition at line 80 of file ImportDataInfo.cpp.
ImportDataInfo::operator bool | ( | ) | const |
True if the contained data is not nullptr (no info about empty data)
Definition at line 68 of file ImportDataInfo.cpp.
QString ImportDataInfo::unitsLabel | ( | ) | const |
Definition at line 92 of file ImportDataInfo.cpp.
References m_coords, and GUI::Util::CoordName::nameFromCoord().
Referenced by IntensityDataItem::reset(), SpecularDataItem::reset(), and RealDataItem::setImportData().
|
private |
Definition at line 51 of file ImportDataInfo.h.
Referenced by axisLabel(), checkValidity(), and unitsLabel().
|
private |
Definition at line 50 of file ImportDataInfo.h.
Referenced by axisLabel(), checkValidity(), clonedData(), and dataRank().