Class Selection

Class Documentation

class bbp::sonata::Selection

Public Types

using Value = uint64_t
using Values = std::vector<Value>
using Range = std::pair<Value, Value>
using Ranges = std::vector<Range>

Public Functions

Selection(Ranges &&ranges)
Selection(const Ranges &ranges)
const Ranges &ranges() const

Get a list of ranges constituting Selection

Values flatten() const

Array of IDs constituting Selection

size_t flatSize() const

Total number of elements constituting Selection

bool empty() const

Public Static Functions

template<typename Iterator>
Selection fromValues(Iterator first, Iterator last)
Selection fromValues(const Values &values)