LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
art::ModuleDescription Class Reference

#include "ModuleDescription.h"

Public Member Functions

 ~ModuleDescription ()
 
 ModuleDescription ()
 
 ModuleDescription (fhicl::ParameterSetID parameterSetID, std::string const &modName, std::string const &modLabel, ModuleThreadingType moduleThreadingType, ProcessConfiguration pc, bool isEmulated=false)
 
void write (std::ostream &os) const
 
fhicl::ParameterSetID const & parameterSetID () const
 
std::string const & moduleName () const
 
std::string const & moduleLabel () const
 
bool isEmulatedModule () const
 
ModuleThreadingType moduleThreadingType () const
 
ProcessConfiguration const & processConfiguration () const
 
ProcessConfigurationID const processConfigurationID () const
 
std::string const & processName () const
 
std::string const & releaseVersion () const
 
fhicl::ParameterSetID const & mainParameterSetID () const
 
bool operator< (ModuleDescription const &rh) const
 
bool operator== (ModuleDescription const &rh) const
 
bool operator!= (ModuleDescription const &rh) const
 

Private Attributes

fhicl::ParameterSetID parameterSetID_ {}
 
std::string moduleName_ {}
 
std::string moduleLabel_ {}
 
ModuleThreadingType moduleThreadingType_ {}
 
bool isEmulated_ {false}
 
ProcessConfiguration processConfiguration_
 

Detailed Description

Definition at line 14 of file ModuleDescription.h.

Constructor & Destructor Documentation

art::ModuleDescription::~ModuleDescription ( )
default
art::ModuleDescription::ModuleDescription ( )
explicitdefault
art::ModuleDescription::ModuleDescription ( fhicl::ParameterSetID  parameterSetID,
std::string const &  modName,
std::string const &  modLabel,
ModuleThreadingType  moduleThreadingType,
ProcessConfiguration  pc,
bool  isEmulated = false 
)
explicit

Definition at line 16 of file ModuleDescription.cc.

References isEmulated_, moduleLabel_, moduleName_, moduleThreadingType(), moduleThreadingType_, and processConfiguration_.

23  : parameterSetID_{parameterSetID}
24  , moduleName_{modName}
25  , moduleLabel_{modLabel}
27  , isEmulated_{isEmulated}
28  , processConfiguration_{std::move(pc)}
29  {}
ModuleThreadingType moduleThreadingType_
ModuleThreadingType moduleThreadingType() const
ProcessConfiguration processConfiguration_
fhicl::ParameterSetID parameterSetID_

Member Function Documentation

bool art::ModuleDescription::isEmulatedModule ( ) const

Definition at line 50 of file ModuleDescription.cc.

References isEmulated_.

Referenced by art::detail::type_label_for().

51  {
52  return isEmulated_;
53  }
fhicl::ParameterSetID const & art::ModuleDescription::mainParameterSetID ( ) const

Definition at line 86 of file ModuleDescription.cc.

References art::ProcessConfiguration::parameterSetID(), and processConfiguration().

Referenced by write().

87  {
89  }
ProcessConfiguration const & processConfiguration() const
fhicl::ParameterSetID const & parameterSetID() const noexcept
ModuleThreadingType art::ModuleDescription::moduleThreadingType ( ) const

Definition at line 56 of file ModuleDescription.cc.

References moduleThreadingType_.

Referenced by art::Worker::isUnique(), art::PathManager::makeWorker_(), and ModuleDescription().

57  {
58  return moduleThreadingType_;
59  }
ModuleThreadingType moduleThreadingType_
bool art::ModuleDescription::operator!= ( ModuleDescription const &  rh) const

Definition at line 131 of file ModuleDescription.cc.

References operator==().

132  {
133  return !operator==(rh);
134  }
bool operator==(ModuleDescription const &rh) const
bool art::ModuleDescription::operator< ( ModuleDescription const &  rh) const

Definition at line 92 of file ModuleDescription.cc.

References moduleLabel(), moduleName(), parameterSetID(), processName(), and releaseVersion().

