My Project
CPUSpeed Class Reference

the CPUSpeed class. More...

#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.
 
bool deepCopyFrom (CPUSpeed *that)
 A function to make a deep copy of an 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)
 

Detailed Description

the CPUSpeed class.

Author
Horand Gassmann, Jun Ma, Kipp Martin
Version
1.0, 21/07/2008
Since
OS 1.1
Remarks
A data structure class that corresponds to an xml element in the OSgL schema.

Definition at line 812 of file OSGeneral.h.

Constructor & Destructor Documentation

◆ CPUSpeed()

CPUSpeed::CPUSpeed ( )

Default constructor.

Definition at line 1448 of file OSGeneral.cpp.

◆ ~CPUSpeed()

CPUSpeed::~CPUSpeed ( )

Class destructor.

Definition at line 1455 of file OSGeneral.cpp.

Member Function Documentation

◆ IsEqual()

bool CPUSpeed::IsEqual ( CPUSpeed * that)

A function to check for the equality of two objects.

Definition at line 1462 of file OSGeneral.cpp.

◆ setRandom()

bool CPUSpeed::setRandom ( double density,
bool conformant )

A function to make a random instance of this class.

Parameters
densitycorresponds to the probability that a particular child element is created
conformantif true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children)

Definition at line 1511 of file OSGeneral.cpp.

◆ deepCopyFrom()

bool CPUSpeed::deepCopyFrom ( CPUSpeed * that)

A function to make a deep copy of an instance of this class.

Parameters
thatthe instance from which information is to be copied
Returns
whether the copy was created successfully

Definition at line 1532 of file OSGeneral.cpp.

Member Data Documentation

◆ unit

std::string CPUSpeed::unit

the unit in which CPU speed is measured

Definition at line 817 of file OSGeneral.h.

◆ description

std::string CPUSpeed::description

additional description about the CPU speed

Definition at line 820 of file OSGeneral.h.

◆ value

double CPUSpeed::value

the CPU speed (expressed in multiples of unit)

Definition at line 823 of file OSGeneral.h.


The documentation for this class was generated from the following files: