ATLAS Offline Software
Loading...
Searching...
No Matches
ExpandedIdentifier.cxx File Reference
#include "Identifier/ExpandedIdentifier.h"
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <charconv>
#include <stdexcept>
#include <ranges>
Include dependency graph for DetectorDescription/Identifier/src/ExpandedIdentifier.cxx:

Go to the source code of this file.

Functions

static std::string show_vector (const ExpandedIdentifier::element_vector &v, const std::string &sep="/")
std::ostream & operator<< (std::ostream &out, const ExpandedIdentifier &x)

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const ExpandedIdentifier & x )

Definition at line 64 of file DetectorDescription/Identifier/src/ExpandedIdentifier.cxx.

64 {
65 out<<std::string(x);
66 return out;
67}
#define x

◆ show_vector()

std::string show_vector ( const ExpandedIdentifier::element_vector & v,
const std::string & sep = "/" )
static

Definition at line 16 of file DetectorDescription/Identifier/src/ExpandedIdentifier.cxx.

16 {
17 if (v.empty()) return {};
18 std::string result = std::to_string(v.front());
19 for (auto value : v | std::views::drop(1)){
20 result+= sep + std::to_string(value);
21 }
22 return result;
23}