LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::RangeSetHandler Class Referenceabstract

#include "RangeSetHandler.h"

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

Public Types

enum  HandlerType { HandlerType::Open = 1, HandlerType::Closed = 2 }
 

Public Member Functions

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

virtual HandlerType do_type () const =0
 
virtual RangeSet do_getSeenRanges () const =0
 
virtual void do_update (EventID const &, bool lastInSubRun)=0
 
virtual void do_flushRanges ()=0
 
virtual void do_maybeSplitRange ()=0
 
virtual void do_rebase ()=0
 
virtual RangeSetHandlerdo_clone () const =0
 

Detailed Description

Definition at line 11 of file RangeSetHandler.h.

Member Enumeration Documentation

Enumerator
Open 
Closed 

Definition at line 14 of file RangeSetHandler.h.

Constructor & Destructor Documentation

art::RangeSetHandler::~RangeSetHandler ( )
virtualnoexcept

Definition at line 6 of file RangeSetHandler.cc.

6 {}

Member Function Documentation

RangeSetHandler * art::RangeSetHandler::clone ( ) const
virtual RangeSetHandler* art::RangeSetHandler::do_clone ( ) const
privatepure virtual

Implemented in art::ClosedRangeSetHandler, and art::OpenRangeSetHandler.

Referenced by clone().

virtual void art::RangeSetHandler::do_flushRanges ( )
privatepure virtual
virtual RangeSet art::RangeSetHandler::do_getSeenRanges ( ) const
privatepure virtual
virtual void art::RangeSetHandler::do_maybeSplitRange ( )
privatepure virtual
virtual void art::RangeSetHandler::do_rebase ( )
privatepure virtual

Implemented in art::ClosedRangeSetHandler, and art::OpenRangeSetHandler.

Referenced by rebase().

virtual HandlerType art::RangeSetHandler::do_type ( ) const
privatepure virtual

Implemented in art::ClosedRangeSetHandler, and art::OpenRangeSetHandler.

Referenced by type().

virtual void art::RangeSetHandler::do_update ( EventID const &  ,
bool  lastInSubRun 
)
privatepure virtual

Implemented in art::ClosedRangeSetHandler, and art::OpenRangeSetHandler.

Referenced by update().

void art::RangeSetHandler::flushRanges ( )

Definition at line 27 of file RangeSetHandler.cc.

References do_flushRanges().

Referenced by art::EventProcessor::setRunAuxiliaryRangeSetID().

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

Definition at line 33 of file RangeSetHandler.cc.

References do_maybeSplitRange().

Referenced by art::EventProcessor::setSubRunAuxiliaryRangeSetID().

34  {
36  }
virtual void do_maybeSplitRange()=0
void art::RangeSetHandler::rebase ( )

Definition at line 39 of file RangeSetHandler.cc.

References do_rebase().

40  {
41  do_rebase();
42  }
virtual void do_rebase()=0
RangeSet art::RangeSetHandler::seenRanges ( ) const

Definition at line 15 of file RangeSetHandler.cc.

References do_getSeenRanges().

Referenced by art::EventProcessor::setRunAuxiliaryRangeSetID(), and art::EventProcessor::setSubRunAuxiliaryRangeSetID().

16  {
17  return do_getSeenRanges();
18  }
virtual RangeSet do_getSeenRanges() const =0
RangeSetHandler::HandlerType art::RangeSetHandler::type ( ) const

Definition at line 9 of file RangeSetHandler.cc.

References do_type().

10  {
11  return do_type();
12  }
virtual HandlerType do_type() const =0
void art::RangeSetHandler::update ( EventID const &  id,
bool const  lastInSubRun 
)

Definition at line 21 of file RangeSetHandler.cc.

References do_update().

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

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