32 p.second->set_index(
index);
42 p.second->resolve_references(idd, dictionary);
49 const std::string& tag) {
54 std::cout <<
"IdDictAltRegions::generate_implementation could not find region for tag "
55 << tag <<
" Keys in map " << std::endl;
56 for (
int i = 0;
const auto& p :
m_regions) {
57 std::cout <<
" i " << i++ <<
" key " << p.first;
59 std::cout << std::endl;
93 m_regions[region->tag()] = std::move(region);
102 std::cout <<
"IdDictAltRegion::select_region could not find region \""
103 << name <<
"\". Keys in map " << std::endl;
105 std::cout <<
" key " << p.first;
107 std::cout << std::endl;
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()
virtual void reset_implementation() override
virtual bool verify() const override
virtual std::string group_name() const override
Group name for this region.
A Range describes the possible ranges for the field values of an ExpandedIdentifier.