ATLAS Offline Software
Loading...
Searching...
No Matches
ExpandedIdentifier.cxx File Reference
#include "Identifier/ExpandedIdentifier.h"
#include "GaudiKernel/MsgStream.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

template<typename Stream, typename CHAR>
static void stream_vector (Stream &out, const ExpandedIdentifier::element_vector &v, CHAR sep)
std::ostream & operator<< (std::ostream &out, const ExpandedIdentifier &id)

Function Documentation

◆ operator<<()

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

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

76 {
77 stream_vector(out, id.m_fields, '/');
78 return out;
79}
static void stream_vector(Stream &out, const ExpandedIdentifier::element_vector &v, CHAR sep)

◆ stream_vector()

template<typename Stream, typename CHAR>
void stream_vector ( Stream & out,
const ExpandedIdentifier::element_vector & v,
CHAR sep )
static

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

17 {
18 if (v.empty()) return;
19
20 out << v.front();
21 for (auto value : v | std::views::drop(1)) {
22 out << sep << value;
23 }
24}