ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
IdContext Class Reference

This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash versions (Identifier32 or IdentifierHash). This context is composed of. More...

#include <IdContext.h>

Collaboration diagram for IdContext:

Public Types

using size_type = ExpandedIdentifier::size_type
 

Public Member Functions

 IdContext ()=default
 
 IdContext (size_type begin_index, size_type end_index)
 Construct with no prefix. More...
 
 IdContext (const ExpandedIdentifier &prefix, size_type begin_index, size_type end_index)
 Constructors with full initialization of members. More...
 
 IdContext (ExpandedIdentifier &&prefix, size_type begin_index, size_type end_index)
 
void set (const ExpandedIdentifier &prefix, size_type begin_index, size_type end_index)
 Set all the private members. More...
 
const ExpandedIdentifierprefix_id () const
 Accessors. More...
 
size_type begin_index () const
 
size_type end_index () const
 

Private Attributes

ExpandedIdentifier m_prefix {}
 
size_type m_begin_index {}
 
size_type m_end_index {}
 

Detailed Description

This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash versions (Identifier32 or IdentifierHash). This context is composed of.

1) begin and end indices of fields that are stored in the compact/hash id 2) a possible "prefix" identifier for cases where the begin index is not 0 or the top level of the expaneded identifier.

The IdContext is needed when only some of the identifier levels are to encoded in the compact/hash ids.

Definition at line 26 of file IdContext.h.

Member Typedef Documentation

◆ size_type

Definition at line 29 of file IdContext.h.

Constructor & Destructor Documentation

◆ IdContext() [1/4]

IdContext::IdContext ( )
default

◆ IdContext() [2/4]

IdContext::IdContext ( size_type  begin_index,
size_type  end_index 
)
inline

Construct with no prefix.

Definition at line 60 of file IdContext.h.

60  :
62  m_end_index(end_index){/* */}

◆ IdContext() [3/4]

IdContext::IdContext ( const ExpandedIdentifier prefix,
size_type  begin_index,
size_type  end_index 
)

Constructors with full initialization of members.

Definition at line 9 of file IdContext.cxx.

12  :
16 {}

◆ IdContext() [4/4]

IdContext::IdContext ( ExpandedIdentifier &&  prefix,
size_type  begin_index,
size_type  end_index 
)

Definition at line 19 of file IdContext.cxx.

22  :
23  m_prefix(std::move(prefix)),
26 {}

Member Function Documentation

◆ begin_index()

size_type IdContext::begin_index ( ) const
inline

Definition at line 45 of file IdContext.h.

45 { return m_begin_index;}

◆ end_index()

size_type IdContext::end_index ( ) const
inline

Definition at line 46 of file IdContext.h.

46 {return m_end_index;};

◆ prefix_id()

const ExpandedIdentifier& IdContext::prefix_id ( ) const
inline

Accessors.

Definition at line 44 of file IdContext.h.

44 { return m_prefix;}

◆ set()

void IdContext::set ( const ExpandedIdentifier prefix,
size_type  begin_index,
size_type  end_index 
)
inline

Set all the private members.

Definition at line 66 of file IdContext.h.

66  {
67  m_prefix = prefix;
70 }

Member Data Documentation

◆ m_begin_index

size_type IdContext::m_begin_index {}
private

Definition at line 54 of file IdContext.h.

◆ m_end_index

size_type IdContext::m_end_index {}
private

Definition at line 55 of file IdContext.h.

◆ m_prefix

ExpandedIdentifier IdContext::m_prefix {}
private

Definition at line 53 of file IdContext.h.


The documentation for this class was generated from the following files:
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
IdContext::m_end_index
size_type m_end_index
Definition: IdContext.h:55
IdContext::m_begin_index
size_type m_begin_index
Definition: IdContext.h:54
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