MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ScalarPX Class Reference

#include <px.h>

Inheritance diagram for ScalarPX:
Collaboration diagram for ScalarPX:

Public Member Functions

 ScalarPX (DriveCaller *p)
 
virtual ~ScalarPX (void)
 
virtual void AddInput (doublereal *pd) const
 
- Public Member Functions inherited from PersistentExcitation
 PersistentExcitation (int i)
 
virtual ~PersistentExcitation (void)
 
virtual int iGetNumDrives (void) const
 

Protected Attributes

DriveOwnerpDrive
 
- Protected Attributes inherited from PersistentExcitation
int iNumDrives
 

Detailed Description

Definition at line 57 of file px.h.

Constructor & Destructor Documentation

ScalarPX::ScalarPX ( DriveCaller p)

Definition at line 80 of file px.cc.

References ASSERT, pDrive, and SAFENEWWITHCONSTRUCTOR.

81 : PersistentExcitation(1), pDrive(NULL)
82 {
83  ASSERT(p != NULL);
85 }
PersistentExcitation(int i)
Definition: px.cc:39
#define ASSERT(expression)
Definition: colamd.c:977
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
DriveOwner * pDrive
Definition: px.h:59
ScalarPX::~ScalarPX ( void  )
virtual

Definition at line 88 of file px.cc.

References pDrive, and SAFEDELETE.

89 {
91 }
DriveOwner * pDrive
Definition: px.h:59
#define SAFEDELETE(pnt)
Definition: mynewmem.h:710

Member Function Documentation

void ScalarPX::AddInput ( doublereal pd) const
virtual

Implements PersistentExcitation.

Definition at line 94 of file px.cc.

References DriveOwner::dGet(), and pDrive.

95 {
96  pd[0] += pDrive->dGet();
97 }
doublereal dGet(const doublereal &dVar) const
Definition: drive.cc:664
DriveOwner * pDrive
Definition: px.h:59

Here is the call graph for this function:

Member Data Documentation

DriveOwner* ScalarPX::pDrive
protected

Definition at line 59 of file px.h.

Referenced by AddInput(), ScalarPX(), and ~ScalarPX().


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