Mantid
|
MDAxisValidator is a class that checks the number of MD axes match the number of workspace dimensions, refactoring out the common validation code from several MD algorithms into a common class. More...
#include <Kernel/MDAxisValidator.h>
Public Member Functions | |
MDAxisValidator (std::vector< int > axes, const size_t nDimensions, const bool checkIfEmpty) | |
Constructor. More... | |
virtual std::map< std::string, std::string > | validate () const |
Checks the MD axes given against the given number of dimensions of the input workspace. More... | |
virtual | ~MDAxisValidator ()=default |
Private Attributes | |
std::vector< int > | m_axes |
bool | m_emptyCheck |
size_t | m_wsDimensions |
MDAxisValidator is a class that checks the number of MD axes match the number of workspace dimensions, refactoring out the common validation code from several MD algorithms into a common class.
Definition at line 29 of file MDAxisValidator.h.
Mantid::Kernel::MDAxisValidator::MDAxisValidator | ( | std::vector< int > | axes, |
const size_t | nDimensions, | ||
const bool | checkIfEmpty | ||
) |
Constructor.
axes | Vector containing MD axes to validate |
nDimensions | Number of dimensions of input workspace for algorithm |
checkIfEmpty | Whether validator will check if the axes vector is empty |
Definition at line 19 of file MDAxisValidator.cpp.
|
virtualdefault |
|
virtual |
Checks the MD axes given against the given number of dimensions of the input workspace.
Definition at line 29 of file MDAxisValidator.cpp.
References m_axes, m_emptyCheck, and m_wsDimensions.
Referenced by Mantid::MDAlgorithms::TransposeMD::exec(), and Mantid::MDAlgorithms::SetMDFrame::validateInputs().
|
private |
Definition at line 36 of file MDAxisValidator.h.
Referenced by validate().
|
private |
Definition at line 38 of file MDAxisValidator.h.
Referenced by validate().
|
private |
Definition at line 37 of file MDAxisValidator.h.
Referenced by validate().