Public Member Functions | Private Attributes | List of all members
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.

23  : parameterSetID_{parameterSetID}
24  , moduleName_{modName}
25  , moduleLabel_{modLabel}
27  , isEmulated_{isEmulated}
29  {}
ModuleThreadingType moduleThreadingType_
def move(depos, offset)
Definition: depos.py:107
ModuleThreadingType moduleThreadingType() const
ProcessConfiguration processConfiguration_
fhicl::ParameterSetID parameterSetID_

Member Function Documentation

bool art::ModuleDescription::isEmulatedModule ( ) const

Definition at line 50 of file ModuleDescription.cc.

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

Definition at line 86 of file ModuleDescription.cc.

87  {
89  }
ProcessConfiguration const & processConfiguration() const
fhicl::ParameterSetID const & parameterSetID() const noexcept
std::string const & art::ModuleDescription::moduleLabel ( ) const

Definition at line 44 of file ModuleDescription.cc.

45  {
46  return moduleLabel_;
47  }
std::string const & art::ModuleDescription::moduleName ( ) const

Definition at line 38 of file ModuleDescription.cc.

39  {
40  return moduleName_;
41  }
ModuleThreadingType art::ModuleDescription::moduleThreadingType ( ) const

Definition at line 56 of file ModuleDescription.cc.

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

Definition at line 131 of file ModuleDescription.cc.

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.

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.

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

Definition at line 32 of file ModuleDescription.cc.

33  {
34  return parameterSetID_;
35  }
fhicl::ParameterSetID parameterSetID_
ProcessConfiguration const & art::ModuleDescription::processConfiguration ( ) const

Definition at line 62 of file ModuleDescription.cc.

63  {
64  return processConfiguration_;
65  }
ProcessConfiguration processConfiguration_
ProcessConfigurationID const art::ModuleDescription::processConfigurationID ( ) const

Definition at line 68 of file ModuleDescription.cc.

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

Definition at line 74 of file ModuleDescription.cc.

75  {
77  }
ProcessConfiguration const & processConfiguration() const
std::string const & processName() const noexcept
std::string const & art::ModuleDescription::releaseVersion ( ) const

Definition at line 80 of file ModuleDescription.cc.

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.

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.

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

Definition at line 48 of file ModuleDescription.h.

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

Definition at line 47 of file ModuleDescription.h.

ModuleThreadingType art::ModuleDescription::moduleThreadingType_ {}
private

Definition at line 49 of file ModuleDescription.h.

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

Definition at line 46 of file ModuleDescription.h.

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

Definition at line 53 of file ModuleDescription.h.


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