LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Identifier for a engine, made of module name and optional instance name. More...
#include "EngineId.h"
Classes | |
struct | Global_t |
structure to identify a "global" flavour constructor More... | |
Public Member Functions | |
EngineId (std::string const &mod, std::string const &inst=std::string()) | |
Constructor (module name is required) More... | |
EngineId (std::string const &inst, Global_t) | |
Constructor (module name is required) More... | |
bool | isGlobal () const |
Returns whether the label is "global" (no module context) More... | |
bool | hasInstanceName () const |
Returns whether the instance label is defined. More... | |
void | setGlobal (std::string inst) |
Sets this ID to the specified global instance. More... | |
bool | operator== (EngineId const &rhs) const |
Returns true if both module and instance names match. More... | |
bool | operator< (EngineId const &rhs) const |
Lexicographic sort (module name first, then instance name) More... | |
operator std::string () const | |
Converts the information in a module_name[.instance_name] string. More... | |
std::string | artName () const |
Converts the information in a module_name:instance_name string. More... | |
Public Attributes | |
std::string | moduleLabel |
module label More... | |
std::string | instanceName |
instance name More... | |
Static Public Attributes | |
static constexpr Global_t | global {} |
A constant to select a "global" flavour constructor. More... | |
Identifier for a engine, made of module name and optional instance name.
Definition at line 22 of file EngineId.h.
|
inline |
Constructor (module name is required)
Definition at line 31 of file EngineId.h.
|
inline |
Constructor (module name is required)
Definition at line 37 of file EngineId.h.
|
inline |
Converts the information in a module_name:instance_name string.
Definition at line 82 of file EngineId.h.
References instanceName, and moduleLabel.
|
inline |
Returns whether the instance label is defined.
Definition at line 48 of file EngineId.h.
References instanceName.
Referenced by operator std::string().
|
inline |
Returns whether the label is "global" (no module context)
Definition at line 45 of file EngineId.h.
References moduleLabel.
Referenced by rndm::SeedMaster< SEED >::print().
|
inline |
Converts the information in a module_name[.instance_name] string.
Definition at line 74 of file EngineId.h.
References hasInstanceName(), instanceName, and moduleLabel.
|
inline |
Lexicographic sort (module name first, then instance name)
Definition at line 64 of file EngineId.h.
References instanceName, and moduleLabel.
|
inline |
Returns true if both module and instance names match.
Definition at line 56 of file EngineId.h.
References instanceName, and moduleLabel.
|
inline |
Sets this ID to the specified global instance.
Definition at line 51 of file EngineId.h.
References instanceName, and moduleLabel.
|
static |
A constant to select a "global" flavour constructor.
Definition at line 28 of file EngineId.h.
std::string rndm::SeedMasterHelper::EngineId::instanceName |
instance name
Definition at line 85 of file EngineId.h.
Referenced by artName(), hasInstanceName(), operator std::string(), operator<(), operator==(), and setGlobal().
std::string rndm::SeedMasterHelper::EngineId::moduleLabel |
module label
Definition at line 84 of file EngineId.h.
Referenced by artName(), isGlobal(), operator std::string(), operator<(), operator==(), and setGlobal().