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

#include <drive_.h>

Inheritance diagram for ClosestNextDriveCaller:
Collaboration diagram for ClosestNextDriveCaller:

Public Member Functions

 ClosestNextDriveCaller (const DriveHandler *pDH, doublereal dS, doublereal dE, const DriveCaller *pIncrement)
 
virtual ~ClosestNextDriveCaller (void)
 
virtual DriveCallerpCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
doublereal dGet (const doublereal &dVar) const
 
- Public Member Functions inherited from DriveCaller
 DriveCaller (const DriveHandler *pDH)
 
virtual ~DriveCaller (void)
 
virtual doublereal dGet (void) const
 
virtual bool bIsDifferentiable (void) const
 
virtual doublereal dGetP (const doublereal &dVar) const
 
virtual doublereal dGetP (void) const
 
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 dStartTime
 
doublereal dEndTime
 
const DriveCallerpIncrement
 
integer iDriveNumber
 

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 1315 of file drive_.h.

Constructor & Destructor Documentation

ClosestNextDriveCaller::ClosestNextDriveCaller ( const DriveHandler pDH,
doublereal  dS,
doublereal  dE,
const DriveCaller pIncrement 
)

Definition at line 986 of file drive_.cc.

References dStartTime, DriveHandler::iClosestNextInit(), iDriveNumber, and DriveCaller::pDrvHdl.

Referenced by pCopy().

988 : DriveCaller(pDH),
989 dStartTime(dS), dEndTime(dE),
990 pIncrement(pIncrement)
991 {
993 }
doublereal dStartTime
Definition: drive_.h:1317
DriveCaller(const DriveHandler *pDH)
Definition: drive.cc:475
DriveHandler * pDrvHdl
Definition: drive.h:444
const doublereal dS
Definition: beamslider.cc:71
const DriveCaller * pIncrement
Definition: drive_.h:1319
integer iClosestNextInit(const DriveCaller *pIncrement, doublereal dStartTime)
Definition: drive.cc:294
doublereal dEndTime
Definition: drive_.h:1318

Here is the call graph for this function:

ClosestNextDriveCaller::~ClosestNextDriveCaller ( void  )
virtual

Definition at line 995 of file drive_.cc.

References NO_OP.

996 {
997  NO_OP;
998 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

doublereal ClosestNextDriveCaller::dGet ( const doublereal dVar) const
inlinevirtual

Implements DriveCaller.

Definition at line 1338 of file drive_.h.

References DriveHandler::bGetClosestNext(), dEndTime, iDriveNumber, and DriveCaller::pDrvHdl.

1339 {
1340  if (dVar < dStartTime || dVar > dEndTime) {
1341  return 0.;
1342  }
1343 
1345 }
bool bGetClosestNext(integer iNumber) const
Definition: drive.h:421
DriveHandler * pDrvHdl
Definition: drive.h:444
double doublereal
Definition: colamd.c:52
doublereal dEndTime
Definition: drive_.h:1318

Here is the call graph for this function:

DriveCaller * ClosestNextDriveCaller::pCopy ( void  ) const
virtual

Implements DriveCaller.

Definition at line 1002 of file drive_.cc.

References ClosestNextDriveCaller(), dEndTime, dStartTime, DriveCaller::pCopy(), DriveCaller::pDrvHdl, pIncrement, and SAFENEWWITHCONSTRUCTOR.

1003 {
1004  DriveCaller* pDC = 0;
1008  pIncrement->pCopy()));
1009  return pDC;
1010 }
ClosestNextDriveCaller(const DriveHandler *pDH, doublereal dS, doublereal dE, const DriveCaller *pIncrement)
Definition: drive_.cc:986
doublereal dStartTime
Definition: drive_.h:1317
DriveHandler * pDrvHdl
Definition: drive.h:444
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
virtual DriveCaller * pCopy(void) const =0
const DriveCaller * pIncrement
Definition: drive_.h:1319
doublereal dEndTime
Definition: drive_.h:1318

Here is the call graph for this function:

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

Implements DriveCaller.

Definition at line 1014 of file drive_.cc.

References dEndTime, dStartTime, pIncrement, and DriveCaller::Restart().

1015 {
1016  out
1017  << " closest next, " << dStartTime
1018  << ", " << dEndTime
1019  << ", ", pIncrement->Restart(out);
1020 
1021  return out;
1022 }
virtual std::ostream & Restart(std::ostream &out) const =0
doublereal dStartTime
Definition: drive_.h:1317
const DriveCaller * pIncrement
Definition: drive_.h:1319
doublereal dEndTime
Definition: drive_.h:1318

Here is the call graph for this function:

Member Data Documentation

doublereal ClosestNextDriveCaller::dEndTime
private

Definition at line 1318 of file drive_.h.

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

doublereal ClosestNextDriveCaller::dStartTime
private

Definition at line 1317 of file drive_.h.

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

integer ClosestNextDriveCaller::iDriveNumber
private

Definition at line 1320 of file drive_.h.

Referenced by ClosestNextDriveCaller(), and dGet().

const DriveCaller* ClosestNextDriveCaller::pIncrement
private

Definition at line 1319 of file drive_.h.

Referenced by pCopy(), and Restart().


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