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

#include "CurrentProcessingContext.h"

Public Member Functions

 CurrentProcessingContext ()
 
 CurrentProcessingContext (std::string const *name, int bitpos, bool isEndPth)
 
std::string const * moduleLabel () const
 
std::string const * pathName () const
 
ModuleDescription const * moduleDescription () const
 
int pathInSchedule () const
 
int slotInPath () const
 
bool isEndPath () const
 
void activate (std::size_t theSlotInPath, ModuleDescription const *mod)
 
void deactivate ()
 

Private Member Functions

bool is_active () const
 

Private Attributes

int pathInSchedule_
 
std::size_t slotInPath_
 
ModuleDescription const * moduleDescription_
 
std::string const * pathName_
 
bool isEndPath_
 

Detailed Description

Definition at line 28 of file CurrentProcessingContext.h.

Constructor & Destructor Documentation

art::CurrentProcessingContext::CurrentProcessingContext ( )
art::CurrentProcessingContext::CurrentProcessingContext ( std::string const *  name,
int  bitpos,
bool  isEndPth 
)

Member Function Documentation

void art::CurrentProcessingContext::activate ( std::size_t  theSlotInPath,
ModuleDescription const *  mod 
)

Definition at line 62 of file CurrentProcessingContext.cc.

References moduleDescription_, and slotInPath_.

64  {
65  assert(mod);
66  slotInPath_ = theSlotInPath;
67  moduleDescription_ = mod;
68  }
ModuleDescription const * moduleDescription_
void art::CurrentProcessingContext::deactivate ( )
bool art::CurrentProcessingContext::is_active ( ) const
inlineprivate

Definition at line 80 of file CurrentProcessingContext.h.

Referenced by moduleLabel(), pathInSchedule(), and slotInPath().

81  {
82  return moduleDescription_ != 0;
83  }
ModuleDescription const * moduleDescription_
bool art::CurrentProcessingContext::isEndPath ( ) const

Definition at line 56 of file CurrentProcessingContext.cc.

References isEndPath_.

Referenced by art::Worker::doWork().

57  {
58  return isEndPath_;
59  }
ModuleDescription const * art::CurrentProcessingContext::moduleDescription ( ) const

Definition at line 38 of file CurrentProcessingContext.cc.

References moduleDescription_.

39  {
40  return moduleDescription_;
41  }
ModuleDescription const * moduleDescription_
std::string const * art::CurrentProcessingContext::moduleLabel ( ) const

Definition at line 26 of file CurrentProcessingContext.cc.

References is_active(), moduleDescription_, and art::ModuleDescription::moduleLabel().

27  {
28  return is_active() ? &(moduleDescription_->moduleLabel()) : 0;
29  }
ModuleDescription const * moduleDescription_
std::string const & moduleLabel() const
int art::CurrentProcessingContext::pathInSchedule ( ) const

Definition at line 44 of file CurrentProcessingContext.cc.

References is_active(), and pathInSchedule_.

std::string const * art::CurrentProcessingContext::pathName ( ) const

Definition at line 32 of file CurrentProcessingContext.cc.

References pathName_.

33  {
34  return pathName_;
35  }
int art::CurrentProcessingContext::slotInPath ( ) const

Definition at line 50 of file CurrentProcessingContext.cc.

References is_active(), and slotInPath_.

51  {
52  return is_active() ? static_cast<int>(slotInPath_) : -1;
53  }

Member Data Documentation

bool art::CurrentProcessingContext::isEndPath_
private

Definition at line 77 of file CurrentProcessingContext.h.

Referenced by isEndPath().

ModuleDescription const* art::CurrentProcessingContext::moduleDescription_
private

Definition at line 75 of file CurrentProcessingContext.h.

Referenced by activate(), deactivate(), moduleDescription(), and moduleLabel().

int art::CurrentProcessingContext::pathInSchedule_
private

Definition at line 73 of file CurrentProcessingContext.h.

Referenced by deactivate(), and pathInSchedule().

std::string const* art::CurrentProcessingContext::pathName_
private

Definition at line 76 of file CurrentProcessingContext.h.

Referenced by deactivate(), and pathName().

std::size_t art::CurrentProcessingContext::slotInPath_
private

Definition at line 74 of file CurrentProcessingContext.h.

Referenced by activate(), deactivate(), and slotInPath().


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