Public Member Functions | Private Attributes | List of all members
art::FastCloningInfoProvider Class Reference

#include <FastCloningInfoProvider.h>

Public Member Functions

 FastCloningInfoProvider ()
 
 FastCloningInfoProvider (cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input)
 
bool fastCloningPermitted () const
 
off_t remainingEvents () const
 
off_t remainingSubRuns () const
 

Private Attributes

cet::exempt_ptr< DecrepitRelicInputSourceImplementationinput_
 

Detailed Description

Definition at line 12 of file FastCloningInfoProvider.h.

Constructor & Destructor Documentation

art::FastCloningInfoProvider::FastCloningInfoProvider ( )
inline

Definition at line 14 of file FastCloningInfoProvider.h.

14 : input_() {}
cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input_
art::FastCloningInfoProvider::FastCloningInfoProvider ( cet::exempt_ptr< DecrepitRelicInputSourceImplementation input)
explicit

Definition at line 6 of file FastCloningInfoProvider.cc.

8  : input_(input)
9 {}
cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input_

Member Function Documentation

bool art::FastCloningInfoProvider::fastCloningPermitted ( ) const
inline

Definition at line 28 of file FastCloningInfoProvider.h.

29 {
30  return !input_.empty();
31 }
cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input_
off_t art::FastCloningInfoProvider::remainingEvents ( ) const

Definition at line 12 of file FastCloningInfoProvider.cc.

13 {
14  if (!fastCloningPermitted()) {
16  << "FastCloningInfoProvider::remainingEvents() has no meaning"
17  << " in this context:\n"
18  << "Check fastCloningPermitted() first.\n";
19  }
20  return input_->remainingEvents();
21 }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input_
off_t art::FastCloningInfoProvider::remainingSubRuns ( ) const

Definition at line 24 of file FastCloningInfoProvider.cc.

25 {
26  if (!fastCloningPermitted()) {
28  << "FastCloningInfoProvider::remainingSubRuns() has no meaning"
29  << " in this context:\n"
30  << "Check fastCloningPermitted() first.\n";
31  }
32  return input_->remainingSubRuns();
33 }
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
cet::exempt_ptr< DecrepitRelicInputSourceImplementation > input_

Member Data Documentation

cet::exempt_ptr<DecrepitRelicInputSourceImplementation> art::FastCloningInfoProvider::input_
private

Definition at line 24 of file FastCloningInfoProvider.h.


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