10 #ifndef NURANDOM_RANDOMUTILS_PROVIDERS_ENGINEID_H 11 #define NURANDOM_RANDOMUTILS_PROVIDERS_ENGINEID_H 1 19 namespace SeedMasterHelper {
31 EngineId(std::string
const& mod, std::string
const& inst = std::string()):
74 operator std::string()
const 89 inline std::ostream&
operator<<
91 {
return ost << std::string(
id); }
97 #endif // NURANDOM_RANDOMUTILS_PROVIDERS_ENGINEID_H std::string artName() const
Converts the information in a module_name:instance_name string.
bool hasInstanceName() const
Returns whether the instance label is defined.
std::string moduleLabel
module label
static constexpr Global_t global
A constant to select a "global" flavour constructor.
structure to identify a "global" flavour constructor
Identifier for a engine, made of module name and optional instance name.
bool operator<(EngineId const &rhs) const
Lexicographic sort (module name first, then instance name)
EngineId(std::string const &inst, Global_t)
Constructor (module name is required)
EngineId(std::string const &mod, std::string const &inst=std::string())
Constructor (module name is required)
void setGlobal(std::string inst)
Sets this ID to the specified global instance.
std::string instanceName
instance name
bool isGlobal() const
Returns whether the label is "global" (no module context)
bool operator==(EngineId const &rhs) const
Returns true if both module and instance names match.