LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "EventRange.h"
Public Member Functions | |
EventRange ()=default | |
EventRange (SubRunNumber_t s, EventNumber_t begin, EventNumber_t end) | |
bool | operator< (EventRange const &other) const |
bool | operator== (EventRange const &other) const |
bool | operator!= (EventRange const &other) const |
auto | subRun () const |
bool | empty () const |
auto | begin () const |
auto | end () const |
auto | size () const |
bool | is_valid () const |
bool | is_full_subRun () const |
bool | contains (SubRunNumber_t s, EventNumber_t e) const |
bool | is_same (EventRange const &other) const |
bool | is_adjacent (EventRange const &other) const |
bool | is_disjoint (EventRange const &other) const |
bool | is_subset (EventRange const &other) const |
bool | is_superset (EventRange const &other) const |
bool | is_overlapping (EventRange const &other) const |
bool | merge (EventRange const &other) |
void | set_end (EventNumber_t const e) |
Static Public Member Functions | |
static EventRange | invalid () |
static EventRange | forSubRun (SubRunNumber_t s) |
static bool | are_valid (EventRange const &l, EventRange const &r) |
Private Member Functions | |
void | require_not_full_SubRun () |
Private Attributes | |
SubRunNumber_t | subRun_ {IDNumber<Level::SubRun>::invalid()} |
EventNumber_t | begin_ {IDNumber<Level::Event>::invalid()} |
EventNumber_t | end_ {IDNumber<Level::Event>::invalid()} |
Definition at line 16 of file EventRange.h.
|
explicitdefault |
|
explicit |
|
static |
Definition at line 93 of file EventRange.cc.
References is_valid().
Referenced by is_adjacent(), is_disjoint(), is_overlapping(), is_same(), is_subset(), is_superset(), merge(), and size().
|
inline |
bool EventRange::contains | ( | SubRunNumber_t | s, |
EventNumber_t | e | ||
) | const |
|
inline |
Definition at line 37 of file EventRange.h.
|
inline |
|
static |
Definition at line 25 of file EventRange.cc.
References s.
Referenced by art::RangeSet::forSubRun().
|
static |
Definition at line 19 of file EventRange.cc.
bool EventRange::is_adjacent | ( | EventRange const & | other | ) | const |
Definition at line 112 of file EventRange.cc.
References are_valid(), begin_, end_, and subRun_.
Referenced by merge(), and size().
bool EventRange::is_disjoint | ( | EventRange const & | other | ) | const |
Definition at line 120 of file EventRange.cc.
References are_valid(), begin_, end_, and subRun_.
Referenced by is_overlapping(), and size().
bool EventRange::is_full_subRun | ( | ) | const |
Definition at line 105 of file EventRange.cc.
References begin_, end_, art::is_valid(), and subRun_.
Referenced by art::operator<<(), require_not_full_SubRun(), and size().
bool EventRange::is_overlapping | ( | EventRange const & | other | ) | const |
Definition at line 154 of file EventRange.cc.
References are_valid(), is_disjoint(), is_subset(), and is_superset().
Referenced by size().
bool EventRange::is_same | ( | EventRange const & | other | ) | const |
Definition at line 128 of file EventRange.cc.
References are_valid(), and operator==().
Referenced by size().
bool EventRange::is_subset | ( | EventRange const & | other | ) | const |
Definition at line 136 of file EventRange.cc.
References are_valid(), begin_, end_, and subRun_.
Referenced by is_overlapping(), and size().
bool EventRange::is_superset | ( | EventRange const & | other | ) | const |
Definition at line 145 of file EventRange.cc.
References are_valid(), begin_, end_, and subRun_.
Referenced by is_overlapping(), and size().
bool EventRange::is_valid | ( | ) | const |
Definition at line 99 of file EventRange.cc.
References art::is_valid(), and subRun_.
Referenced by are_valid(), and size().
bool EventRange::merge | ( | EventRange const & | other | ) |
Definition at line 39 of file EventRange.cc.
References are_valid(), end_, is_adjacent(), and require_not_full_SubRun().
Referenced by size().
bool EventRange::operator!= | ( | EventRange const & | other | ) | const |
Definition at line 73 of file EventRange.cc.
References operator==().
bool EventRange::operator< | ( | EventRange const & | other | ) | const |
Definition at line 52 of file EventRange.cc.
References begin_, end_, and subRun_.
bool EventRange::operator== | ( | EventRange const & | other | ) | const |
Definition at line 66 of file EventRange.cc.
References begin_, end_, and subRun_.
Referenced by is_same(), and operator!=().
|
inlineprivate |
Definition at line 78 of file EventRange.h.
References is_full_subRun(), and art::errors::LogicError.
Referenced by merge(), and set_end().
void EventRange::set_end | ( | EventNumber_t const | e | ) |
Definition at line 79 of file EventRange.cc.
References begin_, e, end_, and require_not_full_SubRun().
Referenced by size().
|
inline |
Definition at line 52 of file EventRange.h.
References are_valid(), begin_, contains(), e, end_, is_adjacent(), is_disjoint(), is_full_subRun(), is_overlapping(), is_same(), is_subset(), is_superset(), is_valid(), merge(), and set_end().
|
inline |
|
private |
Definition at line 87 of file EventRange.h.
Referenced by begin(), contains(), empty(), EventRange(), is_adjacent(), is_disjoint(), is_full_subRun(), is_subset(), is_superset(), operator<(), operator==(), set_end(), and size().
|
private |
Definition at line 88 of file EventRange.h.
Referenced by contains(), empty(), end(), EventRange(), is_adjacent(), is_disjoint(), is_full_subRun(), is_subset(), is_superset(), merge(), operator<(), operator==(), set_end(), and size().
|
private |
Definition at line 86 of file EventRange.h.
Referenced by contains(), is_adjacent(), is_disjoint(), is_full_subRun(), is_subset(), is_superset(), is_valid(), operator<(), operator==(), and subRun().