MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
CompTplDriveCaller< Mat6x6 > Class Template Reference
Inheritance diagram for CompTplDriveCaller< Mat6x6 >:
Collaboration diagram for CompTplDriveCaller< Mat6x6 >:

Public Member Functions

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

std::vector< DriveCaller * > m_dc
 
- Protected Attributes inherited from DriveOwner
DriveCallerpDriveCaller
 

Detailed Description

template<>
class CompTplDriveCaller< Mat6x6 >

Definition at line 314 of file tpldrive_impl.cc.

Constructor & Destructor Documentation

Definition at line 319 of file tpldrive_impl.cc.

References MBDYN_EXCEPT_ARGS.

320  : m_dc(dc)
321  {
322  if (dc.size() != 36) {
324  }
325  };
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
std::vector< DriveCaller * > m_dc

Definition at line 327 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

327  {
328  for (unsigned i = 0; i < m_dc.size(); i++) {
329  delete m_dc[i];
330  }
331  };
std::vector< DriveCaller * > m_dc

Member Function Documentation

bool CompTplDriveCaller< Mat6x6 >::bIsDifferentiable ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< Mat6x6 >.

Definition at line 389 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::bIsDifferentiable(), and CompTplDriveCaller< T >::m_dc.

389  {
390  for (unsigned i = 0; i < m_dc.size(); i++) {
391  if (!m_dc[i]->bIsDifferentiable()) {
392  return false;
393  }
394  }
395 
396  return true;
397  };
bool bIsDifferentiable(void) const
std::vector< DriveCaller * > m_dc

Here is the call graph for this function:

Mat6x6 CompTplDriveCaller< Mat6x6 >::Get ( const doublereal dVar) const
inlinevirtual

Implements TplDriveCaller< Mat6x6 >.

Definition at line 368 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

368  {
369  Mat6x6 t;
370 
371  for (unsigned i = 0; i < m_dc.size(); i++) {
372  t(i/6 + 1, i%6 + 1) = m_dc[i]->dGet(dVar);
373  }
374 
375  return t;
376  };
std::vector< DriveCaller * > m_dc
Mat6x6 CompTplDriveCaller< Mat6x6 >::Get ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< Mat6x6 >.

Definition at line 378 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

378  {
379  Mat6x6 t;
380 
381  for (unsigned i = 0; i < m_dc.size(); i++) {
382  t(i/6 + 1, i%6 + 1) = m_dc[i]->dGet();
383  }
384 
385  return t;
386  };
std::vector< DriveCaller * > m_dc
int CompTplDriveCaller< Mat6x6 >::getNDrives ( void  ) const
inlinevirtual

Implements TplDriveCaller< Mat6x6 >.

Definition at line 409 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

409  {
410  return m_dc.size();
411  };
std::vector< DriveCaller * > m_dc
Mat6x6 CompTplDriveCaller< Mat6x6 >::GetP ( void  ) const
inlinevirtual

Reimplemented from TplDriveCaller< Mat6x6 >.

Definition at line 399 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

399  {
400  Mat6x6 t;
401 
402  for (unsigned i = 0; i < m_dc.size(); i++) {
403  t(i/6 + 1, i%6 + 1) = m_dc[i]->dGetP();
404  }
405 
406  return t;
407  };
std::vector< DriveCaller * > m_dc
virtual TplDriveCaller<Mat6x6>* CompTplDriveCaller< Mat6x6 >::pCopy ( void  ) const
inlinevirtual

Implements TplDriveCaller< Mat6x6 >.

Definition at line 334 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc, and SAFENEWWITHCONSTRUCTOR.

334  {
335  typedef CompTplDriveCaller<Mat6x6> dc;
336  TplDriveCaller<Mat6x6>* pDC = 0;
337 
338  std::vector<DriveCaller *> tmpdc(m_dc.size());
339 
340  for (unsigned i = 0; i < m_dc.size(); i++) {
341  tmpdc[i] = m_dc[i]->pCopy();
342  }
343 
344  SAFENEWWITHCONSTRUCTOR(pDC, dc, dc(tmpdc));
345 
346  return pDC;
347  };
std::vector< DriveCaller * > m_dc
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
virtual std::ostream& CompTplDriveCaller< Mat6x6 >::Restart ( std::ostream &  out) const
inlinevirtual

Implements TplDriveCaller< Mat6x6 >.

Definition at line 350 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

350  {
351  out << "component";
352 
353  for (unsigned i = 0; i < m_dc.size(); i++) {
354  out << ", ", m_dc[i]->Restart(out);
355  }
356 
357  return out;
358  };
std::vector< DriveCaller * > m_dc
virtual std::ostream& CompTplDriveCaller< Mat6x6 >::Restart_int ( std::ostream &  out) const
inlinevirtual

Implements TplDriveCaller< Mat6x6 >.

Definition at line 360 of file tpldrive_impl.cc.

References CompTplDriveCaller< T >::m_dc.

360  {
361  for (unsigned i = 0; i < m_dc.size(); i++) {
362  out << ", ", m_dc[i]->Restart(out);
363  }
364 
365  return out;
366  };
std::vector< DriveCaller * > m_dc

Member Data Documentation

Definition at line 316 of file tpldrive_impl.cc.


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