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

Public Member Functions

 MaxDriveCaller (const std::vector< DriveOwner > &drives)
 
virtual ~MaxDriveCaller (void)
 
virtual DriveCallerpCopy (void) const
 
- Public Member Functions inherited from MinMaxDriveCaller
virtual ~MinMaxDriveCaller ()
 
bool bIsDifferentiable (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
doublereal dGet (void) const
 
doublereal dGetP (void) const
 
doublereal dGet (const doublereal &dVar) const
 
virtual doublereal dGetP (const doublereal &dVar) 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)
 

Protected Member Functions

virtual bool bCompare (doublereal lhs, doublereal rhs) const
 
virtual const char * c_str (void) const
 
- Protected Member Functions inherited from MinMaxDriveCaller
 MinMaxDriveCaller (const std::vector< DriveOwner > &drives)
 

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 Types inherited from MinMaxDriveCaller
typedef std::vector
< DriveOwner >::const_iterator 
iterator
 
- Protected Attributes inherited from MinMaxDriveCaller
const std::vector< DriveOwnerdrives
 
- 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 87 of file module-minmaxdrive.cc.

Constructor & Destructor Documentation

MaxDriveCaller::MaxDriveCaller ( const std::vector< DriveOwner > &  drives)

Definition at line 256 of file module-minmaxdrive.cc.

References NO_OP.

Referenced by pCopy().

258 {
259  NO_OP;
260 };
#define NO_OP
Definition: myassert.h:74
const std::vector< DriveOwner > drives
MinMaxDriveCaller(const std::vector< DriveOwner > &drives)
MaxDriveCaller::~MaxDriveCaller ( void  )
virtual

Definition at line 262 of file module-minmaxdrive.cc.

References NO_OP.

263 {
264  NO_OP;
265 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

bool MaxDriveCaller::bCompare ( doublereal  lhs,
doublereal  rhs 
) const
protectedvirtual

Implements MinMaxDriveCaller.

Definition at line 279 of file module-minmaxdrive.cc.

280 {
281  return lhs > rhs;
282 }
const char * MaxDriveCaller::c_str ( void  ) const
protectedvirtual

Implements MinMaxDriveCaller.

Definition at line 284 of file module-minmaxdrive.cc.

285 {
286  return "max";
287 }
DriveCaller * MaxDriveCaller::pCopy ( void  ) const
virtual

Implements DriveCaller.

Definition at line 268 of file module-minmaxdrive.cc.

References MinMaxDriveCaller::drives, MaxDriveCaller(), and SAFENEWWITHCONSTRUCTOR.

269 {
270  DriveCaller* pDC = 0;
271 
275 
276  return pDC;
277 }
MaxDriveCaller(const std::vector< DriveOwner > &drives)
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
const std::vector< DriveOwner > drives

Here is the call graph for this function:


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