13using namespace Kernel;
21 if (min < 0 || min > max)
23 if (max >=
static_cast<int64_t
>(fullRange))
27 m_min =
static_cast<size_t>(min);
28 m_size =
static_cast<size_t>(max - min + 1);
35 std::set<size_t> index_set;
36 for (
const auto &
index : indices) {
37 if (
index >= fullRange)
39 index_set.insert(
index);
41 m_indices = std::vector<size_t>(begin(index_set), end(index_set));
size_t m_size
Maximum size of the store.
std::map< DeltaEMode::Type, std::string > index
Exception for index errors.
IndexSet(size_t fullRange)
Constructor for a set covering the full range from 0 to fullRange-1.
std::vector< size_t > m_indices
Helper class which provides the Collimation Length for SANS instruments.