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

#include <drive.h>

Inheritance diagram for OneDriveCaller:
Collaboration diagram for OneDriveCaller:

Public Member Functions

 OneDriveCaller (void)
 
virtual ~OneDriveCaller (void)
 
virtual DriveCallerpCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual doublereal dGet (const doublereal &dVar) const
 
virtual 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)
 

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 601 of file drive.h.

Constructor & Destructor Documentation

OneDriveCaller::OneDriveCaller ( void  )

Definition at line 594 of file drive.cc.

References NO_OP.

595 : DriveCaller(0)
596 {
597  NO_OP;
598 }
#define NO_OP
Definition: myassert.h:74
DriveCaller(const DriveHandler *pDH)
Definition: drive.cc:475
OneDriveCaller::~OneDriveCaller ( void  )
virtual

Definition at line 600 of file drive.cc.

References NO_OP.

601 {
602  NO_OP;
603 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

bool OneDriveCaller::bIsDifferentiable ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 635 of file drive.h.

636 {
637  return true;
638 }
doublereal OneDriveCaller::dGet ( const doublereal dVar) const
inlinevirtual

Implements DriveCaller.

Definition at line 623 of file drive.h.

624 {
625  return 1.;
626 }
doublereal OneDriveCaller::dGet ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 629 of file drive.h.

630 {
631  return 1.;
632 }
doublereal OneDriveCaller::dGetP ( const doublereal dVar) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 641 of file drive.h.

642 {
643  return 0.;
644 }
doublereal OneDriveCaller::dGetP ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 647 of file drive.h.

648 {
649  return 0.;
650 }
DriveCaller * OneDriveCaller::pCopy ( void  ) const
virtual

Implements DriveCaller.

Definition at line 607 of file drive.cc.

References SAFENEW.

608 {
609  DriveCaller* pDC = 0;
610  SAFENEW(pDC, OneDriveCaller);
611 
612  return pDC;
613 }
#define SAFENEW(pnt, item)
Definition: mynewmem.h:695
std::ostream & OneDriveCaller::Restart ( std::ostream &  out) const
virtual

Implements DriveCaller.

Definition at line 617 of file drive.cc.

618 {
619  return out << "one";
620 }

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