ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
Identifier
Identifier
IdContext.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef IDENTIFIER_IDCONTEXT_H
6
#define IDENTIFIER_IDCONTEXT_H
7
8
#include "
Identifier/ExpandedIdentifier.h
"
9
25
26
class
IdContext
{
27
public
:
28
//
29
using
size_type
=
ExpandedIdentifier::size_type
;
30
//
31
IdContext
() =
default
;
33
IdContext
(
size_type
begin_index
,
size_type
end_index
);
35
IdContext
(
const
ExpandedIdentifier
& prefix,
36
size_type
begin_index
,
37
size_type
end_index
);
38
//
39
IdContext
(
ExpandedIdentifier
&& prefix,
40
size_type
begin_index
,
41
size_type
end_index
);
42
44
inline
const
ExpandedIdentifier
&
prefix_id
()
const
{
return
m_prefix
;}
45
inline
size_type
begin_index
()
const
{
return
m_begin_index
;}
46
inline
size_type
end_index
()
const
{
return
m_end_index
;};
48
50
void
set
(
const
ExpandedIdentifier
& prefix,
size_type
begin_index
,
size_type
end_index
);
51
52
private
:
53
ExpandedIdentifier
m_prefix
{};
54
size_type
m_begin_index
{};
55
size_type
m_end_index
{};
56
};
57
58
59
inline
60
IdContext::IdContext
(
size_type
begin_index
,
size_type
end_index
):
61
m_begin_index
(
begin_index
),
62
m_end_index
(
end_index
){
/* */
}
63
64
65
inline
void
66
IdContext::set
(
const
ExpandedIdentifier
& prefix,
size_type
begin_index
,
size_type
end_index
){
67
m_prefix
= prefix;
68
m_begin_index
=
begin_index
;
69
m_end_index
=
end_index
;
70
}
71
72
#endif
// IDENTIFIER_IDCONTEXT_H
ExpandedIdentifier.h
ExpandedIdentifier
Definition
DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:105
ExpandedIdentifier::size_type
element_vector::size_type size_type
Definition
DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:115
IdContext::begin_index
size_type begin_index() const
Definition
IdContext.h:45
IdContext::m_prefix
ExpandedIdentifier m_prefix
Definition
IdContext.h:53
IdContext::m_end_index
size_type m_end_index
Definition
IdContext.h:55
IdContext::end_index
size_type end_index() const
Definition
IdContext.h:46
IdContext::size_type
ExpandedIdentifier::size_type size_type
Definition
IdContext.h:29
IdContext::m_begin_index
size_type m_begin_index
Definition
IdContext.h:54
IdContext::prefix_id
const ExpandedIdentifier & prefix_id() const
Accessors.
Definition
IdContext.h:44
IdContext::IdContext
IdContext()=default
IdContext::set
void set(const ExpandedIdentifier &prefix, size_type begin_index, size_type end_index)
Set all the private members.
Definition
IdContext.h:66
Generated on
for ATLAS Offline Software by
1.17.0