ATLAS Offline Software
Loading...
Searching...
No Matches
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
7
8#include <iostream>
9#include <format>
10
11
12std::string Identifier32::getString() const{
13 std::string s = std::format("0x{:x}", m_id);
14 return s;
15}
16
17void Identifier32::show () const{
18 std::cout << *this;
19}
20
21std::ostream & operator << (std::ostream &out, const Identifier32 &c){
22 out<<std::string(c);
23 return out;
24}
25
26
27
std::ostream & operator<<(std::ostream &out, const Identifier32 &c)
std::string getString() const
Provide a string form of the identifier - hexadecimal.
void show() const
Print out in hex form.
value_type m_id