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

Public Member Functions

 MySH (unsigned int uLabel, const DriveCaller *pFunc, const DriveCaller *pTrigger, const doublereal dVal0)
 
virtual ~MySH (void)
 
doublereal dGetSH (void) const
 
virtual void Set (void)
 
const DriveCallerpGetFunc (void) const
 
const DriveCallerpGetTrigger (void) const
 
const doublereal dGetVal0 (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

const doublereal dVal0
 
doublereal dVal
 
const DriveOwner Func
 
const DriveOwner Trigger
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 

Detailed Description

Definition at line 244 of file drive.h.

Constructor & Destructor Documentation

DriveHandler::MySH::MySH ( unsigned int  uLabel,
const DriveCaller pFunc,
const DriveCaller pTrigger,
const doublereal  dVal0 
)

Definition at line 439 of file drive.cc.

References NO_OP.

443 : WithLabel(uLabel), dVal0(dVal0), dVal(dVal0), Func(pFunc), Trigger(pTrigger)
444 {
445  NO_OP;
446 }
const DriveOwner Trigger
Definition: drive.h:249
const DriveOwner Func
Definition: drive.h:248
const doublereal dVal0
Definition: drive.h:246
#define NO_OP
Definition: myassert.h:74
unsigned int uLabel
Definition: withlab.h:44
doublereal dVal
Definition: drive.h:247
WithLabel(unsigned int uL=0, const std::string &sN="")
Definition: withlab.cc:38
DriveHandler::MySH::~MySH ( void  )
virtual

Definition at line 448 of file drive.cc.

References NO_OP.

449 {
450  NO_OP;
451 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

doublereal DriveHandler::MySH::dGetSH ( void  ) const
inline

Definition at line 370 of file drive.h.

371 {
372  return dVal;
373 }
doublereal dVal
Definition: drive.h:247
const doublereal DriveHandler::MySH::dGetVal0 ( void  ) const

Definition at line 466 of file drive.cc.

467 {
468  return dVal0;
469 }
const doublereal dVal0
Definition: drive.h:246
const DriveCaller * DriveHandler::MySH::pGetFunc ( void  ) const

Definition at line 454 of file drive.cc.

455 {
456  return Func.pGetDriveCaller();
457 }
const DriveOwner Func
Definition: drive.h:248
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658
const DriveCaller * DriveHandler::MySH::pGetTrigger ( void  ) const

Definition at line 460 of file drive.cc.

461 {
462  return Trigger.pGetDriveCaller();
463 }
const DriveOwner Trigger
Definition: drive.h:249
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658
void DriveHandler::MySH::Set ( void  )
inlinevirtual

Definition at line 377 of file drive.h.

378 {
379  if (Trigger.dGet()) {
380  dVal = Func.dGet();
381  }
382 }
const DriveOwner Trigger
Definition: drive.h:249
const DriveOwner Func
Definition: drive.h:248
doublereal dVal
Definition: drive.h:247
doublereal dGet(const doublereal &dVar) const
Definition: drive.cc:664

Member Data Documentation

doublereal DriveHandler::MySH::dVal
mutableprotected

Definition at line 247 of file drive.h.

const doublereal DriveHandler::MySH::dVal0
protected

Definition at line 246 of file drive.h.

const DriveOwner DriveHandler::MySH::Func
protected

Definition at line 248 of file drive.h.

const DriveOwner DriveHandler::MySH::Trigger
protected

Definition at line 249 of file drive.h.


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