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

#include <dofdrive.h>

Inheritance diagram for DofDriveCaller:
Collaboration diagram for DofDriveCaller:

Public Member Functions

 DofDriveCaller (const DriveHandler *pDH, const DriveCaller *pDC, const ScalarDof &sd)
 
virtual ~DofDriveCaller (void)
 
virtual DriveCallerpCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
doublereal dGet (const doublereal &dVar) const
 
doublereal dGet (void) const
 
- Public Member Functions inherited from DriveCaller
 DriveCaller (const DriveHandler *pDH)
 
virtual ~DriveCaller (void)
 
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)
 
- Public Member Functions inherited from DriveOwner
 DriveOwner (const DriveCaller *pDC=0)
 
 DriveOwner (const DriveOwner &drive)
 
virtual ~DriveOwner (void)
 
void Set (const DriveCaller *pDC)
 
DriveCallerpGetDriveCaller (void) const
 
doublereal dGet (const doublereal &dVar) const
 
doublereal dGet (void) const
 
bool bIsDifferentiable (void) const
 
doublereal dGetP (const doublereal &dVar) const
 
doublereal dGetP (void) const
 

Protected Attributes

const ScalarDof SD
 
- Protected Attributes inherited from DriveCaller
DriveHandlerpDrvHdl
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 
- Protected Attributes inherited from DriveOwner
DriveCallerpDriveCaller
 

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 }
 

Detailed Description

Definition at line 48 of file dofdrive.h.

Constructor & Destructor Documentation

DofDriveCaller::DofDriveCaller ( const DriveHandler pDH,
const DriveCaller pDC,
const ScalarDof sd 
)

Definition at line 39 of file dofdrive.cc.

References NO_OP.

Referenced by pCopy().

42 : DriveCaller(pDH), DriveOwner(pDC), SD(sd)
43 {
44  NO_OP;
45 };
const ScalarDof SD
Definition: dofdrive.h:51
#define NO_OP
Definition: myassert.h:74
DriveCaller(const DriveHandler *pDH)
Definition: drive.cc:475
DriveOwner(const DriveCaller *pDC=0)
Definition: drive.cc:627
DofDriveCaller::~DofDriveCaller ( void  )
virtual

Definition at line 47 of file dofdrive.cc.

References NO_OP.

48 {
49  NO_OP;
50 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

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

Implements DriveCaller.

Definition at line 68 of file dofdrive.h.

References DriveCaller::dGet(), and DriveOwner::pGetDriveCaller().

69 {
70  silent_cerr("warning, possible improper call of dof drive "
71  "with real argument" << std::endl);
72  return DriveOwner::pGetDriveCaller()->dGet(dVar);
73 }
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658
virtual doublereal dGet(const doublereal &dVar) const =0

Here is the call graph for this function:

doublereal DofDriveCaller::dGet ( void  ) const
inlinevirtual

Reimplemented from DriveCaller.

Definition at line 76 of file dofdrive.h.

References DriveCaller::dGet(), Node::dGetDofValue(), ScalarDof::iOrder, DriveOwner::pGetDriveCaller(), ScalarDof::pNode, and SD.

77 {
79 }
ScalarNode * pNode
Definition: node.h:708
const ScalarDof SD
Definition: dofdrive.h:51
virtual const doublereal & dGetDofValue(int iDof, int iOrder=0) const =0
int iOrder
Definition: node.h:710
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658
virtual doublereal dGet(const doublereal &dVar) const =0

Here is the call graph for this function:

DriveCaller * DofDriveCaller::pCopy ( void  ) const
virtual

Implements DriveCaller.

Definition at line 54 of file dofdrive.cc.

References DofDriveCaller(), DriveCaller::pDrvHdl, DriveOwner::pGetDriveCaller(), SAFENEWWITHCONSTRUCTOR, and SD.

55 {
56  DriveCaller* pDC = NULL;
57 
61  pGetDriveCaller()->pCopy(), SD));
62 
63  return pDC;
64 }
const ScalarDof SD
Definition: dofdrive.h:51
DofDriveCaller(const DriveHandler *pDH, const DriveCaller *pDC, const ScalarDof &sd)
Definition: dofdrive.cc:39
virtual DriveCaller * pCopy(void) const
Definition: dofdrive.cc:54
DriveHandler * pDrvHdl
Definition: drive.h:444
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658

Here is the call graph for this function:

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

Implements DriveCaller.

Definition at line 69 of file dofdrive.cc.

References WithLabel::GetLabel(), Node::GetNodeType(), ScalarDof::iOrder, DriveOwner::pGetDriveCaller(), ScalarDof::pNode, psReadNodesNodes, DriveCaller::Restart(), and SD.

70 {
71  out << " dof, "
72  << SD.pNode->GetLabel() << ", "
74  if (SD.iOrder == 0) {
75  out << ", algebraic, ";
76  } else if (SD.iOrder == 1) {
77  out << ", differential, ";
78  } else {
79  out << ", order, " << SD.iOrder << ", ";
80  }
81  return DriveOwner::pGetDriveCaller()->Restart(out);
82 }
ScalarNode * pNode
Definition: node.h:708
const ScalarDof SD
Definition: dofdrive.h:51
const char * psReadNodesNodes[]
Definition: enums.cc:398
int iOrder
Definition: node.h:710
virtual std::ostream & Restart(std::ostream &out) const =0
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658
virtual Node::Type GetNodeType(void) const =0
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

Member Data Documentation

const ScalarDof DofDriveCaller::SD
protected

Definition at line 51 of file dofdrive.h.

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


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