All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ScalarDriveValue Class Reference

#include <scalarvalue.h>

Inheritance diagram for ScalarDriveValue:
Collaboration diagram for ScalarDriveValue:

Public Member Functions

 ScalarDriveValue (const DriveCaller *pdc)
 ~ScalarDriveValue (void)
doublereal dGetValue (void) const
- Public Member Functions inherited from ScalarValue
virtual ~ScalarValue (void)

Protected Attributes

const DriveCallerpDC

Detailed Description

Definition at line 51 of file scalarvalue.h.

Constructor & Destructor Documentation

ScalarDriveValue::ScalarDriveValue ( const DriveCaller pdc)

Definition at line 60 of file scalarvalue.cc.

References NO_OP.

61 : pDC(pdc)
62 {
63  NO_OP;
64 }
#define NO_OP
Definition: myassert.h:74
const DriveCaller * pDC
Definition: scalarvalue.h:53
ScalarDriveValue::~ScalarDriveValue ( void  )

Definition at line 66 of file scalarvalue.cc.

References pDC.

67 {
68  if (pDC) {
69  delete pDC;
70  }
71 }
const DriveCaller * pDC
Definition: scalarvalue.h:53

Member Function Documentation

doublereal ScalarDriveValue::dGetValue ( void  ) const

Implements ScalarValue.

Definition at line 74 of file scalarvalue.cc.

References DriveCaller::dGet(), and pDC.

75 {
76  return pDC->dGet();
77 }
const DriveCaller * pDC
Definition: scalarvalue.h:53
virtual doublereal dGet(const doublereal &dVar) const =0

Here is the call graph for this function:

Member Data Documentation

const DriveCaller* ScalarDriveValue::pDC

Definition at line 53 of file scalarvalue.h.

Referenced by dGetValue(), and ~ScalarDriveValue().

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