|
OpenASIP 2.2
|
#include <OptionValue.hh>


Public Member Functions | |
| BoolOptionValue (bool value) | |
| virtual | ~BoolOptionValue () |
| virtual bool | isFlagOn () const |
| virtual bool | isFlagOff () const |
| virtual void | setBoolValue (bool value) |
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 | setIntegerListValue (std::vector< int > values) |
| virtual std::string | stringValue (int index=0) const |
| virtual int | integerValue (int index=0) const |
| virtual double | realValue () const |
| virtual int | listSize () const |
Private Member Functions | |
| BoolOptionValue (const BoolOptionValue &) | |
| Copying not allowed. | |
| BoolOptionValue & | operator= (const BoolOptionValue &) |
| Assignment not allowed. | |
Private Attributes | |
| bool | value_ |
| The value of option. | |
OptionValue that has a boolean value.
This option is also called 'flag'.
Definition at line 184 of file OptionValue.hh.
| BoolOptionValue::BoolOptionValue | ( | bool | value | ) |
Constructor.
| value | The value of boolean option. |
Definition at line 350 of file OptionValue.cc.
References value_.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the negative value of boolean option.
| WrongSubclass | Is never thrown by this function. |
Reimplemented from OptionValue.
Definition at line 389 of file OptionValue.cc.
References value_.
|
virtual |
Returns the value of boolean option.
| WrongSubclass | Is never thrown by this function. |
Reimplemented from OptionValue.
Definition at line 378 of file OptionValue.cc.
References value_.
|
private |
Assignment not allowed.
|
virtual |
Sets new value for boolean option.
| value | New value for the boolean option. |
| WrongSubclass | Is never thrown by this function. |
Reimplemented from OptionValue.
Definition at line 367 of file OptionValue.cc.
References value_.
|
private |
The value of option.
Definition at line 200 of file OptionValue.hh.
Referenced by BoolOptionValue(), isFlagOff(), isFlagOn(), and setBoolValue().