Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
BlockName.cpp File Reference
#include "BlockName.h"
Include dependency graph for BlockName.cpp:

Go to the source code of this file.

Functions

BlockName operator+ (const std::string &lhs, const BlockName &rhs)
 
std::ostream & operator<< (std::ostream &os, const BlockName &block)
 

Function Documentation

◆ operator+()

BlockName operator+ ( const std::string &  lhs,
const BlockName rhs 
)

Creates a new BlockName whose aliases are obtained by prefixing each alias of rhs with lhs.

Example:

BlockName b{"MASS","mass"};
BlockName c = "BLOCK_" + b; // aliases: {"BLOCK_MASS", "BLOCK_mass"}
Block identifier with alias support.
Definition BlockName.h:59
Parameters
lhsPrefix string.
rhsBlockName whose aliases will be prefixed.
Returns
A new BlockName with concatenated aliases.

Definition at line 74 of file BlockName.cpp.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const BlockName block 
)

All aliases are written to the stream, separated by '/'. The order is determined by the iteration order of the internal unordered_set and is therefore not guaranteed to be stable.

Example output: "SMINPUTS/sminputs".

Parameters
osOutput stream.
blockBlockName to print.
Returns
Reference to the output stream.

Definition at line 82 of file BlockName.cpp.