OS  2.10.1
Public Member Functions | Public Attributes | List of all members
CPUNumber Class Reference

the CPUNumber class. More...

#include <OSGeneral.h>

+ Collaboration diagram for CPUNumber:

Public Member Functions

 CPUNumber ()
 Default constructor. More...
 
 ~CPUNumber ()
 Class destructor. More...
 
bool IsEqual (CPUNumber *that)
 A function to check for the equality of two objects. More...
 
bool setRandom (double density, bool conformant)
 A function to make a random instance of this class. More...
 
bool deepCopyFrom (CPUNumber *that)
 A function to make a deep copy of an instance of this class. More...
 

Public Attributes

std::string description
 additional description about the CPU More...
 
int value
 the number of CPUs More...
 

Detailed Description

the CPUNumber 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 871 of file OSGeneral.h.

Constructor & Destructor Documentation

§ CPUNumber()

CPUNumber::CPUNumber ( )

Default constructor.

§ ~CPUNumber()

CPUNumber::~CPUNumber ( )

Class destructor.

Member Function Documentation

§ IsEqual()

bool CPUNumber::IsEqual ( CPUNumber that)

A function to check for the equality of two objects.

§ setRandom()

bool CPUNumber::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)

§ deepCopyFrom()

bool CPUNumber::deepCopyFrom ( CPUNumber 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

Member Data Documentation

§ description

std::string CPUNumber::description

additional description about the CPU

Definition at line 876 of file OSGeneral.h.

§ value

int CPUNumber::value

the number of CPUs

Definition at line 879 of file OSGeneral.h.


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