Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::OpenRangeSetHandler Class Referencefinal

#include <OpenRangeSetHandler.h>

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

Public Member Functions

virtual ~OpenRangeSetHandler ()
 
 OpenRangeSetHandler (RunNumber_t r)
 
 OpenRangeSetHandler (RangeSet const &)
 
 OpenRangeSetHandler (OpenRangeSetHandler const &)
 
 OpenRangeSetHandler (OpenRangeSetHandler &&)
 
OpenRangeSetHandleroperator= (OpenRangeSetHandler const &)
 
OpenRangeSetHandleroperator= (OpenRangeSetHandler &&)
 
- Public Member Functions inherited from art::RangeSetHandler
virtual ~RangeSetHandler () noexcept
 
HandlerType type () const
 
RangeSet seenRanges () const
 
void update (EventID const &id, bool const lastInSubRun)
 
void flushRanges ()
 
void maybeSplitRange ()
 
void rebase ()
 
RangeSetHandlerclone () const
 

Private Member Functions

HandlerType do_type () const override
 
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
 
RangeSetHandlerdo_clone () const override
 

Private Attributes

RangeSet ranges_ {RangeSet::invalid()}
 
std::size_t idx_ {0}
 

Additional Inherited Members

- Public Types inherited from art::RangeSetHandler
enum  HandlerType { HandlerType::Open = 1, HandlerType::Closed = 2 }
 

Detailed Description

Definition at line 39 of file OpenRangeSetHandler.h.

Constructor & Destructor Documentation

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

Definition at line 15 of file OpenRangeSetHandler.cc.

art::OpenRangeSetHandler::OpenRangeSetHandler ( RangeSet const &  ranges)
explicit

Definition at line 19 of file OpenRangeSetHandler.cc.

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

Member Function Documentation

RangeSetHandler * art::OpenRangeSetHandler::do_clone ( ) const
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 77 of file OpenRangeSetHandler.cc.

78  {
79  return new OpenRangeSetHandler{*this};
80  }
void art::OpenRangeSetHandler::do_flushRanges ( )
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 62 of file OpenRangeSetHandler.cc.

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

Implements art::RangeSetHandler.

Definition at line 47 of file OpenRangeSetHandler.cc.

48  {
49  RangeSet tmp{ranges_.run()};
50  tmp.assign_ranges(ranges_, ranges_.begin_idx(), idx_);
51  return tmp;
52  }
RunNumber_t run() const
Definition: RangeSet.cc:89
string tmp
Definition: languages.py:63
std::size_t begin_idx() const
Definition: RangeSet.cc:189
void art::OpenRangeSetHandler::do_maybeSplitRange ( )
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 66 of file OpenRangeSetHandler.cc.

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

Implements art::RangeSetHandler.

Definition at line 70 of file OpenRangeSetHandler.cc.

71  {
72  ranges_.clear();
73  idx_ = ranges_.end_idx();
74  }
void clear()
Definition: RangeSet.cc:384
std::size_t end_idx() const
Definition: RangeSet.cc:195
RangeSetHandler::HandlerType art::OpenRangeSetHandler::do_type ( ) const
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 41 of file OpenRangeSetHandler.cc.

void art::OpenRangeSetHandler::do_update ( EventID const &  id,
bool  lastInSubRun 
)
overrideprivatevirtual

Implements art::RangeSetHandler.

Definition at line 55 of file OpenRangeSetHandler.cc.

56  {
57  ranges_.update(id);
58  idx_ = ranges_.end_idx();
59  }
std::size_t end_idx() const
Definition: RangeSet.cc:195
void update(EventID const &)
Definition: RangeSet.cc:326
OpenRangeSetHandler & art::OpenRangeSetHandler::operator= ( OpenRangeSetHandler const &  )
default
OpenRangeSetHandler & art::OpenRangeSetHandler::operator= ( OpenRangeSetHandler &&  )
default

Member Data Documentation

std::size_t art::OpenRangeSetHandler::idx_ {0}
private

Definition at line 63 of file OpenRangeSetHandler.h.

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

Definition at line 62 of file OpenRangeSetHandler.h.


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