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