CpuComponentSpec
Qualified name: mv::util::CpuComponentSpec
-
class CpuComponentSpec : public mv::util::HardwareComponentSpec
CPU component spec class.
For encapsulating a CPU hardware specification
- Author
Thomas Kroes
Public Functions
-
CpuComponentSpec()
Default constructor.
-
virtual QString getFailureString(const HardwareComponentSpec &required) const override
Get the reason why the CPU component spec does not meet the
requiredCPU component spec.- Parameters:
required – CPU component spec that is required
- Returns:
String containing the reason why the CPU component spec does not meet the required CPU component spec
-
inline bool operator==(const CpuComponentSpec &other) const
Get whether the CPU component specification is equal to the
otherCPU component specification.- Parameters:
other – CPU component specification to compare with
- Returns:
Boolean determining whether the CPU component specification is equal to the
otherCPU component specification
-
inline bool operator!=(const CpuComponentSpec &other) const
Get whether the CPU component specification is not equal to the
otherCPU component specification.- Parameters:
other – CPU component specification to compare with
- Returns:
Boolean determining whether the CPU component specification is not equal to the
otherCPU component specification
-
inline bool operator<(const CpuComponentSpec &other) const
Get whether the CPU specification is smaller than the
otherCPU specification.- Returns:
Boolean determining whether the CPU specification is smaller than the
otherCPU specification
-
inline bool operator>(const CpuComponentSpec &other) const
Get whether the CPU specification is larger than the
otherCPU specification.- Returns:
Boolean determining whether the CPU specification is larger than the
otherCPU specification
-
inline virtual bool lessThan(const HardwareComponentSpec &other) const override
Get whether the CPU component specification is smaller than the
otherCPU component specification.- Parameters:
other – CPU component specification to compare with
- Returns:
Boolean determining whether the CPU component specification is smaller than the
otherCPU component specification
-
inline virtual bool equals(const HardwareComponentSpec &other) const override
Get whether the CPU component specification is equal to the
otherCPU component specification.- Parameters:
other – CPU component specification to compare with
- Returns:
Boolean determining whether the CPU component specification is equal to the
otherCPU component specification
-
virtual bool meets(const HardwareComponentSpec &required) const override
Get whether the CPU component specification meets the
requiredCPU component specification.- Parameters:
required – CPU component spec that is required
- Returns:
Boolean determining whether the CPU component spec meets the required CPU component spec
-
virtual QStandardItem *getStandardItem() const override
Get standard item.
- Returns:
Pointer to standard item representing the hardware component spec