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