MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
SingleTplDriveCaller< T > Class Template Reference

#include <tpldrive_impl.h>

Inheritance diagram for SingleTplDriveCaller< T >:
Collaboration diagram for SingleTplDriveCaller< T >:

Public Member Functions

 SingleTplDriveCaller (const DriveCaller *pDC, const T &x)
 
 ~SingleTplDriveCaller (void)
 
virtual TplDriveCaller< T > * pCopy (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual std::ostream & Restart_int (std::ostream &out) const
 
Get (const doublereal &dVar) const
 
Get (void) const
 
bool bIsDifferentiable (void) const
 
GetP (void) const
 
int getNDrives (void) const
 
- Public Member Functions inherited from TplDriveCaller< T >
virtual ~TplDriveCaller (void)
 
- 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

t
 
- Protected Attributes inherited from DriveOwner
DriveCallerpDriveCaller
 

Detailed Description

template<class T>
class SingleTplDriveCaller< T >

Definition at line 98 of file tpldrive_impl.h.

Constructor & Destructor Documentation

template<class T >
SingleTplDriveCaller< T >::SingleTplDriveCaller ( const DriveCaller pDC,
const T &  x 
)
inline

Definition at line 103 of file tpldrive_impl.h.

References NO_OP.

104  : DriveOwner(pDC), t(const_cast<T&>(x)) {
105  NO_OP;
106  };
#define NO_OP
Definition: myassert.h:74
DriveOwner(const DriveCaller *pDC=0)
Definition: drive.cc:627
template<class T >
SingleTplDriveCaller< T >::~SingleTplDriveCaller ( void  )
inline

Definition at line 108 of file tpldrive_impl.h.

References NO_OP.

108  {
109  NO_OP;
110  };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

template<class T >
bool SingleTplDriveCaller< T >::bIsDifferentiable ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< T >.

Definition at line 143 of file tpldrive_impl.h.

References DriveOwner::bIsDifferentiable().

143  {
145  };
bool bIsDifferentiable(void) const
Definition: drive.cc:677

Here is the call graph for this function:

template<class T >
T SingleTplDriveCaller< T >::Get ( const doublereal dVar) const
inlinevirtual

Implements TplDriveCaller< T >.

Definition at line 134 of file tpldrive_impl.h.

References DriveOwner::dGet(), and SingleTplDriveCaller< T >::t.

134  {
135  return t*dGet(dVar);
136  };
doublereal dGet(void) const
Definition: drive.cc:671

Here is the call graph for this function:

template<class T >
T SingleTplDriveCaller< T >::Get ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< T >.

Definition at line 138 of file tpldrive_impl.h.

References DriveOwner::dGet(), and SingleTplDriveCaller< T >::t.

138  {
139  return t*dGet();
140  };
doublereal dGet(void) const
Definition: drive.cc:671

Here is the call graph for this function:

template<class T >
int SingleTplDriveCaller< T >::getNDrives ( void  ) const
inlinevirtual

Implements TplDriveCaller< T >.

Definition at line 151 of file tpldrive_impl.h.

151  {
152  return 1;
153  };
template<class T >
T SingleTplDriveCaller< T >::GetP ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< T >.

Definition at line 147 of file tpldrive_impl.h.

References DriveOwner::dGetP(), and SingleTplDriveCaller< T >::t.

147  {
148  return t*dGetP();
149  };
doublereal dGetP(void) const
Definition: drive.cc:690

Here is the call graph for this function:

template<class T >
virtual TplDriveCaller<T>* SingleTplDriveCaller< T >::pCopy ( void  ) const
inlinevirtual

Implements TplDriveCaller< T >.

Definition at line 113 of file tpldrive_impl.h.

References DriveOwner::pGetDriveCaller(), SAFENEWWITHCONSTRUCTOR, and SingleTplDriveCaller< T >::t.

Referenced by SingleTplDriveCaller< doublereal >::pCopy().

113  {
114  typedef SingleTplDriveCaller<T> dc;
115  TplDriveCaller<T>* pDC = 0;
116 
117  SAFENEWWITHCONSTRUCTOR(pDC, dc, dc(pGetDriveCaller()->pCopy(), t));
118 
119  return pDC;
120  };
virtual TplDriveCaller< T > * pCopy(void) const
#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:

template<class T >
virtual std::ostream& SingleTplDriveCaller< T >::Restart ( std::ostream &  out) const
inlinevirtual

Implements TplDriveCaller< T >.

Definition at line 123 of file tpldrive_impl.h.

References DriveOwner::pGetDriveCaller(), DriveCaller::Restart(), SingleTplDriveCaller< T >::t, and Write().

123  {
124  out << "single, ",
125  Write(out, t, ", ") << ", ";
126  return pGetDriveCaller()->Restart(out);
127  };
std::ostream & Write(std::ostream &out, const FullMatrixHandler &m, const char *s, const char *s2)
Definition: fullmh.cc:376
virtual std::ostream & Restart(std::ostream &out) const =0
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658

Here is the call graph for this function:

template<class T >
virtual std::ostream& SingleTplDriveCaller< T >::Restart_int ( std::ostream &  out) const
inlinevirtual

Implements TplDriveCaller< T >.

Definition at line 129 of file tpldrive_impl.h.

References DriveOwner::pGetDriveCaller(), DriveCaller::Restart(), SingleTplDriveCaller< T >::t, and Write().

129  {
130  Write(out, t, ", ") << ", ";
131  return pGetDriveCaller()->Restart(out);
132  };
std::ostream & Write(std::ostream &out, const FullMatrixHandler &m, const char *s, const char *s2)
Definition: fullmh.cc:376
virtual std::ostream & Restart(std::ostream &out) const =0
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658

Here is the call graph for this function:

Member Data Documentation


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