OpenASIP
2.0
|
#include <EntryKeyData.hh>
Public Member Functions | |
EntryKeyDataInt () | |
EntryKeyDataInt (int fieldData) | |
virtual | ~EntryKeyDataInt () |
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 | |
EntryKeyDataInt (const EntryKeyDataInt &) | |
Copying not allowed. More... | |
EntryKeyDataInt & | operator= (const EntryKeyDataInt &) |
Assignment not allowed. More... | |
Private Attributes | |
int | data_ |
Integer data. More... | |
Implementation for integer type of data.
Definition at line 83 of file EntryKeyData.hh.
EntryKeyDataInt::EntryKeyDataInt | ( | ) |
EntryKeyDataInt::EntryKeyDataInt | ( | int | fieldData | ) |
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns the relative position between two integers.
Returns the integer's relative position to the first integer compared to the second. For example, if this integer is 14, the first integer is 10 and the second 20, relative position would be 0.4.
data1 | First integer. |
data2 | Second integer. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 179 of file EntryKeyData.cc.
References data_.
|
virtual |
Copies integer.
Client is responsible of deallocating the memory reserved for the returned object.
Implements EntryKeyData.
Definition at line 99 of file EntryKeyData.cc.
References data_, and EntryKeyDataInt().
|
virtual |
Checks if two integers are equal.
Cannot compare integers to other data types.
fieldData | An integer. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 113 of file EntryKeyData.cc.
References data_.
|
virtual |
Checks if this integer is greater than another integer.
Cannot compare integers to other data types.
fieldData | An integer. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 134 of file EntryKeyData.cc.
References data_.
|
virtual |
Checks if this integer is smaller than another integer.
Cannot compare integers to other data types.
fieldData | An integer. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 155 of file EntryKeyData.cc.
References data_.
|
private |
Assignment not allowed.
|
virtual |
Converts the integer into a string.
Implements EntryKeyData.
Definition at line 204 of file EntryKeyData.cc.
References data_, and Conversion::toString().
|
private |
Integer data.
Definition at line 99 of file EntryKeyData.hh.
Referenced by coefficient(), copy(), isEqual(), isGreater(), isSmaller(), and toString().