#include <RangeSet.h>
Public Types | |
using | const_iterator = std::vector< EventRange >::const_iterator |
Public Member Functions | |
~RangeSet () | |
RangeSet () | |
RangeSet (RunNumber_t) | |
RangeSet (RunNumber_t, std::vector< EventRange > const &eventRanges) | |
RangeSet (RangeSet const &) | |
RangeSet (RangeSet &&) | |
RangeSet & | operator= (RangeSet const &) |
RangeSet & | operator= (RangeSet &&) |
RunNumber_t | run () const |
std::vector< EventRange > const & | ranges () const |
bool | contains (RunNumber_t, SubRunNumber_t, EventNumber_t) const |
bool | is_valid () const |
bool | is_full_run () const |
bool | is_full_subRun () const |
bool | is_sorted () const |
bool | is_collapsed () const |
std::string | to_compact_string () const |
bool | has_disjoint_ranges () const |
bool | empty () const |
const_iterator | begin () const |
const_iterator | end () const |
std::size_t | begin_idx () const |
std::size_t | end_idx () const |
unsigned | checksum () const |
std::size_t | next_subrun_or_end (std::size_t const b) const |
EventRange & | front () |
EventRange & | back () |
EventRange & | at (std::size_t) |
std::vector< EventRange > | extract_ranges (std::size_t const b, std::size_t const e) |
void | assign_ranges (RangeSet const &rs, std::size_t const b, std::size_t const e) |
void | update (EventID const &) |
template<typename... ARGS> | |
void | emplace_range (ARGS &&...) |
RangeSet & | collapse () |
RangeSet & | merge (RangeSet const &other) |
std::pair< std::size_t, bool > | split_range (SubRunNumber_t, EventNumber_t) |
void | set_run (RunNumber_t const r) |
void | sort () |
void | clear () |
template<typename... ARGS> | |
void | emplace_range (ARGS &&...args) |
Static Public Member Functions | |
static constexpr unsigned | invalidChecksum () |
static RangeSet | invalid () |
static RangeSet | forRun (RunID) |
static RangeSet | forSubRun (SubRunID) |
Private Member Functions | |
void | require_not_full_run () |
Private Attributes | |
RunNumber_t | run_ {IDNumber<Level::Run>::invalid()} |
std::vector< EventRange > | ranges_ {} |
bool | isCollapsed_ {false} |
unsigned | checksum_ {invalidChecksum()} |
Definition at line 25 of file RangeSet.h.
Definition at line 28 of file RangeSet.h.
|
default |
|
explicitdefault |
|
explicit |
Definition at line 71 of file RangeSet.cc.
|
explicit |
Definition at line 73 of file RangeSet.cc.
|
default |
|
default |
void art::RangeSet::assign_ranges | ( | RangeSet const & | rs, |
std::size_t const | b, | ||
std::size_t const | e | ||
) |
Definition at line 317 of file RangeSet.cc.
EventRange & art::RangeSet::at | ( | std::size_t | ) |
Definition at line 246 of file RangeSet.cc.
EventRange & art::RangeSet::back | ( | ) |
Definition at line 240 of file RangeSet.cc.
RangeSet::const_iterator art::RangeSet::begin | ( | ) | const |
Definition at line 201 of file RangeSet.cc.
size_t art::RangeSet::begin_idx | ( | ) | const |
Definition at line 189 of file RangeSet.cc.
unsigned art::RangeSet::checksum | ( | ) | const |
Definition at line 213 of file RangeSet.cc.
void art::RangeSet::clear | ( | ) |
Definition at line 384 of file RangeSet.cc.
RangeSet & art::RangeSet::collapse | ( | ) |
Definition at line 262 of file RangeSet.cc.
bool art::RangeSet::contains | ( | RunNumber_t | r, |
SubRunNumber_t | s, | ||
EventNumber_t | e | ||
) | const |
Definition at line 101 of file RangeSet.cc.
void art::RangeSet::emplace_range | ( | ARGS && | ... | ) |
void art::RangeSet::emplace_range | ( | ARGS &&... | args | ) |
Definition at line 120 of file RangeSet.h.
bool art::RangeSet::empty | ( | ) | const |
Definition at line 179 of file RangeSet.cc.
RangeSet::const_iterator art::RangeSet::end | ( | ) | const |
Definition at line 207 of file RangeSet.cc.
size_t art::RangeSet::end_idx | ( | ) | const |
Definition at line 195 of file RangeSet.cc.
vector< EventRange > art::RangeSet::extract_ranges | ( | std::size_t const | b, |
std::size_t const | e | ||
) |
Definition at line 252 of file RangeSet.cc.
Definition at line 51 of file RangeSet.cc.
Definition at line 57 of file RangeSet.cc.
EventRange & art::RangeSet::front | ( | ) |
Definition at line 234 of file RangeSet.cc.
bool art::RangeSet::has_disjoint_ranges | ( | ) | const |
Definition at line 167 of file RangeSet.cc.
|
static |
Definition at line 45 of file RangeSet.cc.
|
inlinestatic |
Definition at line 32 of file RangeSet.h.
bool art::RangeSet::is_collapsed | ( | ) | const |
Definition at line 142 of file RangeSet.cc.
bool art::RangeSet::is_full_run | ( | ) | const |
Definition at line 123 of file RangeSet.cc.
bool art::RangeSet::is_full_subRun | ( | ) | const |
Definition at line 130 of file RangeSet.cc.
bool art::RangeSet::is_sorted | ( | ) | const |
Definition at line 136 of file RangeSet.cc.
bool art::RangeSet::is_valid | ( | ) | const |
Definition at line 117 of file RangeSet.cc.
Definition at line 295 of file RangeSet.cc.
size_t art::RangeSet::next_subrun_or_end | ( | std::size_t const | b | ) | const |
Definition at line 220 of file RangeSet.cc.
vector< EventRange > const & art::RangeSet::ranges | ( | ) | const |
Definition at line 95 of file RangeSet.cc.
|
private |
Definition at line 390 of file RangeSet.cc.
RunNumber_t art::RangeSet::run | ( | ) | const |
Definition at line 89 of file RangeSet.cc.
void art::RangeSet::set_run | ( | RunNumber_t const | r | ) |
Definition at line 372 of file RangeSet.cc.
void art::RangeSet::sort | ( | ) |
Definition at line 378 of file RangeSet.cc.
pair< std::size_t, bool > art::RangeSet::split_range | ( | SubRunNumber_t | s, |
EventNumber_t | e | ||
) |
Definition at line 345 of file RangeSet.cc.
string art::RangeSet::to_compact_string | ( | ) | const |
Definition at line 148 of file RangeSet.cc.
void art::RangeSet::update | ( | EventID const & | id | ) |
Definition at line 326 of file RangeSet.cc.
|
mutableprivate |
Definition at line 115 of file RangeSet.h.
|
private |
Definition at line 114 of file RangeSet.h.
|
private |
Definition at line 111 of file RangeSet.h.
|
private |
Definition at line 110 of file RangeSet.h.