All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
DriveHandler::MyRand Class Reference
Inheritance diagram for DriveHandler::MyRand:
Collaboration diagram for DriveHandler::MyRand:

Public Member Functions

 MyRand (unsigned int uLabel, integer iS=1, integer iR=0)
virtual ~MyRand (void)
integer iGetSteps (void) const
integer iGetRand (void) const
virtual void Set (void)
- Public Member Functions inherited from DriveHandler::MyMeter
 MyMeter (unsigned int uLabel, integer iS=1)
virtual ~MyMeter (void)
integer iGetSteps (void) const
bool bGetMeter (void) const
- Public Member Functions inherited from WithLabel
 WithLabel (unsigned int uL=0, const std::string &sN="")
virtual ~WithLabel (void)
void PutLabel (unsigned int uL)
void PutName (const std::string &sN)
unsigned int GetLabel (void) const
const std::string & GetName (void) const

Protected Attributes

integer iRand
- Protected Attributes inherited from DriveHandler::MyMeter
integer iSteps
integer iCurr
- Protected Attributes inherited from WithLabel
unsigned int uLabel
std::string sName

Detailed Description

Definition at line 213 of file drive.h.

Constructor & Destructor Documentation

DriveHandler::MyRand::MyRand ( unsigned int  uLabel,
integer  iS = 1,
integer  iR = 0 

Definition at line 403 of file drive.cc.

References NO_OP.

404 : MyMeter(uLabel, iS), iRand(iR)
405 {
406  NO_OP;
407 }
#define NO_OP
Definition: myassert.h:74
unsigned int uLabel
Definition: withlab.h:44
MyMeter(unsigned int uLabel, integer iS=1)
Definition: drive.cc:414
DriveHandler::MyRand::~MyRand ( void  )

Definition at line 409 of file drive.cc.

References NO_OP.

410 {
411  NO_OP;
412 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

integer DriveHandler::MyRand::iGetRand ( void  ) const

Definition at line 307 of file drive.h.

308 {
309  return iRand;
310 }
integer DriveHandler::MyRand::iGetSteps ( void  ) const
void DriveHandler::MyRand::Set ( void  )

Reimplemented from DriveHandler::MyMeter.

Definition at line 314 of file drive.h.

315 {
316  MyMeter::Set();
317  if (iCurr == 0) {
318  iRand = rand();
319  }
320 }
virtual void Set(void)
Definition: drive.h:338

Member Data Documentation

integer DriveHandler::MyRand::iRand

Definition at line 215 of file drive.h.

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