93  {
94  if (moduleLabel() < rh.moduleLabel()) {
95  return true;
96  }
97  if (rh.moduleLabel() < moduleLabel()) {
98  return false;
99  }
100  if (processName() < rh.processName()) {
101  return true;
102  }
103  if (rh.processName() < processName()) {
104  return false;
105  }
106  if (moduleName() < rh.moduleName()) {
107  return true;
108  }
109  if (rh.moduleName() < moduleName()) {
110  return false;
111  }
112  if (parameterSetID() < rh.parameterSetID()) {
113  return true;
114  }
115  if (rh.parameterSetID() < parameterSetID()) {
116  return false;
117  }
118  if (releaseVersion() < rh.releaseVersion()) {
119  return true;
120  }
121  return false;
122  }
std::string const & moduleLabel() const
std::string const & releaseVersion() const
std::string const & processName() const
std::string const & moduleName() const
fhicl::ParameterSetID const & parameterSetID() const
bool art::ModuleDescription::operator== ( ModuleDescription const &  rh) const

Definition at line 125 of file ModuleDescription.cc.

Referenced by operator!=().

126  {
127  return !((*this < rh) || (rh < *this));
128  }
fhicl::ParameterSetID const & art::ModuleDescription::parameterSetID ( ) const

Definition at line 32 of file ModuleDescription.cc.

References parameterSetID_.

Referenced by art::ProducesCollector::fillDescriptions(), art::SourceHelper::makePtr(), operator<(), and write().

33  {
34  return parameterSetID_;
35  }
fhicl::ParameterSetID parameterSetID_
ProcessConfigurationID const art::ModuleDescription::processConfigurationID ( ) const

Definition at line 68 of file ModuleDescription.cc.

References art::ProcessConfiguration::id(), and processConfiguration().

69  {
70  return processConfiguration().id();
71  }
ProcessConfigurationID id() const
ProcessConfiguration const & processConfiguration() const
std::string const & art::ModuleDescription::releaseVersion ( ) const

Definition at line 80 of file ModuleDescription.cc.

References processConfiguration(), and art::ProcessConfiguration::releaseVersion().

Referenced by operator<(), and write().

81  {
83  }
ReleaseVersion const & releaseVersion() const noexcept
ProcessConfiguration const & processConfiguration() const
void art::ModuleDescription::write ( std::ostream &  os) const

Definition at line 137 of file ModuleDescription.cc.

References mainParameterSetID(), moduleLabel(), moduleName(), parameterSetID(), processName(), and releaseVersion().

Referenced by art::operator<<().

138  {
139  os << "Module type=" << moduleName() << ", "
140  << "Module label=" << moduleLabel() << ", "
141  << "Parameter Set ID=" << parameterSetID() << ", "
142  << "Process name=" << processName() << ", "
143  << "Release Version=" << releaseVersion() << ", "
144  << "Main Parameter Set ID=" << mainParameterSetID();
145  }
std::string const & moduleLabel() const
std::string const & releaseVersion() const
std::string const & processName() const
std::string const & moduleName() const
fhicl::ParameterSetID const & parameterSetID() const
fhicl::ParameterSetID const & mainParameterSetID() const

Member Data Documentation

bool art::ModuleDescription::isEmulated_ {false}
private

Definition at line 50 of file ModuleDescription.h.

Referenced by isEmulatedModule(), and ModuleDescription().

std::string art::ModuleDescription::moduleLabel_ {}
private

Definition at line 48 of file ModuleDescription.h.

Referenced by ModuleDescription(), and moduleLabel().

std::string art::ModuleDescription::moduleName_ {}
private

Definition at line 47 of file ModuleDescription.h.

Referenced by ModuleDescription(), and moduleName().

ModuleThreadingType art::ModuleDescription::moduleThreadingType_ {}
private

Definition at line 49 of file ModuleDescription.h.

Referenced by ModuleDescription(), and moduleThreadingType().

fhicl::ParameterSetID art::ModuleDescription::parameterSetID_ {}
private

Definition at line 46 of file ModuleDescription.h.

Referenced by parameterSetID().

ProcessConfiguration art::ModuleDescription::processConfiguration_
private
Initial value:
{"invalid_process",

Definition at line 53 of file ModuleDescription.h.

Referenced by ModuleDescription(), and processConfiguration().


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