#include <IdDictRange.h>
|
| | IdDictRange (const std::string &field_name) |
| | Set name only; no range information. More...
|
| |
| | IdDictRange (const std::string &field_name, const std::string &label) |
| | By label. More...
|
| |
| | IdDictRange (const std::string &field_name, int value) |
| | By value. More...
|
| |
| | IdDictRange (const std::string &field_name, int minvalue, int maxvalue) |
| | By minmax. More...
|
| |
| | IdDictRange (const std::string &field_name, const std::vector< int > &values) |
| | By list of values. More...
|
| |
| | IdDictRange (const std::string &field_name, const std::vector< std::string > &labels) |
| | By list of labels. More...
|
| |
| 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. More...
|
| |
| void | set_range (int value) |
| | By value. More...
|
| |
| void | set_range (int minvalue, int maxvalue) |
| | By minmax. More...
|
| |
| void | set_range (const std::vector< int > &values) |
| | By list of values. More...
|
| |
| void | set_range (const std::vector< std::string > &labels) |
| | By list of labels. More...
|
| |
| void | set_prev (int prev) |
| | Set previous value and adjust continuation mode. More...
|
| |
| void | set_next (int next) |
| | Set next value and adjust continuation mode. More...
|
| |
| void | set_wrap_around () |
| | Enable wraparound. More...
|
| |
| virtual void | resolve_references (const IdDictMgr &idd, IdDictDictionary &dictionary, IdDictRegion ®ion) override |
| |
| virtual void | generate_implementation (const IdDictMgr &idd, IdDictDictionary &dictionary, IdDictRegion ®ion, const std::string &tag="") override |
| |
| virtual Range | build_range () const override |
| |
| virtual void | reset_implementation () |
| |
| virtual bool | verify () const |
| |
| virtual void | clear () |
| |
Definition at line 18 of file IdDictRange.h.
◆ continuation_mode
| Enumerator |
|---|
| none | |
| has_next | |
| has_previous | |
| has_both | |
| wrap_around | |
Definition at line 28 of file IdDictRange.h.
◆ specification_type
| Enumerator |
|---|
| unknown | |
| by_value | |
| by_values | |
| by_label | |
| by_labels | |
| by_minmax | |
Definition at line 20 of file IdDictRange.h.
◆ IdDictRange() [1/6]
| IdDictRange::IdDictRange |
( |
const std::string & |
field_name | ) |
|
◆ IdDictRange() [2/6]
| IdDictRange::IdDictRange |
( |
const std::string & |
field_name, |
|
|
const std::string & |
label |
|
) |
| |
◆ IdDictRange() [3/6]
| IdDictRange::IdDictRange |
( |
const std::string & |
field_name, |
|
|
int |
value |
|
) |
| |
◆ IdDictRange() [4/6]
| IdDictRange::IdDictRange |
( |
const std::string & |
field_name, |
|
|
int |
minvalue, |
|
|
int |
maxvalue |
|
) |
| |
◆ IdDictRange() [5/6]
| IdDictRange::IdDictRange |
( |
const std::string & |
field_name, |
|
|
const std::vector< int > & |
values |
|
) |
| |
◆ IdDictRange() [6/6]
| IdDictRange::IdDictRange |
( |
const std::string & |
field_name, |
|
|
const std::vector< std::string > & |
labels |
|
) |
| |
◆ ~IdDictRange()
| virtual IdDictRange::~IdDictRange |
( |
| ) |
|
|
virtualdefault |
◆ build_range()
| Range IdDictRange::build_range |
( |
| ) |
const |
|
overridevirtual |
◆ clear()
| void IdDictRegionEntry::clear |
( |
| ) |
|
|
virtualinherited |
◆ field()
◆ field_name()
| const std::string & IdDictRange::field_name |
( |
| ) |
const |
|
inline |
◆ generate_implementation()
Reimplemented from IdDictRegionEntry.
Definition at line 178 of file IdDictRange.cxx.
188 std::cout <<
"IdDictRange::generate_implementation>" << std::endl;
192 impl.set_range(
this);
199 <<
" region #" << region.
index()
201 <<
" tag " << region.
tag()
208 std::cout <<
"IdDictRange::generate_implementation: index >= impl size - "
◆ label()
| const std::string & IdDictRange::label |
( |
| ) |
const |
|
inline |
◆ labels()
| const std::vector< std::string > & IdDictRange::labels |
( |
| ) |
const |
|
inline |
◆ reset_implementation()
| void IdDictRegionEntry::reset_implementation |
( |
| ) |
|
|
virtualinherited |
◆ resolve_references()
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.
◆ set_next()
| void IdDictRange::set_next |
( |
int |
next | ) |
|
Set next value and adjust continuation mode.
Definition at line 117 of file IdDictRange.cxx.
◆ set_prev()
| void IdDictRange::set_prev |
( |
int |
prev | ) |
|
Set previous value and adjust continuation mode.
Definition at line 109 of file IdDictRange.cxx.
◆ set_range() [1/5]
| void IdDictRange::set_range |
( |
const std::string & |
label | ) |
|
◆ set_range() [2/5]
| void IdDictRange::set_range |
( |
const std::vector< int > & |
values | ) |
|
◆ set_range() [3/5]
| void IdDictRange::set_range |
( |
const std::vector< std::string > & |
labels | ) |
|
◆ set_range() [4/5]
| void IdDictRange::set_range |
( |
int |
minvalue, |
|
|
int |
maxvalue |
|
) |
| |
◆ set_range() [5/5]
| void IdDictRange::set_range |
( |
int |
value | ) |
|
◆ set_wrap_around()
| void IdDictRange::set_wrap_around |
( |
| ) |
|
◆ specification()
◆ values()
| const std::vector< int > & IdDictRange::values |
( |
| ) |
const |
|
inline |
◆ verify()
| bool IdDictRegionEntry::verify |
( |
| ) |
const |
|
virtualinherited |
◆ m_continuation_mode
◆ m_field
◆ m_field_name
| std::string IdDictRange::m_field_name |
|
private |
◆ m_label
| std::string IdDictRange::m_label |
|
private |
◆ m_labels
| std::vector<std::string> IdDictRange::m_labels |
|
private |
◆ m_maxvalue
| int IdDictRange::m_maxvalue {} |
|
private |
◆ m_minvalue
| int IdDictRange::m_minvalue {} |
|
private |
◆ m_next_value
| int IdDictRange::m_next_value {} |
|
private |
◆ m_prev_value
| int IdDictRange::m_prev_value {} |
|
private |
◆ m_resolved_references
| bool IdDictRange::m_resolved_references {} |
|
private |
◆ m_specification
◆ m_tag
| std::string IdDictRange::m_tag |
|
private |
◆ m_value
| int IdDictRange::m_value {} |
|
private |
◆ m_values
| std::vector<int> IdDictRange::m_values |
|
private |
The documentation for this class was generated from the following files: