OpenASIP
2.0
|
#include <EntryKeyData.hh>
Public Member Functions | |
EntryKeyDataBool () | |
EntryKeyDataBool (bool fieldData) | |
virtual | ~EntryKeyDataBool () |
EntryKeyData * | copy () const |
bool | isEqual (const EntryKeyData *fieldData) const |
bool | isGreater (const EntryKeyData *fieldData) const |
bool | isSmaller (const EntryKeyData *fieldData) const |
double | coefficient (const EntryKeyData *data1, const EntryKeyData *data2) const |
std::string | toString () const |
![]() | |
EntryKeyData () | |
virtual | ~EntryKeyData () |
Private Member Functions | |
EntryKeyDataBool (const EntryKeyDataBool &) | |
Copying not allowed. More... | |
EntryKeyDataBool & | operator= (const EntryKeyDataBool &) |
Assignment not allowed. More... | |
Private Attributes | |
bool | data_ |
Boolean data. More... | |
Implementation for boolean type of data.
Definition at line 166 of file EntryKeyData.hh.
EntryKeyDataBool::EntryKeyDataBool | ( | ) |
EntryKeyDataBool::EntryKeyDataBool | ( | bool | fieldData | ) |
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Cannot be called for EntryKeyDataBool.
Booleans cannot be compared with greater of smaller and no coefficient can be counted.
data1 | Nothing. |
data2 | Nothing. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 573 of file EntryKeyData.cc.
|
virtual |
Copies the boolean.
Client is responsible of deallocating the memory reserved for the returned object.
Implements EntryKeyData.
Definition at line 507 of file EntryKeyData.cc.
References data_, and EntryKeyDataBool().
|
virtual |
Checks if two booleans are equal.
Cannot compare to other data types.
fieldData | Boolean. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 521 of file EntryKeyData.cc.
References data_.
|
virtual |
Checks if another operation set is greater.
Cannot compare to other data types. You cannot say which is greater in case of booleans and false is returned always.
fieldData | Boolen. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 542 of file EntryKeyData.cc.
|
virtual |
Checks if this operation set is smaller than another set.
Cannot compare to other data types. You cannot say which is greater in case of booleans and true is returned always.
fieldData | Boolean. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 557 of file EntryKeyData.cc.
|
private |
Assignment not allowed.
|
virtual |
Converts the boolean into a string.
Implements EntryKeyData.
Definition at line 585 of file EntryKeyData.cc.
References data_.
|
private |
Boolean data.
Definition at line 182 of file EntryKeyData.hh.
Referenced by copy(), isEqual(), and toString().