ATLAS Offline Software
Loading...
Searching...
No Matches
IdDictSubRegion.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4
5
9#include "src/Debugger.h"
10#include <iostream>
11
12
14 const std::string& group,
15 const std::string& tag)
16 : IdDictRegion (name, group, tag)
17{
18}
19
21
24
25void
27 IdDictDictionary& /*dictionary*/,
28 const std::string& /*tag*/) {
29 std::cout << "IdDictSubRegion::generate_implementation - SHOULD NEVER BE CALLED " << std::endl;
30}
31
32void
34 IdDictDictionary& dictionary,
35 IdDictRegion& region,
36 const std::string& tag) {
37 if (Debugger::debug()) {
38 std::cout << "IdDictSubRegion::generate_implementation>" << std::endl;
39 }
40
41 // NOTE: we DO NOT protect this method with
42 // m_generated_implementation because a subregion is a "reference"
43 // and must be looped over to fully implement a region.
44
45 for (auto& entry : m_entries) {
46 entry->generate_implementation(idd, dictionary, region, tag);
47 }
48}
49
50void
52 for (auto& entry : m_entries) {
53 entry->reset_implementation();
54 }
55}
static bool debug()
Definition Debugger.h:18
IdDictRegion(const std::string &name, const std::string &group, const std::string &tag)
const std::string & name() const
const IdDictRegionEntry & entry(size_t i) const
std::vector< std::unique_ptr< IdDictRegionEntry > > m_entries
const std::string & tag() const
virtual void generate_implementation(const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="") override
IdDictSubRegion & operator=(IdDictSubRegion &&)
virtual ~IdDictSubRegion()
IdDictSubRegion(const std::string &name, const std::string &group, const std::string &tag)
virtual void reset_implementation() override