|
OpenASIP 2.2
|
#include <OptionValue.hh>


Public Member Functions | |
| IntegerListOptionValue (std::vector< int > values) | |
| virtual | ~IntegerListOptionValue () |
| virtual int | integerValue (int index=0) const |
| virtual int | listSize () const |
| virtual void | setIntegerListValue (std::vector< int > values) |
Public Member Functions inherited from OptionValue | |
| OptionValue () | |
| virtual | ~OptionValue () |
| virtual void | setStringValue (const std::string &) |
| virtual void | setIntegerValue (int) |
| virtual void | setUnsignedIntegerValue (unsigned) |
| virtual void | setRealValue (double) |
| virtual void | setBoolValue (bool) |
| virtual std::string | stringValue (int index=0) const |
| virtual double | realValue () const |
| virtual bool | isFlagOn () const |
| virtual bool | isFlagOff () const |
Private Member Functions | |
| IntegerListOptionValue (const IntegerListOptionValue &) | |
| Copying not allowed. | |
| IntegerListOptionValue & | operator= (const IntegerListOptionValue &) |
| Assignment not allowed. | |
Private Attributes | |
| std::vector< int > | values_ |
| The value of option. | |
OptionValue that has list of integers as value.
Definition at line 210 of file OptionValue.hh.
| IntegerListOptionValue::IntegerListOptionValue | ( | std::vector< int > | values | ) |
Constructor.
| value | The values of integer list options. |
Definition at line 402 of file OptionValue.cc.
References values_.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the value from the given index of integer list.
The index must be given between 0 and the size of value vector - 1
| WrongSubclass | Is never thrown by this function. |
| OutOfRange | If the index is out of the range. |
Reimplemented from OptionValue.
Definition at line 433 of file OptionValue.cc.
References values_.
|
virtual |
Returns the size of the integer list.
Reimplemented from OptionValue.
Definition at line 447 of file OptionValue.cc.
References values_.
|
private |
Assignment not allowed.
|
virtual |
Sets new value for integer list option.
| value | New value for the integer list option. |
| WrongSubclass | Is never thrown by this function. |
Reimplemented from OptionValue.
Definition at line 419 of file OptionValue.cc.
References values_.
|
private |
The value of option.
Definition at line 226 of file OptionValue.hh.
Referenced by IntegerListOptionValue(), integerValue(), listSize(), and setIntegerListValue().