20 : m_axes(
std::move(axes)), m_wsDimensions(nDimensions), m_emptyCheck(checkIfEmpty) {}
30 std::map<std::string, std::string> invalidProperties;
37 invalidProperties.insert(std::make_pair(
"Axes",
"No index was specified."));
43 invalidProperties.emplace(
"Axes",
"More axes specified than dimensions available in the input");
49 auto it = std::max_element(
m_axes.begin(),
m_axes.end());
50 auto largest =
static_cast<size_t>(*it);
52 invalidProperties.insert(std::make_pair(
"Axes",
"One of the axis indexes specified indexes a "
53 "dimension outside the real dimension range"));
57 return invalidProperties;
MDAxisValidator(std::vector< int > axes, const size_t nDimensions, const bool checkIfEmpty)
Constructor.
std::vector< int > m_axes
virtual std::map< std::string, std::string > validate() const
Checks the MD axes given against the given number of dimensions of the input workspace.