LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "FileIndex.h"
Classes | |
class | Element |
struct | Transients |
Public Types | |
enum | EntryType { kRun, kSubRun, kEvent, kEnd } |
enum | SortState { kNotSorted, kSorted_Run_SubRun_Event, kSorted_Run_SubRun_EventEntry } |
using | EntryNumber_t = long long |
using | const_iterator = std::vector< Element >::const_iterator |
using | iterator = std::vector< Element >::iterator |
Public Member Functions | |
FileIndex ()=default | |
void | addEntry (EventID const &eID, EntryNumber_t entry) |
void | addEntryOnLoad (EventID const &eID, EntryNumber_t entry) |
void | sortBy_Run_SubRun_Event () |
void | sortBy_Run_SubRun_EventEntry () |
const_iterator | findPosition (EventID const &eID) const |
template<typename ID > | |
const_iterator | findPosition (ID const &id, bool exact) const |
const_iterator | findSubRunOrRunPosition (SubRunID const &srID) const |
template<typename ID > | |
bool | contains (ID const &id, bool exact) const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | cend () const |
std::vector< Element >::size_type | size () const |
bool | empty () const |
bool | allEventsInEntryOrder () const |
bool | eventsUniqueAndOrdered () const |
void | print_event_list (std::ostream &os) const |
template<> | |
FileIndex::const_iterator | findPosition (EventID const &eID, bool exact) const |
template<> | |
FileIndex::const_iterator | findPosition (SubRunID const &srID, bool exact) const |
template<> | |
FileIndex::const_iterator | findPosition (RunID const &rID, bool exact) const |
Private Member Functions | |
bool & | allInEntryOrder () const |
bool & | resultCached () const |
SortState & | sortState () const |
const_iterator | findEventForUnspecifiedSubRun (EventID const &eID, bool exact) const |
Private Attributes | |
std::vector< Element > | entries_ {} |
Transient< Transients > | transients_ {} |
Definition at line 40 of file FileIndex.h.
using art::FileIndex::const_iterator = std::vector<Element>::const_iterator |
Definition at line 72 of file FileIndex.h.
using art::FileIndex::EntryNumber_t = long long |
Definition at line 43 of file FileIndex.h.
using art::FileIndex::iterator = std::vector<Element>::iterator |
Definition at line 73 of file FileIndex.h.
Enumerator | |
---|---|
kRun | |
kSubRun | |
kEvent | |
kEnd |
Definition at line 51 of file FileIndex.h.
Enumerator | |
---|---|
kNotSorted | |
kSorted_Run_SubRun_Event | |
kSorted_Run_SubRun_EventEntry |
Definition at line 142 of file FileIndex.h.
|
default |
void art::FileIndex::addEntry | ( | EventID const & | eID, |
EntryNumber_t | entry | ||
) |
Definition at line 29 of file FileIndex.cc.
Referenced by art::RootOutputFile::writeOne(), art::RootOutputFile::writeRun(), and art::RootOutputFile::writeSubRun().
void art::FileIndex::addEntryOnLoad | ( | EventID const & | eID, |
EntryNumber_t | entry | ||
) |
bool art::FileIndex::allEventsInEntryOrder | ( | ) | const |
Definition at line 60 of file FileIndex.cc.
References e.
Referenced by empty().
|
inlineprivate |
|
inline |
|
inline |
|
inline |
Definition at line 103 of file FileIndex.h.
References entries_.
Referenced by art::detail::InfoDumperInputFile::print_range_sets().
|
inline |
Definition at line 119 of file FileIndex.h.
References entries_.
Referenced by art::MixHelper::mixAndPut(), and art::detail::InfoDumperInputFile::print_range_sets().
|
inline |
Definition at line 87 of file FileIndex.h.
References entries_, and findPosition().
|
inline |
Definition at line 131 of file FileIndex.h.
References allEventsInEntryOrder(), entries_, eventsUniqueAndOrdered(), and print_event_list().
|
inline |
|
inline |
bool art::FileIndex::eventsUniqueAndOrdered | ( | ) | const |
Definition at line 81 of file FileIndex.cc.
Referenced by empty(), and art::DuplicateChecker::init().
|
private |
Definition at line 305 of file FileIndex.cc.
References art::EventID::event(), art::SubRunID::isValid(), art::SubRunID::next(), and art::EventID::runID().
Referenced by sortState().
FileIndex::const_iterator art::FileIndex::findPosition | ( | EventID const & | eID | ) | const |
Definition at line 123 of file FileIndex.cc.
Referenced by contains(), art::MixHelper::mixAndPut(), and art::RootInputFile::setEntry().
const_iterator art::FileIndex::findPosition | ( | ID const & | id, |
bool | exact | ||
) | const |
FileIndex::const_iterator art::FileIndex::findPosition | ( | EventID const & | eID, |
bool | exact | ||
) | const |
Definition at line 134 of file FileIndex.cc.
FileIndex::const_iterator art::FileIndex::findPosition | ( | SubRunID const & | srID, |
bool | exact | ||
) | const |
Definition at line 157 of file FileIndex.cc.
FileIndex::const_iterator art::FileIndex::findPosition | ( | RunID const & | rID, |
bool | exact | ||
) | const |
Definition at line 181 of file FileIndex.cc.
FileIndex::const_iterator art::FileIndex::findSubRunOrRunPosition | ( | SubRunID const & | srID | ) | const |
Definition at line 204 of file FileIndex.cc.
void art::FileIndex::print_event_list | ( | std::ostream & | os | ) | const |
Definition at line 256 of file FileIndex.cc.
References e.
Referenced by empty(), and art::detail::InfoDumperInputFile::print_event_list().
|
inlineprivate |
|
inline |
void art::FileIndex::sortBy_Run_SubRun_Event | ( | ) |
void art::FileIndex::sortBy_Run_SubRun_EventEntry | ( | ) |
Definition at line 52 of file FileIndex.cc.
|
inlineprivate |
Definition at line 171 of file FileIndex.h.
References findEventForUnspecifiedSubRun(), and transients_.
|
private |
Definition at line 179 of file FileIndex.h.
Referenced by begin(), cbegin(), cend(), contains(), empty(), end(), and size().
|
mutableprivate |
Definition at line 180 of file FileIndex.h.
Referenced by allInEntryOrder(), resultCached(), and sortState().