ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
Identifier
src
Identifier32.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
Identifier/Identifier32.h
"
7
8
#include "GaudiKernel/MsgStream.h"
9
#include <format>
10
#include <iostream>
11
12
13
14
std::string
Identifier32::getString
()
const
{
15
std::string s = std::format(
"0x{:x}"
,
m_id
);
16
return
s;
17
}
18
19
void
20
Identifier32::show
(std::ostream & out)
const
{
21
out << *
this
;
22
}
23
24
void
25
Identifier32::show
(MsgStream & out)
const
{
26
out <<
getString
();
27
}
28
29
30
std::ostream &
31
operator <<
(std::ostream &out,
const
Identifier32
&c){
32
out<<std::string(c);
33
return
out;
34
}
35
36
37
operator<<
std::ostream & operator<<(std::ostream &out, const Identifier32 &c)
Definition
Identifier32.cxx:31
Identifier32.h
Identifier32
Definition
Identifier32.h:28
Identifier32::getString
std::string getString() const
Provide a string form of the identifier - hexadecimal.
Definition
Identifier32.cxx:14
Identifier32::m_id
value_type m_id
Definition
Identifier32.h:67
Identifier32::show
void show(std::ostream &out) const
Print out in hex form.
Definition
Identifier32.cxx:20
Generated on
for ATLAS Offline Software by
1.17.0