OpenASIP
2.0
|
#include <OptionValue.hh>
Public Member Functions | |
IntegerOptionValue (int value) | |
virtual | ~IntegerOptionValue () |
virtual int | integerValue (int index=0) const |
virtual void | setIntegerValue (int value) |
Public Member Functions inherited from OptionValue | |
OptionValue () | |
virtual | ~OptionValue () |
virtual void | setStringValue (const std::string &) |
virtual void | setUnsignedIntegerValue (unsigned) |
virtual void | setRealValue (double) |
virtual void | setBoolValue (bool) |
virtual void | setIntegerListValue (std::vector< int > values) |
virtual std::string | stringValue (int index=0) const |
virtual double | realValue () const |
virtual bool | isFlagOn () const |
virtual bool | isFlagOff () const |
virtual int | listSize () const |
Private Member Functions | |
IntegerOptionValue (const IntegerOptionValue &) | |
Copying not allowed. More... | |
IntegerOptionValue & | operator= (const IntegerOptionValue &) |
Assignment not allowed. More... | |
Private Attributes | |
int | value_ |
The value of option. More... | |
Models an option that has an integer value.
Definition at line 85 of file OptionValue.hh.
IntegerOptionValue::IntegerOptionValue | ( | int | value | ) |
Constructor.
value | The value of integer option. |
Definition at line 204 of file OptionValue.cc.
References value_.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the value of integer option.
WrongSubclass | Is never thrown by this function. |
OutOfRange | Never thrown by this function. |
Reimplemented from OptionValue.
Definition at line 233 of file OptionValue.cc.
References value_.
|
private |
Assignment not allowed.
|
virtual |
Sets new value for integer option.
value | New value for the integer option. |
WrongSubclass | Is never thrown by this function. |
Reimplemented from OptionValue.
Definition at line 221 of file OptionValue.cc.
References value_.
|
private |
The value of option.
Definition at line 99 of file OptionValue.hh.
Referenced by IntegerOptionValue(), integerValue(), and setIntegerValue().