ATLAS Offline Software
Loading...
Searching...
No Matches
IdDictReference.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4
9#include "src/Debugger.h"
10
11#include <iostream>
12
13IdDictReference::IdDictReference (const std::string& subregion_name)
14 :
15 m_subregion_name(subregion_name),
16 m_subregion(nullptr),
18}
19
25
28
30 IdDictDictionary& dictionary,
31 IdDictRegion& /*region*/) {
33 m_subregion = dictionary.find_subregion(m_subregion_name);
35 }
36}
37
39 IdDictDictionary& dictionary,
40 IdDictRegion& region,
41 const std::string& tag) {
42 if (Debugger::debug()) {
43 std::cout << "IdDictReference::generate_implementation>" << std::endl;
44 }
45
46 if (m_subregion != 0) m_subregion->generate_implementation(idd, dictionary, region, tag);
47}
48
50 if (m_subregion != 0) m_subregion->reset_implementation();
51}
52
54 return(true);
55}
56
59
60 result = m_subregion->build_range();
61
62
63 return(result);
64}
static bool debug()
Definition Debugger.h:18
std::string m_subregion_name
IdDictSubRegion * m_subregion
virtual Range build_range() const override
virtual void generate_implementation(const IdDictMgr &idd, IdDictDictionary &dictionary, IdDictRegion &region, const std::string &tag="") override
IdDictReference(const std::string &subregion_name)
virtual void resolve_references(IdDictMgr &idd, IdDictDictionary &dictionary, IdDictRegion &region) override
virtual void reset_implementation() override
virtual bool verify() const override
virtual ~IdDictReference()
A Range describes the possible ranges for the field values of an ExpandedIdentifier.