![]() |
ATLAS Offline Software
|
#include <IdDictRange.h>
Public Types | |
| enum | specification_type { unknown , by_value , by_values , by_label , by_labels , by_minmax } |
| enum | continuation_mode { none , has_next , has_previous , has_both , wrap_around } |
Public Member Functions | |
| IdDictRange (const std::string &field_name) | |
| Set name only; no range information. | |
| IdDictRange (const std::string &field_name, const std::string &label) | |
| By label. | |
| IdDictRange (const std::string &field_name, int value) | |
| By value. | |
| IdDictRange (const std::string &field_name, int minvalue, int maxvalue) | |
| By minmax. | |
| IdDictRange (const std::string &field_name, const std::vector< int > &values) | |
| By list of values. | |
| IdDictRange (const std::string &field_name, const std::vector< std::string > &labels) | |
| By list of labels. | |
| virtual | ~IdDictRange ()=default |
| const std::string & | field_name () const |
| const std::string & | label () const |
| const IdDictField * | field () const |
| specification_type | specification () const |
| const std::vector< int > & | values () const |
| const std::vector< std::string > & | labels () const |
| void | set_range (const std::string &label) |
| By label. | |
| void | set_range (int value) |
| By value. | |
| void | set_range (int minvalue, int maxvalue) |
| By minmax. | |
| void | set_range (const std::vector< int > &values) |
| By list of values. | |
| void | set_range (const std::vector< std::string > &labels) |
| By list of labels. | |
| void | set_prev (int prev) |
| Set previous value and adjust continuation mode. | |
| void | set_next (int next) |
| Set next value and adjust continuation mode. | |
| void | set_wrap_around () |
| Enable wraparound. | |
| virtual void | resolve_references (IdDictMgr &idd, IdDictDictionary &dictionary, IdDictRegion ®ion) override |
| virtual void | generate_implementation (const IdDictMgr &idd, IdDictDictionary &dictionary, IdDictRegion ®ion, std::string_view tag="") override |
| virtual Range | build_range () const override |
| virtual void | reset_implementation () |
| virtual bool | verify () const |
| virtual void | clear () |
Private Attributes | |
| std::string | m_field_name |
| IdDictField * | m_field {} |
| specification_type | m_specification {unknown} |
| std::string | m_tag |
| std::string | m_label |
| int | m_value {} |
| int | m_minvalue {} |
| int | m_maxvalue {} |
| int | m_prev_value {} |
| int | m_next_value {} |
| continuation_mode | m_continuation_mode {none} |
| std::vector< std::string > | m_labels |
| std::vector< int > | m_values |
| bool | m_resolved_references {} |
Definition at line 19 of file IdDictRange.h.
| Enumerator | |
|---|---|
| none | |
| has_next | |
| has_previous | |
| has_both | |
| wrap_around | |
Definition at line 29 of file IdDictRange.h.
| IdDictRange::IdDictRange | ( | const std::string & | field_name | ) |
By label.
Definition at line 23 of file IdDictRange.cxx.
| IdDictRange::IdDictRange | ( | const std::string & | field_name, |
| int | value ) |
By value.
Definition at line 32 of file IdDictRange.cxx.
| IdDictRange::IdDictRange | ( | const std::string & | field_name, |
| int | minvalue, | ||
| int | maxvalue ) |
By minmax.
Definition at line 41 of file IdDictRange.cxx.
| IdDictRange::IdDictRange | ( | const std::string & | field_name, |
| const std::vector< std::string > & | labels ) |
|
virtualdefault |
|
overridevirtual |
Implements IdDictRegionEntry.
Definition at line 237 of file IdDictRange.cxx.
|
virtualinherited |
Definition at line 29 of file IdDictRegionEntry.cxx.
|
inline |
Definition at line 157 of file IdDictRange.h.
|
inline |
Definition at line 143 of file IdDictRange.h.
|
overridevirtual |
Reimplemented from IdDictRegionEntry.
Definition at line 177 of file IdDictRange.cxx.
|
inline |
Definition at line 150 of file IdDictRange.h.
|
inline |
Definition at line 178 of file IdDictRange.h.
|
virtualinherited |
Reimplemented in IdDictDictionaryRef, IdDictRangeRef, and IdDictReference.
Definition at line 22 of file IdDictRegionEntry.cxx.
|
overridevirtual |
The range values were unspecified in the range element.
Therefore, the set of values must be obtained from the field definition (if it exists!!).
If the field is undefined, then too bad, this range will be dummy.
Reimplemented from IdDictRegionEntry.
Definition at line 132 of file IdDictRange.cxx.
| void IdDictRange::set_next | ( | int | next | ) |
Set next value and adjust continuation mode.
Definition at line 117 of file IdDictRange.cxx.
| void IdDictRange::set_prev | ( | int | prev | ) |
Set previous value and adjust continuation mode.
Definition at line 109 of file IdDictRange.cxx.
| void IdDictRange::set_range | ( | const std::string & | label | ) |
By label.
Definition at line 68 of file IdDictRange.cxx.
| void IdDictRange::set_range | ( | const std::vector< int > & | values | ) |
By list of values.
Definition at line 93 of file IdDictRange.cxx.
| void IdDictRange::set_range | ( | const std::vector< std::string > & | labels | ) |
By list of labels.
Definition at line 101 of file IdDictRange.cxx.
| void IdDictRange::set_range | ( | int | minvalue, |
| int | maxvalue ) |
By minmax.
Definition at line 84 of file IdDictRange.cxx.
| void IdDictRange::set_range | ( | int | value | ) |
By value.
Definition at line 76 of file IdDictRange.cxx.
| void IdDictRange::set_wrap_around | ( | ) |
Enable wraparound.
Definition at line 125 of file IdDictRange.cxx.
|
inline |
Definition at line 164 of file IdDictRange.h.
|
inline |
Definition at line 171 of file IdDictRange.h.
|
virtualinherited |
Reimplemented in IdDictDictionaryRef, IdDictRangeRef, and IdDictReference.
Definition at line 25 of file IdDictRegionEntry.cxx.
|
private |
Definition at line 134 of file IdDictRange.h.
|
private |
Definition at line 124 of file IdDictRange.h.
|
private |
Definition at line 123 of file IdDictRange.h.
|
private |
Definition at line 128 of file IdDictRange.h.
|
private |
Definition at line 135 of file IdDictRange.h.
|
private |
Definition at line 131 of file IdDictRange.h.
|
private |
Definition at line 130 of file IdDictRange.h.
|
private |
Definition at line 133 of file IdDictRange.h.
|
private |
Definition at line 132 of file IdDictRange.h.
|
private |
Definition at line 138 of file IdDictRange.h.
|
private |
Definition at line 126 of file IdDictRange.h.
|
private |
Definition at line 127 of file IdDictRange.h.
|
private |
Definition at line 129 of file IdDictRange.h.
|
private |
Definition at line 136 of file IdDictRange.h.