OpenASIP
2.0
|
#include <EntryKeyData.hh>
Public Member Functions | |
EntryKeyDataOperationSet () | |
EntryKeyDataOperationSet (std::set< std::string > fieldData) | |
virtual | ~EntryKeyDataOperationSet () |
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 | |
EntryKeyDataOperationSet (const EntryKeyDataOperationSet &) | |
Copying not allowed. More... | |
EntryKeyDataOperationSet & | operator= (const EntryKeyDataOperationSet &) |
Assignment not allowed. More... | |
Private Attributes | |
std::set< std::string > | data_ |
Operation set data. More... | |
Implementation for operation set type of data.
Definition at line 139 of file EntryKeyData.hh.
EntryKeyDataOperationSet::EntryKeyDataOperationSet | ( | ) |
EntryKeyDataOperationSet::EntryKeyDataOperationSet | ( | std::set< std::string > | fieldData | ) |
Constructor.
fieldData | A set of operations. |
Definition at line 365 of file EntryKeyData.cc.
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Cannot be called for EntryKeyDataOperationSet.
Operation sets cannot be compared and no coefficient can be counted.
data1 | Nothing. |
data2 | Nothing. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 449 of file EntryKeyData.cc.
|
virtual |
Copies the operation set.
Client is responsible of deallocating the memory reserved for the returned object.
Implements EntryKeyData.
Definition at line 384 of file EntryKeyData.cc.
References data_, and EntryKeyDataOperationSet().
|
virtual |
Checks if two operation sets are equal.
Cannot compare to other data types.
fieldData | Operation set. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 398 of file EntryKeyData.cc.
References data_.
|
virtual |
Checks if another operation set is greater.
Cannot compare to other data types. Cannot compare to other operation sets and because of that returns always false.
fieldData | Operation set. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 419 of file EntryKeyData.cc.
|
virtual |
Checks if this operation set is smaller than another set.
Cannot compare to other data types. Cannot compare to other operation sets and because of that returns always true.
fieldData | Operation set. |
WrongSubclass | Given data type was illegal. |
Implements EntryKeyData.
Definition at line 434 of file EntryKeyData.cc.
|
private |
Assignment not allowed.
|
virtual |
Converts the operation set into a string.
Implements EntryKeyData.
Definition at line 462 of file EntryKeyData.cc.
References data_.
|
private |
Operation set data.
Definition at line 155 of file EntryKeyData.hh.
Referenced by copy(), isEqual(), and toString().