Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Examples  

YASA_CPU Class Reference

#include <datatypes.h>

Inheritance diagram for YASA_CPU:

Inheritance graph
[legend]
Collaboration diagram for YASA_CPU:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 YASA_CPU (int c=YG_MIN_CPU)
 YASA_CPU (const YASA_CPU *c, int c2=YG_MIN_CPU)
virtual QString GetContentString () const
 Returns the content as string, e.g. for writing configuration files.

virtual QString GetVisibleContentString () const
virtual int GetMinValue () const
virtual int ReadFromString (const QString &s)
 Read the contents from a string, e.g. reading from configuration files.

bool operator< (const YASA_CPU &c) const
bool operator<= (const YASA_CPU &c) const
bool operator> (const YASA_CPU &c) const
bool operator>= (const YASA_CPU &c) const
const int & operator= (const int &c)
 This operator sets the content of the instance.

 operator int () const
virtual bool CheckLimits (int &dest, const int &source) const

Detailed Description

Handling valid CPU number, if cpu=0 the cpu is not specified (Default). That means a task can run on every cpu and can switch between cpus if the executive supports this feature. Executives using MAXCPU=0 are supporting CPU's as much as needed CPU numbe are valid between YG_MIN_CPU and YG_MAX_CPU


Constructor & Destructor Documentation

YASA_CPU::YASA_CPU int    c = YG_MIN_CPU [inline]
 

YASA_CPU::YASA_CPU const YASA_CPU *    c,
int    c2 = YG_MIN_CPU
[inline]
 


Member Function Documentation

bool YASA_CPU::CheckLimits int &    dest,
const int &    source
const [virtual]
 

Checks if the parent objects have set lower maximum cpus. If yes corrent the given value. If the parameter is

Reimplemented from YDerivedType< int >.

Reimplemented in YASA_MAXCPU.

virtual QString YASA_CPU::GetContentString   const [inline, virtual]
 

Returns the content as string, e.g. for writing configuration files.

Reimplemented from YDerivedObject.

virtual int YASA_CPU::GetMinValue   const [inline, virtual]
 

Reimplemented in YASA_MAXCPU.

virtual QString YASA_CPU::GetVisibleContentString   const [inline, virtual]
 

Returns a visible string of the content. This is used to print the contents in a localized way (such as "infinity")

Reimplemented from YDerivedObject.

YASA_CPU::operator int   const [inline]
 

Reimplemented in YASA_MAXCPU.

bool YASA_CPU::operator< const YASA_CPU &    c const [inline]
 

Reimplemented in YASA_MAXCPU.

bool YASA_CPU::operator<= const YASA_CPU &    c const [inline]
 

Reimplemented in YASA_MAXCPU.

const int& YASA_CPU::operator= const int &    c [inline]
 

This operator sets the content of the instance.

Reimplemented from YDerivedType< int >.

Reimplemented in YASA_MAXCPU.

bool YASA_CPU::operator> const YASA_CPU &    c const [inline]
 

Reimplemented in YASA_MAXCPU.

bool YASA_CPU::operator>= const YASA_CPU &    c const [inline]
 

Reimplemented in YASA_MAXCPU.

int YASA_CPU::ReadFromString const QString &    content [virtual]
 

Read the contents from a string, e.g. reading from configuration files.

Reimplemented from YDerivedObject.


The documentation for this class was generated from the following files:
Generated on Thu Feb 13 23:51:08 2003 for Yasa by doxygen1.3-rc3