 |
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"
76 const std::string& last_field =
"")
const;
87 const std::string& last_field =
"")
const;
128 size_t first_field_index=0)
const;
158 const std::string&
sep,
159 std::string& unpackedId)
const;
170 size_t first_field_index,
185 size_t first_field_index,
186 size_t begin_field_index,
187 size_t end_field_index,
204 const std::string&
file_name (
void)
const;
207 const std::string&
dict_tag (
void)
const;
254 inline const std::string&
261 inline const std::string&
JetConstituentVector::iterator iterator
IdDictRegion * find_region(const std::string ®ion_name) const
const std::string & dict_tag(void) const
Access to the dictionary tag.
MultiRange build_multirange() const
Get MultiRange for full dictionary.
int unpack(const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier, considering the provided prefix (result will incl...
int reset(size_t index1, size_t index2, size_t region_index, Identifier &packedId) const
Reset fields from index1 to index2.
bool do_neighbours(void) const
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
Identifier::value_type value_type
std::vector< IdDictDictEntry * > entries_type
void generate_implementation(const IdDictMgr &idd, const std::string &tag="")
std::vector< IdDictGroup * > m_groups
bool do_checks(void) const
Checks are performed by default in debug compilation and NOT in optimized compilation.
IdDictLabel * find_label(const std::string &field, const std::string &label) const
groups_type::const_iterator groups_const_it
std::vector< IdDictRegion * > regions_type
void set_dict_tag(const std::string &tag)
Set the dictionary tag.
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
Identifier::size_type size_type
groups_type::iterator groups_it
std::map< std::string, IdDictField * > m_fields
IdDictGroup * find_group(const std::string &group_name) const
std::vector< IdDictGroup * > groups_type
bool m_generated_implementation
void set_file_name(const std::string &name)
Set file name.
std::vector< IdDictRegion * > m_regions
void add_subdictionary_name(const std::string &name)
regions_type::iterator regions_it
regions_type::const_iterator regions_const_it
const std::string & file_name(void) const
Access to file name.
int get_label_value(const std::string &field, const std::string &label, int &value) const
A MultiRange combines several Ranges.
entries_type::iterator entries_it
void add_field(IdDictField *field)
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
IdDictSubRegion * find_subregion(const std::string &subregion_name) const
std::vector< std::string > m_subdictionary_names
std::map< std::string, IdDictSubRegion * > m_subregions
void add_dictentry(IdDictDictEntry *entry)
unsigned long long value_type
void set_do_neighbours(bool do_neighbours)
unsigned long long size_type
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)
entries_type::const_iterator entries_const_it
std::vector< IdDictRegion * > m_all_regions
void set_do_checks(bool do_checks)