#include <OSGeneral.h>
Public Member Functions | |
CPUSpeed () | |
Default constructor. | |
~CPUSpeed () | |
Class destructor. | |
bool | IsEqual (CPUSpeed *that) |
A function to check for the equality of two objects. | |
bool | setRandom (double density, bool conformant) |
A function to make a random instance of this class. | |
Public Attributes | |
std::string | unit |
the unit in which CPU speed is measured | |
std::string | description |
additional description about the CPU speed | |
double | value |
the CPU speed (expressed in multiples of unit) |
the CPUSpeed class.
Definition at line 716 of file OSGeneral.h.
CPUSpeed::CPUSpeed | ( | ) |
Default constructor.
Definition at line 1112 of file OSGeneral.cpp.
CPUSpeed::~CPUSpeed | ( | ) |
Class destructor.
Definition at line 1119 of file OSGeneral.cpp.
bool CPUSpeed::IsEqual | ( | CPUSpeed * | that | ) |
A function to check for the equality of two objects.
Definition at line 1126 of file OSGeneral.cpp.
bool CPUSpeed::setRandom | ( | double | density, | |
bool | conformant | |||
) |
A function to make a random instance of this class.
density,: | corresponds to the probability that a particular child element is created | |
conformant,: | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children) |
Definition at line 1167 of file OSGeneral.cpp.
std::string CPUSpeed::unit |
the unit in which CPU speed is measured
Definition at line 721 of file OSGeneral.h.
std::string CPUSpeed::description |
additional description about the CPU speed
Definition at line 724 of file OSGeneral.h.
double CPUSpeed::value |
the CPU speed (expressed in multiples of unit)
Definition at line 727 of file OSGeneral.h.