ATLAS Offline Software
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 
9 
26 class IdContext{
27 public:
28  //
30  //
31  IdContext() = default;
38  //
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 
51 
52 private:
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
67  m_prefix = prefix;
70 }
71 
72 #endif // IDENTIFIER_IDCONTEXT_H
IdContext::IdContext
IdContext()=default
IdContext::size_type
ExpandedIdentifier::size_type size_type
Definition: IdContext.h:29
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:102
IdContext::m_end_index
size_type m_end_index
Definition: IdContext.h:55
ExpandedIdentifier.h
IdContext::m_begin_index
size_type m_begin_index
Definition: IdContext.h:54
IdContext::set
void set(const ExpandedIdentifier &prefix, size_type begin_index, size_type end_index)
Set all the private members.
Definition: IdContext.h:66
IdContext::begin_index
size_type begin_index() const
Definition: IdContext.h:45
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
IdContext::m_prefix
ExpandedIdentifier m_prefix
Definition: IdContext.h:53
ExpandedIdentifier::size_type
boost::container::small_vector< element_type, 12 >::size_type size_type
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:112
IdContext::prefix_id
const ExpandedIdentifier & prefix_id() const
Accessors.
Definition: IdContext.h:44
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26