 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef IDDICT_IdDictDictionary_H
6 #define IDDICT_IdDictDictionary_H
9 #include "Identifier/Identifier.h"
41 const std::string&
version =
"",
42 const std::string&
date =
"",
43 const std::string&
author =
"");
53 const std::string&
name()
const;
56 const std::string&
version()
const;
141 const std::string& last_field =
"")
const;
152 const std::string& last_field =
"")
const;
199 size_t first_field_index=0)
const;
235 const std::string&
sep,
236 std::string& unpackedId)
const;
247 size_t first_field_index,
262 size_t first_field_index,
263 size_t begin_field_index,
264 size_t end_field_index,
366 inline const std::string&
373 inline const std::string&
JetConstituentVector::iterator iterator
IdDictRegion * find_region(const std::string ®ion_name) const
void dump() const
Dump regions and trees for each group.
const std::vector< IdDictRegion * > & all_regions()
Non-const access to vector of all regions.
MultiRange build_multirange() const
Get MultiRange for full dictionary.
int reset(size_t index1, size_t index2, size_t region_index, Identifier &packedId) const
Reset fields from index1 to index2.
const std::string & version() const
Dictionary version.
void generate_implementation(const IdDictMgr &idd, const std::string &tag="")
std::vector< IdDictGroup * > m_groups
entries_type::const_iterator entries_const_it
const IdDictRegion & region(size_t i) const
Region at index i.
IdDictLabel * find_label(const std::string &field, const std::string &label) const
std::vector< IdDictDictEntry * > entries_type
std::vector< IdDictGroup * > groups_type
void set_dict_tag(const std::string &tag)
Set the dictionary tag.
const std::string & name() const
Dictionary name.
const std::string & file_name() const
Access to file name.
int pack32(const ExpandedIdentifier &id, size_t index1, size_t index2, Identifier &packedId) const
Pack to 32bits the subset of id between (inclusive) index1 and index2 - this is generic,...
IdDictField * find_field(const std::string &name) const
void resolve_references(const IdDictMgr &idd)
bool verify() const
Here, we verify global constraints : (this must only be applied after the resolve_references and gene...
void reset_implementation()
IdDictDictionary * m_parent_dict
std::map< std::string, IdDictField * > m_fields
IdDictGroup * find_group(const std::string &group_name) const
bool m_generated_implementation
void set_file_name(const std::string &name)
Set file name.
groups_type::iterator groups_it
std::vector< IdDictRegion * > m_regions
groups_type::const_iterator groups_const_it
void add_subdictionary_name(const std::string &name)
regions_type::const_iterator regions_const_it
bool do_checks() const
Checks are performed by default in debug compilation and NOT in optimized compilation.
int get_label_value(const std::string &field, const std::string &label, int &value) const
int unpack(const std::string &group, const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier for a given group, considering the provided prefix...
A MultiRange combines several Ranges.
void add_region(IdDictRegion *region)
void add_field(IdDictField *field)
bool do_neighbours() const
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
regions_type::iterator regions_it
std::vector< IdDictRegion * > regions_type
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Identifier::size_type size_type
entries_type::iterator entries_it
IdDictSubRegion * find_subregion(const std::string &subregion_name) const
std::vector< std::string > m_subdictionary_names
const std::string & dict_tag() const
Access to the dictionary tag.
std::map< std::string, IdDictSubRegion * > m_subregions
void add_dictentry(IdDictDictEntry *entry)
void set_parent_dict(IdDictDictionary *parent_dict)
unsigned long long value_type
void set_do_neighbours(bool do_neighbours)
unsigned long long size_type
size_t n_regions() const
Number of contained regions.
void integrate_bits()
Set up integral of bits for efficient unpacking.
int copy(const Identifier &idin, size_t first_field_index, size_t begin_field_index, size_t end_field_index, size_t region_index, Identifier &idout) const
Copy a number of fields of the value_type id into another value_type id.
void add_subregion(IdDictSubRegion *subregion)
std::vector< IdDictRegion * > m_all_regions
void set_do_checks(bool do_checks)