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