16std::vector<WorkspaceIndex> workspaceIndexVectorFromString(
const std::string &listString) {
17 auto const intVec = MantidQt::MantidWidgets::vectorFromString<std::size_t>(listString);
18 std::vector<WorkspaceIndex> output;
19 std::transform(intVec.cbegin(), intVec.cend(), std::back_inserter(output),
20 [](
const auto i) { return WorkspaceIndex(i); });
29 : m_vec(workspaceIndexVectorFromString(str)), m_isContinuous(true) {
34 if (maximum < minimum) {
35 std::swap(minimum, maximum);
38 std::iota(
m_vec.begin(),
m_vec.end(), minimum);
45 : m_vec(
std::move(vec.m_vec)), m_isContinuous(vec.m_isContinuous) {}
50 m_vec = std::move(vec.m_vec);
65 std::vector<size_t> out(
m_vec.size());
73 return std::make_pair(
m_vec.front(),
m_vec.back());
83 auto const it = std::find(
begin(),
end(), i);
91 std::set<WorkspaceIndex> indices(
begin(),
end());
92 indices.insert(other.begin(), other.end());
97 : m_vec(indices.begin(), indices.end()) {
103 if (
m_vec.size() > 1) {
104 for (
size_t i = 1; i <
m_vec.size(); ++i) {
114 auto iteratorToErase = std::find(
m_vec.begin(),
m_vec.end(), workspaceIndex);
115 if (iteratorToErase !=
m_vec.end()) {
116 m_vec.erase(iteratorToErase);
double value
The value of the point.
std::string toString(const T &value)
Convert a number to a string.
std::string to_string(const wide_integer< Bits, Signed > &n)