LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::OpenRangeSetHandler Class Reference

#include "OpenRangeSetHandler.h"

Inheritance diagram for art::OpenRangeSetHandler:
art::RangeSetHandler

Public Member Functions

 OpenRangeSetHandler (RunNumber_t r)
 
 OpenRangeSetHandler (OpenRangeSetHandler const &)=delete
 
OpenRangeSetHandleroperator= (OpenRangeSetHandler const &)=delete
 
 OpenRangeSetHandler (OpenRangeSetHandler &&)=default
 
OpenRangeSetHandleroperator= (OpenRangeSetHandler &&)=default
 
RangeSet seenRanges () const
 
void update (EventID const &id, bool const lastInSubRun)
 
void flushRanges ()
 
void maybeSplitRange ()
 
void rebase ()
 

Private Member Functions

RangeSet do_getSeenRanges () const override
 
void do_update (EventID const &, bool lastInSubRun) override
 
void do_flushRanges () override
 
void do_maybeSplitRange () override
 
void do_rebase () override
 

Private Attributes

RangeSet ranges_ {RangeSet::invalid()}
 
RangeSet::const_iterator rsIter_ {ranges_.begin()}
 

Detailed Description

Definition at line 42 of file OpenRangeSetHandler.h.

Constructor & Destructor Documentation

art::OpenRangeSetHandler::OpenRangeSetHandler ( RunNumber_t  r)
explicit

Definition at line 12 of file OpenRangeSetHandler.cc.

art::OpenRangeSetHandler::OpenRangeSetHandler ( OpenRangeSetHandler const &  )
delete
art::OpenRangeSetHandler::OpenRangeSetHandler ( OpenRangeSetHandler &&  )
default

Member Function Documentation

void art::OpenRangeSetHandler::do_flushRanges ( )
inlineoverrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 59 of file OpenRangeSetHandler.h.

60  {}
RangeSet art::OpenRangeSetHandler::do_getSeenRanges ( ) const
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 15 of file OpenRangeSetHandler.cc.

References art::RangeSet::begin(), ranges_, rsIter_, art::RangeSet::run(), and tmp.

16  {
17  RangeSet tmp{ranges_.run()};
18  tmp.assign_ranges(ranges_.begin(), rsIter_);
19  return tmp;
20  }
auto begin() const
Definition: RangeSet.h:70
Float_t tmp
Definition: plot.C:37
RunNumber_t run() const
Definition: RangeSet.h:36
RangeSet::const_iterator rsIter_
void art::OpenRangeSetHandler::do_maybeSplitRange ( )
inlineoverrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 62 of file OpenRangeSetHandler.h.

References do_rebase().

63  {}
void art::OpenRangeSetHandler::do_rebase ( )
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 30 of file OpenRangeSetHandler.cc.

References art::RangeSet::clear(), art::RangeSet::end(), ranges_, and rsIter_.

Referenced by do_maybeSplitRange().

31  {
32  ranges_.clear();
33  rsIter_ = ranges_.end();
34  }
void clear()
Definition: RangeSet.h:120
auto end() const
Definition: RangeSet.h:75
RangeSet::const_iterator rsIter_
void art::OpenRangeSetHandler::do_update ( EventID const &  id,
bool  lastInSubRun 
)
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 23 of file OpenRangeSetHandler.cc.

References art::RangeSet::end(), ranges_, rsIter_, and art::RangeSet::update().

24  {
25  ranges_.update(id);
26  rsIter_ = ranges_.end();
27  }
auto end() const
Definition: RangeSet.h:75
void update(EventID const &)
Definition: RangeSet.cc:117
RangeSet::const_iterator rsIter_
void art::RangeSetHandler::flushRanges ( )
inlineinherited

Definition at line 29 of file RangeSetHandler.h.

References art::RangeSetHandler::do_flushRanges().

30  {
32  }
virtual void do_flushRanges()=0
void art::RangeSetHandler::maybeSplitRange ( )
inlineinherited

Definition at line 34 of file RangeSetHandler.h.

References art::RangeSetHandler::do_maybeSplitRange().

35  {
37  }
virtual void do_maybeSplitRange()=0
OpenRangeSetHandler& art::OpenRangeSetHandler::operator= ( OpenRangeSetHandler const &  )
delete
OpenRangeSetHandler& art::OpenRangeSetHandler::operator= ( OpenRangeSetHandler &&  )
default
RangeSet art::RangeSetHandler::seenRanges ( ) const
inlineinherited

Definition at line 17 of file RangeSetHandler.h.

References art::RangeSetHandler::do_getSeenRanges().

18  {
19  return do_getSeenRanges();
20  }
virtual RangeSet do_getSeenRanges() const =0
void art::RangeSetHandler::update ( EventID const &  id,
bool const  lastInSubRun 
)
inlineinherited

Definition at line 23 of file RangeSetHandler.h.

References art::RangeSetHandler::do_update().

24  {
25  do_update(id, lastInSubRun);
26  }
virtual void do_update(EventID const &, bool lastInSubRun)=0

Member Data Documentation

RangeSet art::OpenRangeSetHandler::ranges_ {RangeSet::invalid()}
private

Definition at line 66 of file OpenRangeSetHandler.h.

Referenced by do_getSeenRanges(), do_rebase(), and do_update().

RangeSet::const_iterator art::OpenRangeSetHandler::rsIter_ {ranges_.begin()}
private

Definition at line 67 of file OpenRangeSetHandler.h.

Referenced by do_getSeenRanges(), do_rebase(), and do_update().


The documentation for this class was generated from the following files: