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

Public Member Functions

 DummyDriveCaller (const doublereal &d)
 
virtual ~DummyDriveCaller (void)
 
virtual DriveCallerpCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
doublereal dGet (const doublereal &) const
 
doublereal dGet (void) const
 
virtual bool bIsDifferentiable (void) const
 
virtual doublereal dGetP (const doublereal &dVar) const
 
virtual doublereal dGetP (void) const
 
- Public Member Functions inherited from DriveCaller
 DriveCaller (const DriveHandler *pDH)
 
virtual ~DriveCaller (void)
 
virtual void SetDrvHdl (const DriveHandler *pDH)
 
virtual const DriveHandlerpGetDrvHdl (void) const
 
virtual void Output (OutputHandler &OH) const
 
virtual void Trace (OutputHandler &OH) 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
 
- Public Member Functions inherited from ToBeOutput
 ToBeOutput (flag fOut=fDefaultOut)
 
virtual ~ToBeOutput (void)
 
virtual void OutputPrepare (OutputHandler &OH)
 
virtual void Output (OutputHandler &OH, const VectorHandler &X, const VectorHandler &XP) const
 
virtual flag fToBeOutput (void) const
 
virtual bool bToBeOutput (void) const
 
virtual void SetOutputFlag (flag f=flag(1))
 
- Public Member Functions inherited from Traceable
 Traceable (flag fTrace=0)
 
virtual ~Traceable (void)
 
virtual flag fToBeTraced (void) const
 
virtual void SetTraceFlag (flag f=TRACE)
 

Private Attributes

doublereal dConst
 

Additional Inherited Members

- Public Types inherited from DriveCaller
enum  OutputFlags { OUTPUT_VALUE = OUTPUT_PRIVATE << 0, OUTPUT_DERIVATIVE = OUTPUT_PRIVATE << 1 }
 
enum  TraceFlags { TRACE_VALUE = TRACE_PRIVATE << 0, TRACE_DERIVATIVE = TRACE_PRIVATE << 1 }
 
- Public Types inherited from ToBeOutput
enum  { OUTPUT = 0x1U, OUTPUT_MASK = 0xFU, OUTPUT_PRIVATE = 0x10U, OUTPUT_PRIVATE_MASK = ~OUTPUT_MASK }
 
- Public Types inherited from Traceable
enum  { TRACE = 0x01U, TRACE_PUBLIC_MASK = 0x0FU, TRACE_PRIVATE = 0x10U, TRACE_PRIVATE_MASK = ~TRACE_PUBLIC_MASK }
 
- Protected Attributes inherited from DriveCaller
DriveHandlerpDrvHdl
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 

Detailed Description

Definition at line 40 of file module-drive.cc.

Constructor & Destructor Documentation

DummyDriveCaller::DummyDriveCaller ( const doublereal d)

Definition at line 63 of file module-drive.cc.

References NO_OP.

Referenced by pCopy().

64 : DriveCaller(0),
65 dConst(d)
66 {
67  NO_OP;
68 }
doublereal dConst
Definition: module-drive.cc:42
#define NO_OP
Definition: myassert.h:74
DriveCaller(const DriveHandler *pDH)
Definition: drive.cc:475
DummyDriveCaller::~DummyDriveCaller ( void  )
virtual

Definition at line 70 of file module-drive.cc.

References NO_OP.

71 {
72  NO_OP;
73 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

bool DummyDriveCaller::bIsDifferentiable ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 100 of file module-drive.cc.

101 {
102  return true;
103 }
doublereal DummyDriveCaller::dGet ( const doublereal ) const
inlinevirtual

Implements DriveCaller.

Definition at line 88 of file module-drive.cc.

References dConst.

89 {
90  return dConst;
91 }
doublereal dConst
Definition: module-drive.cc:42
doublereal DummyDriveCaller::dGet ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 94 of file module-drive.cc.

References dConst.

95 {
96  return dConst;
97 }
doublereal dConst
Definition: module-drive.cc:42
doublereal DummyDriveCaller::dGetP ( const doublereal dVar) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 106 of file module-drive.cc.

107 {
108  return 0.;
109 }
doublereal DummyDriveCaller::dGetP ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 112 of file module-drive.cc.

113 {
114  return 0.;
115 }
DriveCaller * DummyDriveCaller::pCopy ( void  ) const
virtual

Implements DriveCaller.

Definition at line 76 of file module-drive.cc.

References dConst, and DummyDriveCaller().

77 {
78  return new DummyDriveCaller(dConst);
79 }
doublereal dConst
Definition: module-drive.cc:42
DummyDriveCaller(const doublereal &d)
Definition: module-drive.cc:63

Here is the call graph for this function:

std::ostream & DummyDriveCaller::Restart ( std::ostream &  out) const
virtual

Implements DriveCaller.

Definition at line 82 of file module-drive.cc.

References dConst.

83 {
84  return out << "dummy, " << dConst;
85 }
doublereal dConst
Definition: module-drive.cc:42

Member Data Documentation

doublereal DummyDriveCaller::dConst
private

Definition at line 42 of file module-drive.cc.

Referenced by dGet(), pCopy(), and Restart().


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