ATLAS Offline Software
Loading...
Searching...
No Matches
IdDictAltRegions.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef IDDICT_IdDictAltRegions_H
6#define IDDICT_IdDictAltRegions_H
7
9
10#include <string>
11#include <map>
12#include <memory>
13
14class Range;
15class IdDictMgr;
17class IdDictRegion;
18
19
20
22public:
23 // ==================================
24 //** @name Constructor/destructor
25 // @{
26
29
30
32 // ==================================
33 //** @name Simple accessors.
34 // @{
35
37 virtual std::string group_name () const override;
38
41
42
44 // ==================================
45 //** @name Methods used to initialize the object.
46 // @{
47
49 void add_region (std::unique_ptr<IdDictRegion> region);
50
52 void select_region (const std::string& name);
53
54
55 virtual void set_index (size_t index) override;
56 virtual Range build_range () const override;
57 virtual void resolve_references (IdDictMgr& idd,
58 IdDictDictionary& dictionary) override;
59 virtual void generate_implementation (const IdDictMgr& idd,
60 IdDictDictionary& dictionary,
61 const std::string& tag = "") override;
62 virtual void reset_implementation () override;
63 virtual bool verify () const override;
64 virtual void clear () override;
65
66
68
69
70private:
71 using map_type = std::map<std::string, std::unique_ptr<IdDictRegion> >;
72 using map_iterator = map_type::iterator;
73 using value_type = map_type::value_type;
74
77};
78
79
81inline
86
87
88#endif
void select_region(const std::string &name)
Select the named region.
IdDictRegion * m_selected_region
void add_region(std::unique_ptr< IdDictRegion > region)
Add a new region, with key given by the tag.
virtual void clear() override
virtual void set_index(size_t index) override
virtual void resolve_references(IdDictMgr &idd, IdDictDictionary &dictionary) override
virtual void generate_implementation(const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="") override
map_type::iterator map_iterator
virtual Range build_range() const override
virtual ~IdDictAltRegions()
IdDictRegion * selected_region()
Currently selected region.
virtual void reset_implementation() override
map_type::value_type value_type
virtual bool verify() const override
virtual std::string group_name() const override
Group name for this region.
std::map< std::string, std::unique_ptr< IdDictRegion > > map_type
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition index.py:1